Bug Summary

File:var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp
Warning:line 19945, 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-19/lib/clang/19 -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 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-19/lib/clang/19/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-2024-09-22-115206-3586786-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/ClientImpl.h"
126#include "mozilla/dom/quota/DebugOnlyMacro.h"
127#include "mozilla/dom/quota/DirectoryLock.h"
128#include "mozilla/dom/quota/DirectoryLockInlines.h"
129#include "mozilla/dom/quota/DecryptingInputStream_impl.h"
130#include "mozilla/dom/quota/EncryptingOutputStream_impl.h"
131#include "mozilla/dom/quota/ErrorHandling.h"
132#include "mozilla/dom/quota/FileStreams.h"
133#include "mozilla/dom/quota/OriginScope.h"
134#include "mozilla/dom/quota/PersistenceScope.h"
135#include "mozilla/dom/quota/PersistenceType.h"
136#include "mozilla/dom/quota/QuotaCommon.h"
137#include "mozilla/dom/quota/QuotaManager.h"
138#include "mozilla/dom/quota/QuotaObject.h"
139#include "mozilla/dom/quota/ResultExtensions.h"
140#include "mozilla/dom/quota/ThreadUtils.h"
141#include "mozilla/dom/quota/UsageInfo.h"
142#include "mozilla/fallible.h"
143#include "mozilla/ipc/BackgroundParent.h"
144#include "mozilla/ipc/BackgroundUtils.h"
145#include "mozilla/ipc/InputStreamParams.h"
146#include "mozilla/ipc/PBackgroundParent.h"
147#include "mozilla/ipc/PBackgroundSharedTypes.h"
148#include "mozilla/ipc/ProtocolUtils.h"
149#include "mozilla/mozalloc.h"
150#include "mozilla/storage/Variant.h"
151#include "nsBaseHashtable.h"
152#include "nsCOMPtr.h"
153#include "nsClassHashtable.h"
154#include "nsContentUtils.h"
155#include "nsTHashMap.h"
156#include "nsDebug.h"
157#include "nsError.h"
158#include "nsEscape.h"
159#include "nsHashKeys.h"
160#include "nsIAsyncInputStream.h"
161#include "nsID.h"
162#include "nsIDUtils.h"
163#include "nsIDirectoryEnumerator.h"
164#include "nsIEventTarget.h"
165#include "nsIFile.h"
166#include "nsIFileProtocolHandler.h"
167#include "nsIFileStreams.h"
168#include "nsIFileURL.h"
169#include "nsIInputStream.h"
170#include "nsIOutputStream.h"
171#include "nsIProtocolHandler.h"
172#include "nsIRunnable.h"
173#include "nsISupports.h"
174#include "nsISupportsPriority.h"
175#include "nsISupportsUtils.h"
176#include "nsIThread.h"
177#include "nsIThreadInternal.h"
178#include "nsITimer.h"
179#include "nsIURIMutator.h"
180#include "nsIVariant.h"
181#include "nsLiteralString.h"
182#include "nsNetCID.h"
183#include "nsPrintfCString.h"
184#include "nsProxyRelease.h"
185#include "nsServiceManagerUtils.h"
186#include "nsStreamUtils.h"
187#include "nsString.h"
188#include "nsStringFlags.h"
189#include "nsStringFwd.h"
190#include "nsTArray.h"
191#include "nsTHashSet.h"
192#include "nsTHashtable.h"
193#include "nsTLiteralString.h"
194#include "nsTStringRepr.h"
195#include "nsThreadPool.h"
196#include "nsThreadUtils.h"
197#include "nscore.h"
198#include "prinrval.h"
199#include "prio.h"
200#include "prsystem.h"
201#include "prthread.h"
202#include "prtime.h"
203#include "prtypes.h"
204#include "snappy/snappy.h"
205
206struct JSContext;
207class JSObject;
208template <class T>
209class nsPtrHashKey;
210
211#define IDB_DEBUG_LOG(_args) \
212 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)
213
214#if defined(MOZ_WIDGET_ANDROID)
215# define IDB_MOBILE
216#endif
217
218// Helper macros to reduce assertion verbosity
219// AUUF == ASSERT_UNREACHABLE_UNLESS_FUZZING
220#ifdef DEBUG1
221# ifdef FUZZING
222# 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"
, 222); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
... ")"); do { *((volatile int*)__null) = 222; __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"
, 222)
223# else
224# 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"
, 224); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
... ")"); do { *((volatile int*)__null) = 224; __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"
, 224); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
__VA_ARGS__ ")"); do { *((volatile int*)__null) = 224; __attribute__
((nomerge)) ::abort(); } while (false); } } while (false)
225# endif
226# 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"
, 226); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"cond" ")"); do { *((volatile int*)__null) = 226; __attribute__
((nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((cond))
\
227 [](bool aCond) { \
228 if (MOZ_UNLIKELY(aCond)(__builtin_expect(!!(aCond), 0))) { \
229 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"
, 229); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
#cond ")"); do { *((volatile int*)__null) = 229; __attribute__
((nomerge)) ::abort(); } while (false); } } while (false)
; \
230 } \
231 return aCond; \
232 }((cond))
233#else
234# 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"
, 234); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
... ")"); do { *((volatile int*)__null) = 234; __attribute__
((nomerge)) ::abort(); } while (false); } } while (false)
\
235 do { \
236 } while (false)
237# 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"
, 237); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"cond" ")"); do { *((volatile int*)__null) = 237; __attribute__
((nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((cond))
static_cast<bool>(cond)
238#endif
239
240namespace mozilla {
241
242namespace dom::indexedDB {
243
244using namespace mozilla::dom::quota;
245using namespace mozilla::ipc;
246using mozilla::dom::quota::Client;
247
248namespace {
249
250class ConnectionPool;
251class Database;
252struct DatabaseActorInfo;
253class DatabaseFile;
254class DatabaseLoggingInfo;
255class DatabaseMaintenance;
256class Factory;
257class Maintenance;
258class OpenDatabaseOp;
259class TransactionBase;
260class TransactionDatabaseOperationBase;
261class VersionChangeTransaction;
262template <bool StatementHasIndexKeyBindings>
263struct ValuePopulateResponseHelper;
264
265/*******************************************************************************
266 * Constants
267 ******************************************************************************/
268
269const int32_t kStorageProgressGranularity = 1000;
270
271// Changing the value here will override the page size of new databases only.
272// A journal mode change and VACUUM are needed to change existing databases, so
273// the best way to do that is to use the schema version upgrade mechanism.
274const uint32_t kSQLitePageSizeOverride =
275#ifdef IDB_MOBILE
276 2048;
277#else
278 4096;
279#endif
280
281static_assert(kSQLitePageSizeOverride == /* mozStorage default */ 0 ||
282 (kSQLitePageSizeOverride % 2 == 0 &&
283 kSQLitePageSizeOverride >= 512 &&
284 kSQLitePageSizeOverride <= 65536),
285 "Must be 0 (disabled) or a power of 2 between 512 and 65536!");
286
287// Set to -1 to use SQLite's default, 0 to disable, or some positive number to
288// enforce a custom limit.
289const int32_t kMaxWALPages = 5000; // 20MB on desktop, 10MB on mobile.
290
291// Set to some multiple of the page size to grow the database in larger chunks.
292const uint32_t kSQLiteGrowthIncrement = kSQLitePageSizeOverride * 2;
293
294static_assert(kSQLiteGrowthIncrement >= 0 &&
295 kSQLiteGrowthIncrement % kSQLitePageSizeOverride == 0 &&
296 kSQLiteGrowthIncrement < uint32_t(INT32_MAX(2147483647)),
297 "Must be 0 (disabled) or a positive multiple of the page size!");
298
299// The maximum number of threads that can be used for database activity at a
300// single time. Please keep in sync with the constants in
301// test_connection_idle_maintenance*.js tests
302const uint32_t kMaxConnectionThreadCount = 20;
303
304static_assert(kMaxConnectionThreadCount, "Must have at least one thread!");
305
306// The maximum number of threads to keep when idle. Until we switch to the STS
307// pool, we can reduce the number of idle threads kept around thanks to the
308// grace timeout.
309const uint32_t kMaxIdleConnectionThreadCount = 1;
310
311static_assert(kMaxConnectionThreadCount >= kMaxIdleConnectionThreadCount,
312 "Idle thread limit must be less than total thread limit!");
313
314// The length of time that wanted idle threads will stay alive before being shut
315// down.
316const uint32_t kConnectionThreadMaxIdleMS = 30 * 1000; // 30 seconds
317
318// The length of time that excess idle threads will stay alive before being shut
319// down.
320const uint32_t kConnectionThreadGraceIdleMS = 500; // 0.5 seconds
321
322// The length of time that database connections will be held open after all
323// transactions have completed before doing idle maintenance. Please keep in
324// sync with the timeouts in test_connection_idle_maintenance*.js tests
325const uint32_t kConnectionIdleMaintenanceMS = 2 * 1000; // 2 seconds
326
327// The length of time that database connections will be held open after all
328// transactions and maintenance have completed.
329const uint32_t kConnectionIdleCloseMS = 10 * 1000; // 10 seconds
330
331#define SAVEPOINT_CLAUSE"SAVEPOINT sp;"_ns "SAVEPOINT sp;"_ns
332
333// For efficiency reasons, kEncryptedStreamBlockSize must be a multiple of large
334// 4k disk sectors.
335static_assert(kEncryptedStreamBlockSize % 4096 == 0);
336// Similarly, the file copy buffer size must be a multiple of the encrypted
337// block size.
338static_assert(kFileCopyBufferSize % kEncryptedStreamBlockSize == 0);
339
340constexpr auto kFileManagerDirectoryNameSuffix = u".files"_ns;
341constexpr auto kSQLiteSuffix = u".sqlite"_ns;
342constexpr auto kSQLiteJournalSuffix = u".sqlite-journal"_ns;
343constexpr auto kSQLiteSHMSuffix = u".sqlite-shm"_ns;
344constexpr auto kSQLiteWALSuffix = u".sqlite-wal"_ns;
345
346// The following constants define all names of binding parameters in statements,
347// where they are bound by name. This should include all parameter names which
348// are bound by name. Binding may be done by index when the statement definition
349// and binding are done in the same local scope, and no other reasons prevent
350// using the indexes (e.g. multiple statement variants with differing number or
351// order of parameters). Neither the styles of specifying parameter names
352// (literally vs. via these constants) nor the binding styles (by index vs. by
353// name) should not be mixed for the same statement. The decision must be made
354// for each statement based on the proximity of statement and binding calls.
355constexpr auto kStmtParamNameCurrentKey = "current_key"_ns;
356constexpr auto kStmtParamNameRangeBound = "range_bound"_ns;
357constexpr auto kStmtParamNameObjectStorePosition = "object_store_position"_ns;
358constexpr auto kStmtParamNameLowerKey = "lower_key"_ns;
359constexpr auto kStmtParamNameUpperKey = "upper_key"_ns;
360constexpr auto kStmtParamNameKey = "key"_ns;
361constexpr auto kStmtParamNameObjectStoreId = "object_store_id"_ns;
362constexpr auto kStmtParamNameIndexId = "index_id"_ns;
363// TODO: Maybe the uses of kStmtParamNameId should be replaced by more
364// specific constants such as kStmtParamNameObjectStoreId.
365constexpr auto kStmtParamNameId = "id"_ns;
366constexpr auto kStmtParamNameValue = "value"_ns;
367constexpr auto kStmtParamNameObjectDataKey = "object_data_key"_ns;
368constexpr auto kStmtParamNameIndexDataValues = "index_data_values"_ns;
369constexpr auto kStmtParamNameData = "data"_ns;
370constexpr auto kStmtParamNameFileIds = "file_ids"_ns;
371constexpr auto kStmtParamNameValueLocale = "value_locale"_ns;
372constexpr auto kStmtParamNameLimit = "limit"_ns;
373
374// The following constants define some names of columns in tables, which are
375// referred to in remote locations, e.g. in calls to
376// GetBindingClauseForKeyRange.
377constexpr auto kColumnNameKey = "key"_ns;
378constexpr auto kColumnNameValue = "value"_ns;
379constexpr auto kColumnNameAliasSortKey = "sort_column"_ns;
380
381// SQL fragments used at multiple locations.
382constexpr auto kOpenLimit = " LIMIT "_ns;
383
384// The deletion marker file is created before RemoveDatabaseFilesAndDirectory
385// begins deleting a database. It is removed as the last step of deletion. If a
386// deletion marker file is found when initializing the origin, the deletion
387// routine is run again to ensure that the database and all of its related files
388// are removed. The primary goal of this mechanism is to avoid situations where
389// a database has been partially deleted, leading to inconsistent state for the
390// origin.
391constexpr auto kIdbDeletionMarkerFilePrefix = u"idb-deleting-"_ns;
392
393const uint32_t kDeleteTimeoutMs = 1000;
394
395#ifdef DEBUG1
396
397const int32_t kDEBUGThreadPriority = nsISupportsPriority::PRIORITY_NORMAL;
398const uint32_t kDEBUGThreadSleepMS = 0;
399
400// Set to a non-zero number to enable debugging of transaction event targets.
401// It will cause sleeping after every transaction runnable!
402//
403// This can be useful for discovering race conditions related to switching to
404// another thread. Such races are usually avoided by using MozPromise or
405// RunAfterProcessingCurrentEvent. Chaos mode doesn't always help with
406// uncovering these issues, and only a precisely targeted sleep call can
407// simulate the problem.
408const uint32_t kDEBUGTransactionThreadSleepMS = 0;
409
410// Make sure that we notice if we ever accidentally check in a non-zero value.
411# ifdef MOZILLA_OFFICIAL
412static_assert(kDEBUGTransactionThreadSleepMS == 0);
413# endif
414
415#endif
416
417/*******************************************************************************
418 * Metadata classes
419 ******************************************************************************/
420
421// Can be instantiated either on the QuotaManager IO thread or on a
422// versionchange transaction thread. These threads can never race so this is
423// totally safe.
424struct FullIndexMetadata {
425 IndexMetadata mCommonMetadata = {0, nsString(), KeyPath(0), nsCString(),
426 false, false, false};
427
428 FlippedOnce<false> mDeleted;
429
430 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"
, 430); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { *((volatile int*)__null) =
430; __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"
, 430); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { *((volatile int*)__null) = 430
; __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:
431
432 private:
433 ~FullIndexMetadata() = default;
434};
435
436using IndexTable = nsTHashMap<nsUint64HashKey, SafeRefPtr<FullIndexMetadata>>;
437
438// Can be instantiated either on the QuotaManager IO thread or on a
439// versionchange transaction thread. These threads can never race so this is
440// totally safe.
441struct FullObjectStoreMetadata {
442 ObjectStoreMetadata mCommonMetadata;
443 IndexTable mIndexes;
444
445 // The auto increment ids are touched on both the background thread and the
446 // transaction I/O thread, and they must be kept in sync, so we need a mutex
447 // to protect them.
448 struct AutoIncrementIds {
449 int64_t next;
450 int64_t committed;
451 };
452 DataMutex<AutoIncrementIds> mAutoIncrementIds;
453
454 FlippedOnce<false> mDeleted;
455
456 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"
, 456); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { *((volatile int*)__null) =
456; __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"
, 456); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { *((volatile int*)__null) = 456
; __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:
;
457
458 bool HasLiveIndexes() const;
459
460 FullObjectStoreMetadata(ObjectStoreMetadata aCommonMetadata,
461 const AutoIncrementIds& aAutoIncrementIds)
462 : mCommonMetadata{std::move(aCommonMetadata)},
463 mAutoIncrementIds{AutoIncrementIds{aAutoIncrementIds},
464 "FullObjectStoreMetadata"} {}
465
466 private:
467 ~FullObjectStoreMetadata() = default;
468};
469
470using ObjectStoreTable =
471 nsTHashMap<nsUint64HashKey, SafeRefPtr<FullObjectStoreMetadata>>;
472
473static_assert(
474 std::is_same_v<IndexOrObjectStoreId,
475 std::remove_cv_t<std::remove_reference_t<
476 decltype(std::declval<const ObjectStoreGetParams&>()
477 .objectStoreId())>>>);
478static_assert(
479 std::is_same_v<
480 IndexOrObjectStoreId,
481 std::remove_cv_t<std::remove_reference_t<
482 decltype(std::declval<const IndexGetParams&>().objectStoreId())>>>);
483
484struct FullDatabaseMetadata final : AtomicSafeRefCounted<FullDatabaseMetadata> {
485 DatabaseMetadata mCommonMetadata;
486 nsCString mDatabaseId;
487 nsString mFilePath;
488 ObjectStoreTable mObjectStores;
489
490 IndexOrObjectStoreId mNextObjectStoreId = 0;
491 IndexOrObjectStoreId mNextIndexId = 0;
492
493 public:
494 explicit FullDatabaseMetadata(const DatabaseMetadata& aCommonMetadata)
495 : mCommonMetadata(aCommonMetadata) {
496 AssertIsOnBackgroundThread();
497 }
498
499 [[nodiscard]] SafeRefPtr<FullDatabaseMetadata> Duplicate() const;
500
501 MOZ_DECLARE_REFCOUNTED_TYPENAME(FullDatabaseMetadata)const char* typeName() const { return "FullDatabaseMetadata";
} size_t typeSize() const { return sizeof(*this); }
502};
503
504template <class Enumerable>
505auto MatchMetadataNameOrId(const Enumerable& aEnumerable,
506 IndexOrObjectStoreId aId,
507 Maybe<const nsAString&> aName = Nothing()) {
508 AssertIsOnBackgroundThread();
509 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"
, 509); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aId" ")"); do
{ *((volatile int*)__null) = 509; __attribute__((nomerge)) ::
abort(); } while (false); } } while (false)
;
510
511 const auto it = std::find_if(
512 aEnumerable.cbegin(), aEnumerable.cend(),
513 [aId, aName](const auto& entry) {
514 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"
, 514); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey() != 0"
")"); do { *((volatile int*)__null) = 514; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
515
516 const auto& value = entry.GetData();
517 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"
, 517); AnnotateMozCrashReason("MOZ_ASSERT" "(" "value" ")");
do { *((volatile int*)__null) = 517; __attribute__((nomerge)
) ::abort(); } while (false); } } while (false)
;
518
519 return !value->mDeleted &&
520 (aId == value->mCommonMetadata.id() ||
521 (aName && *aName == value->mCommonMetadata.name()));
522 });
523
524 return ToMaybeRef(it != aEnumerable.cend() ? it->GetData().unsafeGetRawPtr()
525 : nullptr);
526}
527
528/*******************************************************************************
529 * SQLite functions
530 ******************************************************************************/
531
532// WARNING: the hash function used for the database name must not change.
533// That's why this function exists separately from mozilla::HashString(), even
534// though it is (at the time of writing) equivalent. See bug 780408 and bug
535// 940315 for details.
536uint32_t HashName(const nsAString& aName) {
537 struct Helper {
538 static uint32_t RotateBitsLeft32(uint32_t aValue, uint8_t aBits) {
539 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"
, 539); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aBits < 32"
")"); do { *((volatile int*)__null) = 539; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
540 return (aValue << aBits) | (aValue >> (32 - aBits));
541 }
542 };
543
544 static const uint32_t kGoldenRatioU32 = 0x9e3779b9u;
545
546 return std::accumulate(aName.BeginReading(), aName.EndReading(), uint32_t(0),
547 [](uint32_t hash, char16_t ch) {
548 return kGoldenRatioU32 *
549 (Helper::RotateBitsLeft32(hash, 5) ^ ch);
550 });
551}
552
553nsresult ClampResultCode(nsresult aResultCode) {
554 if (NS_SUCCEEDED(aResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(aResultCode)), 1)
))
||
555 NS_ERROR_GET_MODULE(aResultCode) == NS_ERROR_MODULE_DOM_INDEXEDDB33) {
556 return aResultCode;
557 }
558
559 switch (aResultCode) {
560 case NS_ERROR_FILE_NO_DEVICE_SPACE:
561 return NS_ERROR_DOM_INDEXEDDB_QUOTA_ERR;
562 case NS_ERROR_STORAGE_CONSTRAINT:
563 return NS_ERROR_DOM_INDEXEDDB_CONSTRAINT_ERR;
564 default:
565#ifdef DEBUG1
566 nsPrintfCString message("Converting non-IndexedDB error code (0x%" PRIX32"X"
567 ") to "
568 "NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR",
569 static_cast<uint32_t>(aResultCode));
570 NS_WARNING(message.get())NS_DebugBreak(NS_DEBUG_WARNING, message.get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 570)
;
571#else
572 ;
573#endif
574 }
575
576 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 576, "UnknownErr")
;
577 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
578}
579
580Result<nsCOMPtr<nsIFileURL>, nsresult> GetDatabaseFileURL(
581 nsIFile& aDatabaseFile, const int64_t aDirectoryLockId,
582 const Maybe<CipherKey>& aMaybeKey) {
583 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"
, 583); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectoryLockId >= -1"
")"); do { *((volatile int*)__null) = 583; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
584
585 QM_TRY_INSPECT(auto tryResult783 = (::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
(!!(tryResult783.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\")"
, tryResult783.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 589, mozilla::dom::quota::Severity::Error); return tryResult783
.propagateErr(); } const auto& protocolHandler = tryResult783
.inspect();
586 const auto& protocolHandler,auto tryResult783 = (::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
(!!(tryResult783.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\")"
, tryResult783.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 589, mozilla::dom::quota::Severity::Error); return tryResult783
.propagateErr(); } const auto& protocolHandler = tryResult783
.inspect();
587 MOZ_TO_RESULT_GET_TYPED(nsCOMPtr<nsIProtocolHandler>,auto tryResult783 = (::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
(!!(tryResult783.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\")"
, tryResult783.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 589, mozilla::dom::quota::Severity::Error); return tryResult783
.propagateErr(); } const auto& protocolHandler = tryResult783
.inspect();
588 MOZ_SELECT_OVERLOAD(do_GetService),auto tryResult783 = (::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
(!!(tryResult783.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\")"
, tryResult783.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 589, mozilla::dom::quota::Severity::Error); return tryResult783
.propagateErr(); } const auto& protocolHandler = tryResult783
.inspect();
589 NS_NETWORK_PROTOCOL_CONTRACTID_PREFIX "file"))auto tryResult783 = (::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
(!!(tryResult783.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\")"
, tryResult783.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 589, mozilla::dom::quota::Severity::Error); return tryResult783
.propagateErr(); } const auto& protocolHandler = tryResult783
.inspect();
;
590
591 QM_TRY_INSPECT(const auto& fileHandler,auto tryResult784 = (::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler
> >([](auto&&... aArgs) -> decltype(auto) { return
do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)
...); }, protocolHandler)); if ((__builtin_expect(!!(tryResult784
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)...); }, protocolHandler)"
, tryResult784.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 594, mozilla::dom::quota::Severity::Error); return tryResult784
.propagateErr(); } const auto& fileHandler = tryResult784
.inspect();
592 MOZ_TO_RESULT_GET_TYPED(nsCOMPtr<nsIFileProtocolHandler>,auto tryResult784 = (::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler
> >([](auto&&... aArgs) -> decltype(auto) { return
do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)
...); }, protocolHandler)); if ((__builtin_expect(!!(tryResult784
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)...); }, protocolHandler)"
, tryResult784.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 594, mozilla::dom::quota::Severity::Error); return tryResult784
.propagateErr(); } const auto& fileHandler = tryResult784
.inspect();
593 MOZ_SELECT_OVERLOAD(do_QueryInterface),auto tryResult784 = (::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler
> >([](auto&&... aArgs) -> decltype(auto) { return
do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)
...); }, protocolHandler)); if ((__builtin_expect(!!(tryResult784
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)...); }, protocolHandler)"
, tryResult784.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 594, mozilla::dom::quota::Severity::Error); return tryResult784
.propagateErr(); } const auto& fileHandler = tryResult784
.inspect();
594 protocolHandler))auto tryResult784 = (::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler
> >([](auto&&... aArgs) -> decltype(auto) { return
do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)
...); }, protocolHandler)); if ((__builtin_expect(!!(tryResult784
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)...); }, protocolHandler)"
, tryResult784.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 594, mozilla::dom::quota::Severity::Error); return tryResult784
.propagateErr(); } const auto& fileHandler = tryResult784
.inspect();
;
595
596 QM_TRY_INSPECT(const auto& mutator, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult785 = (::mozilla::ToResultInvoke< nsCOMPtr<
nsIURIMutator> >( ::std::mem_fn( &::mozilla::detail
::DerefedType<decltype(fileHandler)>::NewFileURIMutator
), (fileHandler), &aDatabaseFile)); if ((__builtin_expect
(!!(tryResult785.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCOMPtr<nsIURIMutator>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(fileHandler)>::NewFileURIMutator), (fileHandler), &aDatabaseFile)"
, tryResult785.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 598, mozilla::dom::quota::Severity::Error); return tryResult785
.propagateErr(); } const auto& mutator = tryResult785.inspect
();
597 nsCOMPtr<nsIURIMutator>, fileHandler,auto tryResult785 = (::mozilla::ToResultInvoke< nsCOMPtr<
nsIURIMutator> >( ::std::mem_fn( &::mozilla::detail
::DerefedType<decltype(fileHandler)>::NewFileURIMutator
), (fileHandler), &aDatabaseFile)); if ((__builtin_expect
(!!(tryResult785.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCOMPtr<nsIURIMutator>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(fileHandler)>::NewFileURIMutator), (fileHandler), &aDatabaseFile)"
, tryResult785.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 598, mozilla::dom::quota::Severity::Error); return tryResult785
.propagateErr(); } const auto& mutator = tryResult785.inspect
();
598 NewFileURIMutator, &aDatabaseFile))auto tryResult785 = (::mozilla::ToResultInvoke< nsCOMPtr<
nsIURIMutator> >( ::std::mem_fn( &::mozilla::detail
::DerefedType<decltype(fileHandler)>::NewFileURIMutator
), (fileHandler), &aDatabaseFile)); if ((__builtin_expect
(!!(tryResult785.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCOMPtr<nsIURIMutator>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(fileHandler)>::NewFileURIMutator), (fileHandler), &aDatabaseFile)"
, tryResult785.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 598, mozilla::dom::quota::Severity::Error); return tryResult785
.propagateErr(); } const auto& mutator = tryResult785.inspect
();
;
599
600 // aDirectoryLockId should only be -1 when we are called
601 // - from DatabaseFileManager::InitDirectory when the temporary storage
602 // hasn't been initialized yet. At that time, the in-memory objects (e.g.
603 // OriginInfo) are only being created so it doesn't make sense to tunnel
604 // quota information to QuotaVFS to get corresponding QuotaObject instances
605 // for SQLite files.
606 // - from DeleteDatabaseOp::LoadPreviousVersion, since this might require
607 // temporarily exceeding the quota limit before the database can be
608 // deleted.
609 const nsCString directoryLockIdClause =
610 "&directoryLockId="_ns + IntToCString(aDirectoryLockId);
611
612 const auto keyClause = [&aMaybeKey] {
613 nsAutoCString keyClause;
614 if (aMaybeKey) {
615 keyClause.AssignLiteral("&key=");
616 for (uint8_t byte : IndexedDBCipherStrategy::SerializeKey(*aMaybeKey)) {
617 keyClause.AppendPrintf("%02x", byte);
618 }
619 }
620 return keyClause;
621 }();
622
623 QM_TRY_UNWRAP(auto result, ([&mutator, &directoryLockIdClause, &keyClause] {auto tryResult786 = (([&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
(!!(tryResult786.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); }())"
, tryResult786.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 632, mozilla::dom::quota::Severity::Error); return tryResult786
.propagateErr(); } auto result = tryResult786.unwrap();
624 nsCOMPtr<nsIFileURL> result;auto tryResult786 = (([&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
(!!(tryResult786.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); }())"
, tryResult786.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 632, mozilla::dom::quota::Severity::Error); return tryResult786
.propagateErr(); } auto result = tryResult786.unwrap();
625 nsresult rv = NS_MutateURI(mutator)auto tryResult786 = (([&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
(!!(tryResult786.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); }())"
, tryResult786.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 632, mozilla::dom::quota::Severity::Error); return tryResult786
.propagateErr(); } auto result = tryResult786.unwrap();
626 .SetQuery("cache=private"_ns +auto tryResult786 = (([&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
(!!(tryResult786.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); }())"
, tryResult786.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 632, mozilla::dom::quota::Severity::Error); return tryResult786
.propagateErr(); } auto result = tryResult786.unwrap();
627 directoryLockIdClause + keyClause)auto tryResult786 = (([&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
(!!(tryResult786.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); }())"
, tryResult786.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 632, mozilla::dom::quota::Severity::Error); return tryResult786
.propagateErr(); } auto result = tryResult786.unwrap();
628 .Finalize(result);auto tryResult786 = (([&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
(!!(tryResult786.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); }())"
, tryResult786.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 632, mozilla::dom::quota::Severity::Error); return tryResult786
.propagateErr(); } auto result = tryResult786.unwrap();
629 return NS_SUCCEEDED(rv)auto tryResult786 = (([&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
(!!(tryResult786.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); }())"
, tryResult786.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 632, mozilla::dom::quota::Severity::Error); return tryResult786
.propagateErr(); } auto result = tryResult786.unwrap();
630 ? Result<nsCOMPtr<nsIFileURL>, nsresult>{result}auto tryResult786 = (([&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
(!!(tryResult786.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); }())"
, tryResult786.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 632, mozilla::dom::quota::Severity::Error); return tryResult786
.propagateErr(); } auto result = tryResult786.unwrap();
631 : Err(rv);auto tryResult786 = (([&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
(!!(tryResult786.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); }())"
, tryResult786.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 632, mozilla::dom::quota::Severity::Error); return tryResult786
.propagateErr(); } auto result = tryResult786.unwrap();
632 }()))auto tryResult786 = (([&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
(!!(tryResult786.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); }())"
, tryResult786.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 632, mozilla::dom::quota::Severity::Error); return tryResult786
.propagateErr(); } auto result = tryResult786.unwrap();
;
633
634 return result;
635}
636
637nsLiteralCString GetDefaultSynchronousMode() {
638 return IndexedDatabaseManager::FullSynchronous() ? "FULL"_ns : "NORMAL"_ns;
639}
640
641nsresult SetDefaultPragmas(mozIStorageConnection& aConnection) {
642 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"
, 642); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { *((volatile int*)__null) = 642; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
643
644 static constexpr auto kBuiltInPragmas =
645 // We use foreign keys in DEBUG builds only because there is a performance
646 // cost to using them.
647 "PRAGMA foreign_keys = "
648#ifdef DEBUG1
649 "ON"
650#else
651 "OFF"
652#endif
653 ";"
654
655 // The "INSERT OR REPLACE" statement doesn't fire the update trigger,
656 // instead it fires only the insert trigger. This confuses the update
657 // refcount function. This behavior changes with enabled recursive
658 // triggers, so the statement fires the delete trigger first and then the
659 // insert trigger.
660 "PRAGMA recursive_triggers = ON;"
661
662 // We aggressively truncate the database file when idle so don't bother
663 // overwriting the WAL with 0 during active periods.
664 "PRAGMA secure_delete = OFF;"_ns;
665
666 QM_TRY(MOZ_TO_RESULT(aConnection.ExecuteSimpleSQL(kBuiltInPragmas))){auto tryResult787 = (ToResult(aConnection.ExecuteSimpleSQL(kBuiltInPragmas
))); static_assert(std::is_empty_v<typename decltype(tryResult787
)::ok_type>); if ((__builtin_expect(!!(tryResult787.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(kBuiltInPragmas))"
, tryResult787.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 666, mozilla::dom::quota::Severity::Error); return tryResult787
.propagateErr(); }}
;
667
668 QM_TRY(MOZ_TO_RESULT(aConnection.ExecuteSimpleSQL(nsAutoCString{{auto tryResult788 = (ToResult(aConnection.ExecuteSimpleSQL(nsAutoCString
{ "PRAGMA synchronous = "_ns + GetDefaultSynchronousMode() + ";"_ns
}))); static_assert(std::is_empty_v<typename decltype(tryResult788
)::ok_type>); if ((__builtin_expect(!!(tryResult788.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(nsAutoCString{ \"PRAGMA synchronous = \"_ns + GetDefaultSynchronousMode() + \";\"_ns}))"
, tryResult788.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 669, mozilla::dom::quota::Severity::Error); return tryResult788
.propagateErr(); }}
669 "PRAGMA synchronous = "_ns + GetDefaultSynchronousMode() + ";"_ns}))){auto tryResult788 = (ToResult(aConnection.ExecuteSimpleSQL(nsAutoCString
{ "PRAGMA synchronous = "_ns + GetDefaultSynchronousMode() + ";"_ns
}))); static_assert(std::is_empty_v<typename decltype(tryResult788
)::ok_type>); if ((__builtin_expect(!!(tryResult788.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(nsAutoCString{ \"PRAGMA synchronous = \"_ns + GetDefaultSynchronousMode() + \";\"_ns}))"
, tryResult788.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 669, mozilla::dom::quota::Severity::Error); return tryResult788
.propagateErr(); }}
;
670
671#ifndef IDB_MOBILE
672 if (kSQLiteGrowthIncrement) {
673 // This is just an optimization so ignore the failure if the disk is
674 // currently too full.
675 QM_TRY(QM_OR_ELSE_WARN_IF({auto tryResult789 = (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"
, 682, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult789)::ok_type>); if ((__builtin_expect(!!(tryResult789
.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\", 682, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult789.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 682, mozilla::dom::quota::Severity::Error); return tryResult789
.propagateErr(); }}
676 // Expression.{auto tryResult789 = (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"
, 682, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult789)::ok_type>); if ((__builtin_expect(!!(tryResult789
.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\", 682, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult789.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 682, mozilla::dom::quota::Severity::Error); return tryResult789
.propagateErr(); }}
677 MOZ_TO_RESULT({auto tryResult789 = (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"
, 682, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult789)::ok_type>); if ((__builtin_expect(!!(tryResult789
.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\", 682, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult789.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 682, mozilla::dom::quota::Severity::Error); return tryResult789
.propagateErr(); }}
678 aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns)),{auto tryResult789 = (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"
, 682, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult789)::ok_type>); if ((__builtin_expect(!!(tryResult789
.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\", 682, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult789.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 682, mozilla::dom::quota::Severity::Error); return tryResult789
.propagateErr(); }}
679 // Predicate.{auto tryResult789 = (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"
, 682, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult789)::ok_type>); if ((__builtin_expect(!!(tryResult789
.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\", 682, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult789.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 682, mozilla::dom::quota::Severity::Error); return tryResult789
.propagateErr(); }}
680 IsSpecificError<NS_ERROR_FILE_TOO_BIG>,{auto tryResult789 = (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"
, 682, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult789)::ok_type>); if ((__builtin_expect(!!(tryResult789
.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\", 682, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult789.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 682, mozilla::dom::quota::Severity::Error); return tryResult789
.propagateErr(); }}
681 // Fallback.{auto tryResult789 = (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"
, 682, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult789)::ok_type>); if ((__builtin_expect(!!(tryResult789
.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\", 682, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult789.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 682, mozilla::dom::quota::Severity::Error); return tryResult789
.propagateErr(); }}
682 ErrToDefaultOk<>)){auto tryResult789 = (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"
, 682, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult789)::ok_type>); if ((__builtin_expect(!!(tryResult789
.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\", 682, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult789.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 682, mozilla::dom::quota::Severity::Error); return tryResult789
.propagateErr(); }}
;
683 }
684#endif // IDB_MOBILE
685
686 return NS_OK;
687}
688
689nsresult SetJournalMode(mozIStorageConnection& aConnection) {
690 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"
, 690); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { *((volatile int*)__null) = 690; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
691
692 // Try enabling WAL mode. This can fail in various circumstances so we have to
693 // check the results here.
694 constexpr auto journalModeQueryStart = "PRAGMA journal_mode = "_ns;
695 constexpr auto journalModeWAL = "wal"_ns;
696
697 QM_TRY_INSPECT(const auto& stmt,auto tryResult790 = (CreateAndExecuteSingleStepStatement( aConnection
, journalModeQueryStart + journalModeWAL)); if ((__builtin_expect
(!!(tryResult790.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, journalModeQueryStart + journalModeWAL)"
, tryResult790.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 699, mozilla::dom::quota::Severity::Error); return tryResult790
.propagateErr(); } const auto& stmt = tryResult790.inspect
();
698 CreateAndExecuteSingleStepStatement(auto tryResult790 = (CreateAndExecuteSingleStepStatement( aConnection
, journalModeQueryStart + journalModeWAL)); if ((__builtin_expect
(!!(tryResult790.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, journalModeQueryStart + journalModeWAL)"
, tryResult790.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 699, mozilla::dom::quota::Severity::Error); return tryResult790
.propagateErr(); } const auto& stmt = tryResult790.inspect
();
699 aConnection, journalModeQueryStart + journalModeWAL))auto tryResult790 = (CreateAndExecuteSingleStepStatement( aConnection
, journalModeQueryStart + journalModeWAL)); if ((__builtin_expect
(!!(tryResult790.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, journalModeQueryStart + journalModeWAL)"
, tryResult790.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 699, mozilla::dom::quota::Severity::Error); return tryResult790
.propagateErr(); } const auto& stmt = tryResult790.inspect
();
;
700
701 QM_TRY_INSPECT(auto tryResult791 = (::mozilla::ToResultInvoke< nsCString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect
(!!(tryResult791.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)"
, tryResult791.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 703, mozilla::dom::quota::Severity::Error); return tryResult791
.propagateErr(); } const auto& journalMode = tryResult791
.inspect();
702 const auto& journalMode,auto tryResult791 = (::mozilla::ToResultInvoke< nsCString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect
(!!(tryResult791.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)"
, tryResult791.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 703, mozilla::dom::quota::Severity::Error); return tryResult791
.propagateErr(); } const auto& journalMode = tryResult791
.inspect();
703 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsCString, *stmt, GetUTF8String, 0))auto tryResult791 = (::mozilla::ToResultInvoke< nsCString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect
(!!(tryResult791.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)"
, tryResult791.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 703, mozilla::dom::quota::Severity::Error); return tryResult791
.propagateErr(); } const auto& journalMode = tryResult791
.inspect();
;
704
705 if (journalMode.Equals(journalModeWAL)) {
706 // WAL mode successfully enabled. Maybe set limits on its size here.
707 if (kMaxWALPages >= 0) {
708 QM_TRY(MOZ_TO_RESULT(aConnection.ExecuteSimpleSQL({auto tryResult792 = (ToResult(aConnection.ExecuteSimpleSQL( "PRAGMA wal_autocheckpoint = "_ns
+ IntToCString(kMaxWALPages)))); static_assert(std::is_empty_v
<typename decltype(tryResult792)::ok_type>); if ((__builtin_expect
(!!(tryResult792.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection.ExecuteSimpleSQL( \"PRAGMA wal_autocheckpoint = \"_ns + IntToCString(kMaxWALPages)))"
, tryResult792.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 709, mozilla::dom::quota::Severity::Error); return tryResult792
.propagateErr(); }}
709 "PRAGMA wal_autocheckpoint = "_ns + IntToCString(kMaxWALPages)))){auto tryResult792 = (ToResult(aConnection.ExecuteSimpleSQL( "PRAGMA wal_autocheckpoint = "_ns
+ IntToCString(kMaxWALPages)))); static_assert(std::is_empty_v
<typename decltype(tryResult792)::ok_type>); if ((__builtin_expect
(!!(tryResult792.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection.ExecuteSimpleSQL( \"PRAGMA wal_autocheckpoint = \"_ns + IntToCString(kMaxWALPages)))"
, tryResult792.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 709, mozilla::dom::quota::Severity::Error); return tryResult792
.propagateErr(); }}
;
710 }
711 } else {
712 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"
, 712)
;
713#ifdef IDB_MOBILE
714 QM_TRY(MOZ_TO_RESULT({auto tryResult793 = (ToResult(aConnection.ExecuteSimpleSQL(journalModeQueryStart
+ "truncate"_ns))); static_assert(std::is_empty_v<typename
decltype(tryResult793)::ok_type>); if ((__builtin_expect(
!!(tryResult793.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection.ExecuteSimpleSQL(journalModeQueryStart + \"truncate\"_ns))"
, tryResult793.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 715, mozilla::dom::quota::Severity::Error); return tryResult793
.propagateErr(); }}
715 aConnection.ExecuteSimpleSQL(journalModeQueryStart + "truncate"_ns))){auto tryResult793 = (ToResult(aConnection.ExecuteSimpleSQL(journalModeQueryStart
+ "truncate"_ns))); static_assert(std::is_empty_v<typename
decltype(tryResult793)::ok_type>); if ((__builtin_expect(
!!(tryResult793.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection.ExecuteSimpleSQL(journalModeQueryStart + \"truncate\"_ns))"
, tryResult793.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 715, mozilla::dom::quota::Severity::Error); return tryResult793
.propagateErr(); }}
;
716#endif
717 }
718
719 return NS_OK;
720}
721
722Result<MovingNotNull<nsCOMPtr<mozIStorageConnection>>, nsresult> OpenDatabase(
723 mozIStorageService& aStorageService, nsIFileURL& aFileURL,
724 const uint32_t aTelemetryId = 0) {
725 const nsAutoCString telemetryFilename =
726 aTelemetryId ? "indexedDB-"_ns + IntToCString(aTelemetryId) +
727 NS_ConvertUTF16toUTF8(kSQLiteSuffix)
728 : nsAutoCString();
729
730 QM_TRY_UNWRAP(auto connection,auto tryResult794 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageConnection> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL
), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService
::CONNECTION_INTERRUPTIBLE)); if ((__builtin_expect(!!(tryResult794
.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)"
, tryResult794.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 734, mozilla::dom::quota::Severity::Error); return tryResult794
.propagateErr(); } auto connection = tryResult794.unwrap();
731 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult794 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageConnection> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL
), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService
::CONNECTION_INTERRUPTIBLE)); if ((__builtin_expect(!!(tryResult794
.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)"
, tryResult794.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 734, mozilla::dom::quota::Severity::Error); return tryResult794
.propagateErr(); } auto connection = tryResult794.unwrap();
732 nsCOMPtr<mozIStorageConnection>, aStorageService,auto tryResult794 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageConnection> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL
), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService
::CONNECTION_INTERRUPTIBLE)); if ((__builtin_expect(!!(tryResult794
.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)"
, tryResult794.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 734, mozilla::dom::quota::Severity::Error); return tryResult794
.propagateErr(); } auto connection = tryResult794.unwrap();
733 OpenDatabaseWithFileURL, &aFileURL, telemetryFilename,auto tryResult794 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageConnection> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL
), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService
::CONNECTION_INTERRUPTIBLE)); if ((__builtin_expect(!!(tryResult794
.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)"
, tryResult794.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 734, mozilla::dom::quota::Severity::Error); return tryResult794
.propagateErr(); } auto connection = tryResult794.unwrap();
734 mozIStorageService::CONNECTION_INTERRUPTIBLE))auto tryResult794 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageConnection> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL
), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService
::CONNECTION_INTERRUPTIBLE)); if ((__builtin_expect(!!(tryResult794
.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)"
, tryResult794.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 734, mozilla::dom::quota::Severity::Error); return tryResult794
.propagateErr(); } auto connection = tryResult794.unwrap();
;
735
736 return WrapMovingNotNull(std::move(connection));
737}
738
739Result<MovingNotNull<nsCOMPtr<mozIStorageConnection>>, nsresult>
740OpenDatabaseAndHandleBusy(mozIStorageService& aStorageService,
741 nsIFileURL& aFileURL,
742 const uint32_t aTelemetryId = 0) {
743 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"
, 743); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { *((volatile int*)__null) = 743; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
744 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"
, 744); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 744; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
745
746 using ConnectionType = Maybe<MovingNotNull<nsCOMPtr<mozIStorageConnection>>>;
747
748 QM_TRY_UNWRAP(auto 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 = 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"
, 758, 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 = 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\", 758, 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"
, 758, mozilla::dom::quota::Severity::Error); return tryResult795
.propagateErr(); } auto connection = tryResult795.unwrap();
749 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 = 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"
, 758, 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 = 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\", 758, 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"
, 758, mozilla::dom::quota::Severity::Error); return tryResult795
.propagateErr(); } auto connection = tryResult795.unwrap();
750 // Expressionauto tryResult795 = (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"
, 758, 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 = 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\", 758, 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"
, 758, mozilla::dom::quota::Severity::Error); return tryResult795
.propagateErr(); } auto connection = tryResult795.unwrap();
751 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 = 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"
, 758, 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 = 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\", 758, 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"
, 758, mozilla::dom::quota::Severity::Error); return tryResult795
.propagateErr(); } auto connection = tryResult795.unwrap();
752 .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 = 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"
, 758, 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 = 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\", 758, 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"
, 758, mozilla::dom::quota::Severity::Error); return tryResult795
.propagateErr(); } auto connection = tryResult795.unwrap();
753 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 = 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"
, 758, 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 = 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\", 758, 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"
, 758, mozilla::dom::quota::Severity::Error); return tryResult795
.propagateErr(); } auto connection = tryResult795.unwrap();
754 }),auto tryResult795 = (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"
, 758, 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 = 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\", 758, 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"
, 758, mozilla::dom::quota::Severity::Error); return tryResult795
.propagateErr(); } auto connection = tryResult795.unwrap();
755 // 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 = 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"
, 758, 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 = 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\", 758, 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"
, 758, mozilla::dom::quota::Severity::Error); return tryResult795
.propagateErr(); } auto connection = tryResult795.unwrap();
756 IsSpecificError<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 = 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"
, 758, 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 = 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\", 758, 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"
, 758, mozilla::dom::quota::Severity::Error); return tryResult795
.propagateErr(); } auto connection = tryResult795.unwrap();
757 // 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 = 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"
, 758, 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 = 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\", 758, 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"
, 758, mozilla::dom::quota::Severity::Error); return tryResult795
.propagateErr(); } auto connection = tryResult795.unwrap();
758 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 = 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"
, 758, 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 = 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\", 758, 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"
, 758, mozilla::dom::quota::Severity::Error); return tryResult795
.propagateErr(); } auto connection = tryResult795.unwrap();
;
759
760 if (connection.isNothing()) {
761#ifdef DEBUG1
762 {
763 nsCString path;
764 MOZ_ALWAYS_SUCCEEDS(aFileURL.GetFileName(path))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aFileURL.GetFileName(path))), 1)))), 1))) { } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "NS_SUCCEEDED(aFileURL.GetFileName(path))" ")",
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 764); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(aFileURL.GetFileName(path))" ")"); do { *
((volatile int*)__null) = 764; __attribute__((nomerge)) ::abort
(); } while (false); } } while (false); } } while (false)
;
765
766 nsPrintfCString message(
767 "Received NS_ERROR_STORAGE_BUSY when attempting to open database "
768 "'%s', retrying for up to 10 seconds",
769 path.get());
770 NS_WARNING(message.get())NS_DebugBreak(NS_DEBUG_WARNING, message.get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 770)
;
771 }
772#endif
773
774 // Another thread must be checkpointing the WAL. Wait up to 10 seconds for
775 // that to complete.
776 const TimeStamp start = TimeStamp::NowLoRes();
777
778 do {
779 PR_Sleep(PR_MillisecondsToInterval(100));
780
781 QM_TRY_UNWRAP(connection,auto tryResult796 = (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"
, 795, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult796
.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\", 795, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult796.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 795, mozilla::dom::quota::Severity::Error); return tryResult796
.propagateErr(); } connection = tryResult796.unwrap();
782 QM_OR_ELSE_WARN_IF(auto tryResult796 = (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"
, 795, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult796
.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\", 795, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult796.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 795, mozilla::dom::quota::Severity::Error); return tryResult796
.propagateErr(); } connection = tryResult796.unwrap();
783 // Expression.auto tryResult796 = (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"
, 795, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult796
.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\", 795, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult796.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 795, mozilla::dom::quota::Severity::Error); return tryResult796
.propagateErr(); } connection = tryResult796.unwrap();
784 OpenDatabase(aStorageService, aFileURL, aTelemetryId)auto tryResult796 = (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"
, 795, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult796
.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\", 795, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult796.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 795, mozilla::dom::quota::Severity::Error); return tryResult796
.propagateErr(); } connection = tryResult796.unwrap();
785 .map([](auto connection) -> ConnectionType {auto tryResult796 = (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"
, 795, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult796
.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\", 795, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult796.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 795, mozilla::dom::quota::Severity::Error); return tryResult796
.propagateErr(); } connection = tryResult796.unwrap();
786 return Some(std::move(connection));auto tryResult796 = (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"
, 795, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult796
.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\", 795, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult796.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 795, mozilla::dom::quota::Severity::Error); return tryResult796
.propagateErr(); } connection = tryResult796.unwrap();
787 }),auto tryResult796 = (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"
, 795, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult796
.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\", 795, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult796.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 795, mozilla::dom::quota::Severity::Error); return tryResult796
.propagateErr(); } connection = tryResult796.unwrap();
788 // Predicate.auto tryResult796 = (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"
, 795, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult796
.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\", 795, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult796.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 795, mozilla::dom::quota::Severity::Error); return tryResult796
.propagateErr(); } connection = tryResult796.unwrap();
789 ([&start](nsresult aValue) {auto tryResult796 = (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"
, 795, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult796
.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\", 795, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult796.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 795, mozilla::dom::quota::Severity::Error); return tryResult796
.propagateErr(); } connection = tryResult796.unwrap();
790 return aValue == NS_ERROR_STORAGE_BUSY &&auto tryResult796 = (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"
, 795, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult796
.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\", 795, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult796.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 795, mozilla::dom::quota::Severity::Error); return tryResult796
.propagateErr(); } connection = tryResult796.unwrap();
791 TimeStamp::NowLoRes() - start <=auto tryResult796 = (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"
, 795, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult796
.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\", 795, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult796.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 795, mozilla::dom::quota::Severity::Error); return tryResult796
.propagateErr(); } connection = tryResult796.unwrap();
792 TimeDuration::FromSeconds(10);auto tryResult796 = (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"
, 795, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult796
.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\", 795, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult796.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 795, mozilla::dom::quota::Severity::Error); return tryResult796
.propagateErr(); } connection = tryResult796.unwrap();
793 }),auto tryResult796 = (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"
, 795, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult796
.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\", 795, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult796.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 795, mozilla::dom::quota::Severity::Error); return tryResult796
.propagateErr(); } connection = tryResult796.unwrap();
794 // Fallback.auto tryResult796 = (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"
, 795, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult796
.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\", 795, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult796.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 795, mozilla::dom::quota::Severity::Error); return tryResult796
.propagateErr(); } connection = tryResult796.unwrap();
795 ErrToDefaultOk<ConnectionType>))auto tryResult796 = (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"
, 795, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<ConnectionType>)); if ((__builtin_expect(!!(tryResult796
.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\", 795, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)"
, tryResult796.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 795, mozilla::dom::quota::Severity::Error); return tryResult796
.propagateErr(); } connection = tryResult796.unwrap();
;
796 } while (connection.isNothing());
797 }
798
799 return connection.extract();
800}
801
802// Returns true if a given nsIFile exists and is a directory. Returns false if
803// it doesn't exist. Returns an error if it exists, but is not a directory, or
804// any other error occurs.
805Result<bool, nsresult> ExistsAsDirectory(nsIFile& aDirectory) {
806 QM_TRY_INSPECT(const bool& exists,auto tryResult797 = (::mozilla::ToResultInvokeMember( (aDirectory
), &::mozilla::detail::DerefedType<decltype(aDirectory
)>::Exists)); if ((__builtin_expect(!!(tryResult797.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::Exists)"
, tryResult797.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 807, mozilla::dom::quota::Severity::Error); return tryResult797
.propagateErr(); } const bool& exists = tryResult797.inspect
();
807 MOZ_TO_RESULT_INVOKE_MEMBER(aDirectory, Exists))auto tryResult797 = (::mozilla::ToResultInvokeMember( (aDirectory
), &::mozilla::detail::DerefedType<decltype(aDirectory
)>::Exists)); if ((__builtin_expect(!!(tryResult797.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::Exists)"
, tryResult797.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 807, mozilla::dom::quota::Severity::Error); return tryResult797
.propagateErr(); } const bool& exists = tryResult797.inspect
();
;
808
809 if (exists) {
810 QM_TRY_INSPECT(const bool& isDirectory,auto tryResult798 = (::mozilla::ToResultInvokeMember( (aDirectory
), &::mozilla::detail::DerefedType<decltype(aDirectory
)>::IsDirectory)); if ((__builtin_expect(!!(tryResult798.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::IsDirectory)"
, tryResult798.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 811, mozilla::dom::quota::Severity::Error); return tryResult798
.propagateErr(); } const bool& isDirectory = tryResult798
.inspect();
811 MOZ_TO_RESULT_INVOKE_MEMBER(aDirectory, IsDirectory))auto tryResult798 = (::mozilla::ToResultInvokeMember( (aDirectory
), &::mozilla::detail::DerefedType<decltype(aDirectory
)>::IsDirectory)); if ((__builtin_expect(!!(tryResult798.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::IsDirectory)"
, tryResult798.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 811, mozilla::dom::quota::Severity::Error); return tryResult798
.propagateErr(); } const bool& isDirectory = tryResult798
.inspect();
;
812
813 QM_TRY(OkIf(isDirectory), Err(NS_ERROR_FAILURE)){auto tryResult799 = (OkIf(isDirectory)); static_assert(std::
is_empty_v<typename decltype(tryResult799)::ok_type>); if
((__builtin_expect(!!(tryResult799.isErr()), 0))) { auto tryTempError
__attribute__((__unused__)) = tryResult799.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(isDirectory)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 813, 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)); }}
;
814 }
815
816 return exists;
817}
818
819constexpr nsresult mapNoDeviceSpaceError(nsresult aRv) {
820 if (aRv == NS_ERROR_FILE_NO_DEVICE_SPACE) {
821 // mozstorage translates SQLITE_FULL to
822 // NS_ERROR_FILE_NO_DEVICE_SPACE, which we know better as
823 // NS_ERROR_DOM_INDEXEDDB_QUOTA_ERR.
824 return NS_ERROR_DOM_INDEXEDDB_QUOTA_ERR;
825 }
826 return aRv;
827}
828
829Result<MovingNotNull<nsCOMPtr<mozIStorageConnection>>, nsresult>
830CreateStorageConnection(nsIFile& aDBFile, nsIFile& aFMDirectory,
831 const nsAString& aName, const nsACString& aOrigin,
832 const int64_t aDirectoryLockId,
833 const uint32_t aTelemetryId,
834 const Maybe<CipherKey>& aMaybeKey) {
835 AssertIsOnIOThread();
836 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"
, 836); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectoryLockId >= -1"
")"); do { *((volatile int*)__null) = 836; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
837
838 AUTO_PROFILER_LABEL("CreateStorageConnection", DOM)mozilla::AutoProfilerLabel raiiObject838( "CreateStorageConnection"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
839
840 QM_TRY_INSPECT(const auto& dbFileUrl,auto tryResult800 = (GetDatabaseFileURL(aDBFile, aDirectoryLockId
, aMaybeKey)); if ((__builtin_expect(!!(tryResult800.isErr())
, 0))) { mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDBFile, aDirectoryLockId, aMaybeKey)"
, tryResult800.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 841, mozilla::dom::quota::Severity::Error); return tryResult800
.propagateErr(); } const auto& dbFileUrl = tryResult800.inspect
();
841 GetDatabaseFileURL(aDBFile, aDirectoryLockId, aMaybeKey))auto tryResult800 = (GetDatabaseFileURL(aDBFile, aDirectoryLockId
, aMaybeKey)); if ((__builtin_expect(!!(tryResult800.isErr())
, 0))) { mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDBFile, aDirectoryLockId, aMaybeKey)"
, tryResult800.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 841, mozilla::dom::quota::Severity::Error); return tryResult800
.propagateErr(); } const auto& dbFileUrl = tryResult800.inspect
();
;
842
843 QM_TRY_INSPECT(const auto& storageService,auto tryResult801 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/storage" "/service;1")); if ((__builtin_expect
(!!(tryResult801.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\")"
, tryResult801.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 846, mozilla::dom::quota::Severity::Error); return tryResult801
.propagateErr(); } const auto& storageService = tryResult801
.inspect();
844 MOZ_TO_RESULT_GET_TYPED(nsCOMPtr<mozIStorageService>,auto tryResult801 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/storage" "/service;1")); if ((__builtin_expect
(!!(tryResult801.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\")"
, tryResult801.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 846, mozilla::dom::quota::Severity::Error); return tryResult801
.propagateErr(); } const auto& storageService = tryResult801
.inspect();
845 MOZ_SELECT_OVERLOAD(do_GetService),auto tryResult801 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/storage" "/service;1")); if ((__builtin_expect
(!!(tryResult801.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\")"
, tryResult801.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 846, mozilla::dom::quota::Severity::Error); return tryResult801
.propagateErr(); } const auto& storageService = tryResult801
.inspect();
846 MOZ_STORAGE_SERVICE_CONTRACTID))auto tryResult801 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/storage" "/service;1")); if ((__builtin_expect
(!!(tryResult801.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\")"
, tryResult801.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 846, mozilla::dom::quota::Severity::Error); return tryResult801
.propagateErr(); } const auto& storageService = tryResult801
.inspect();
;
847
848 QM_TRY_UNWRAP(auto tryResult802 = (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"
, 864, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult802.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\", 864, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult802.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 864, mozilla::dom::quota::Severity::Error); return tryResult802
.propagateErr(); } auto connection = tryResult802.unwrap();
849 auto connection,auto tryResult802 = (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"
, 864, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult802.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\", 864, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult802.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 864, mozilla::dom::quota::Severity::Error); return tryResult802
.propagateErr(); } auto connection = tryResult802.unwrap();
850 QM_OR_ELSE_WARN_IF(auto tryResult802 = (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"
, 864, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult802.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\", 864, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult802.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 864, mozilla::dom::quota::Severity::Error); return tryResult802
.propagateErr(); } auto connection = tryResult802.unwrap();
851 // Expression.auto tryResult802 = (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"
, 864, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult802.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\", 864, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult802.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 864, mozilla::dom::quota::Severity::Error); return tryResult802
.propagateErr(); } auto connection = tryResult802.unwrap();
852 OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId)auto tryResult802 = (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"
, 864, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult802.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\", 864, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult802.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 864, mozilla::dom::quota::Severity::Error); return tryResult802
.propagateErr(); } auto connection = tryResult802.unwrap();
853 .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> {auto tryResult802 = (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"
, 864, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult802.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\", 864, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult802.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 864, mozilla::dom::quota::Severity::Error); return tryResult802
.propagateErr(); } auto connection = tryResult802.unwrap();
854 return std::move(connection).unwrapBasePtr();auto tryResult802 = (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"
, 864, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult802.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\", 864, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult802.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 864, mozilla::dom::quota::Severity::Error); return tryResult802
.propagateErr(); } auto connection = tryResult802.unwrap();
855 }),auto tryResult802 = (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"
, 864, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult802.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\", 864, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult802.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 864, mozilla::dom::quota::Severity::Error); return tryResult802
.propagateErr(); } auto connection = tryResult802.unwrap();
856 // Predicate.auto tryResult802 = (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"
, 864, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult802.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\", 864, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult802.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 864, mozilla::dom::quota::Severity::Error); return tryResult802
.propagateErr(); } auto connection = tryResult802.unwrap();
857 ([&aName](nsresult aValue) {auto tryResult802 = (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"
, 864, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult802.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\", 864, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult802.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 864, mozilla::dom::quota::Severity::Error); return tryResult802
.propagateErr(); } auto connection = tryResult802.unwrap();
858 // If we're just opening the database during origin initialization,auto tryResult802 = (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"
, 864, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult802.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\", 864, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult802.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 864, mozilla::dom::quota::Severity::Error); return tryResult802
.propagateErr(); } auto connection = tryResult802.unwrap();
859 // then we don't want to erase any files. The failure here will failauto tryResult802 = (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"
, 864, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult802.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\", 864, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult802.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 864, mozilla::dom::quota::Severity::Error); return tryResult802
.propagateErr(); } auto connection = tryResult802.unwrap();
860 // origin initialization too.auto tryResult802 = (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"
, 864, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult802.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\", 864, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult802.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 864, mozilla::dom::quota::Severity::Error); return tryResult802
.propagateErr(); } auto connection = tryResult802.unwrap();
861 return IsDatabaseCorruptionError(aValue) && !aName.IsVoid();auto tryResult802 = (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"
, 864, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult802.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\", 864, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult802.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 864, mozilla::dom::quota::Severity::Error); return tryResult802
.propagateErr(); } auto connection = tryResult802.unwrap();
862 }),auto tryResult802 = (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"
, 864, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult802.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\", 864, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult802.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 864, mozilla::dom::quota::Severity::Error); return tryResult802
.propagateErr(); } auto connection = tryResult802.unwrap();
863 // Fallback.auto tryResult802 = (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"
, 864, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult802.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\", 864, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult802.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 864, mozilla::dom::quota::Severity::Error); return tryResult802
.propagateErr(); } auto connection = tryResult802.unwrap();
864 ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>))auto tryResult802 = (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"
, 864, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect
(!!(tryResult802.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\", 864, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)"
, tryResult802.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 864, mozilla::dom::quota::Severity::Error); return tryResult802
.propagateErr(); } auto connection = tryResult802.unwrap();
;
865
866 if (!connection) {
867 // XXX Shouldn't we also update quota usage?
868
869 // Nuke the database file.
870 QM_TRY(MOZ_TO_RESULT(aDBFile.Remove(false))){auto tryResult803 = (ToResult(aDBFile.Remove(false))); static_assert
(std::is_empty_v<typename decltype(tryResult803)::ok_type>
); if ((__builtin_expect(!!(tryResult803.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aDBFile.Remove(false))", tryResult803
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 870, mozilla::dom::quota::Severity::Error); return tryResult803
.propagateErr(); }}
;
871 QM_TRY_INSPECT(const bool& existsAsDirectory,auto tryResult804 = (ExistsAsDirectory(aFMDirectory)); if ((__builtin_expect
(!!(tryResult804.isErr()), 0))) { mozilla::dom::quota::HandleError
("ExistsAsDirectory(aFMDirectory)", tryResult804.inspectErr()
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 872, mozilla::dom::quota::Severity::Error); return tryResult804
.propagateErr(); } const bool& existsAsDirectory = tryResult804
.inspect();
872 ExistsAsDirectory(aFMDirectory))auto tryResult804 = (ExistsAsDirectory(aFMDirectory)); if ((__builtin_expect
(!!(tryResult804.isErr()), 0))) { mozilla::dom::quota::HandleError
("ExistsAsDirectory(aFMDirectory)", tryResult804.inspectErr()
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 872, mozilla::dom::quota::Severity::Error); return tryResult804
.propagateErr(); } const bool& existsAsDirectory = tryResult804
.inspect();
;
873
874 if (existsAsDirectory) {
875 QM_TRY(MOZ_TO_RESULT(aFMDirectory.Remove(true))){auto tryResult805 = (ToResult(aFMDirectory.Remove(true))); static_assert
(std::is_empty_v<typename decltype(tryResult805)::ok_type>
); if ((__builtin_expect(!!(tryResult805.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aFMDirectory.Remove(true))"
, tryResult805.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 875, mozilla::dom::quota::Severity::Error); return tryResult805
.propagateErr(); }}
;
876 }
877
878 QM_TRY_UNWRAP(connection, OpenDatabaseAndHandleBusy(auto tryResult806 = (OpenDatabaseAndHandleBusy( *storageService
, *dbFileUrl, aTelemetryId)); if ((__builtin_expect(!!(tryResult806
.isErr()), 0))) { mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy( *storageService, *dbFileUrl, aTelemetryId)"
, tryResult806.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 879, mozilla::dom::quota::Severity::Error); return tryResult806
.propagateErr(); } connection = tryResult806.unwrap();
879 *storageService, *dbFileUrl, aTelemetryId))auto tryResult806 = (OpenDatabaseAndHandleBusy( *storageService
, *dbFileUrl, aTelemetryId)); if ((__builtin_expect(!!(tryResult806
.isErr()), 0))) { mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy( *storageService, *dbFileUrl, aTelemetryId)"
, tryResult806.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 879, mozilla::dom::quota::Severity::Error); return tryResult806
.propagateErr(); } connection = tryResult806.unwrap();
;
880 }
881
882 QM_TRY(MOZ_TO_RESULT(SetDefaultPragmas(*connection))){auto tryResult807 = (ToResult(SetDefaultPragmas(*connection)
)); static_assert(std::is_empty_v<typename decltype(tryResult807
)::ok_type>); if ((__builtin_expect(!!(tryResult807.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(SetDefaultPragmas(*connection))"
, tryResult807.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 882, mozilla::dom::quota::Severity::Error); return tryResult807
.propagateErr(); }}
;
883 QM_TRY(MOZ_TO_RESULT(connection->EnableModule("filesystem"_ns))){auto tryResult808 = (ToResult(connection->EnableModule("filesystem"_ns
))); static_assert(std::is_empty_v<typename decltype(tryResult808
)::ok_type>); if ((__builtin_expect(!!(tryResult808.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->EnableModule(\"filesystem\"_ns))"
, tryResult808.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 883, mozilla::dom::quota::Severity::Error); return tryResult808
.propagateErr(); }}
;
884
885 // Check to make sure that the database schema is correct.
886 QM_TRY_INSPECT(const int32_t& schemaVersion,auto tryResult809 = (::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::GetSchemaVersion)); if ((__builtin_expect(!!(tryResult809
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion)"
, tryResult809.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 887, mozilla::dom::quota::Severity::Error); return tryResult809
.propagateErr(); } const int32_t& schemaVersion = tryResult809
.inspect();
887 MOZ_TO_RESULT_INVOKE_MEMBER(connection, GetSchemaVersion))auto tryResult809 = (::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::GetSchemaVersion)); if ((__builtin_expect(!!(tryResult809
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion)"
, tryResult809.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 887, mozilla::dom::quota::Severity::Error); return tryResult809
.propagateErr(); } const int32_t& schemaVersion = tryResult809
.inspect();
;
888
889 // Unknown schema will fail origin initialization too.
890 QM_TRY(OkIf(schemaVersion || !aName.IsVoid()),{auto tryResult810 = (OkIf(schemaVersion || !aName.IsVoid()))
; 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 || !aName.IsVoid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 893, 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"
, 892, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 892); } 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)); }}
891 Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR), [](const auto&) {{auto tryResult810 = (OkIf(schemaVersion || !aName.IsVoid()))
; 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 || !aName.IsVoid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 893, 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"
, 892, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 892); } 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)); }}
892 IDB_WARNING("Unable to open IndexedDB database, schema is not set!");{auto tryResult810 = (OkIf(schemaVersion || !aName.IsVoid()))
; 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 || !aName.IsVoid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 893, 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"
, 892, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 892); } 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)); }}
893 }){auto tryResult810 = (OkIf(schemaVersion || !aName.IsVoid()))
; 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 || !aName.IsVoid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 893, 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"
, 892, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 892); } 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)); }}
;
894
895 QM_TRY({auto tryResult811 = (OkIf(schemaVersion <= kSQLiteSchemaVersion
)); static_assert(std::is_empty_v<typename decltype(tryResult811
)::ok_type>); if ((__builtin_expect(!!(tryResult811.isErr(
)), 0))) { auto tryTempError = tryResult811.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(schemaVersion <= kSQLiteSchemaVersion)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 899, 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"
, 898, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 898); } 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)); }}
896 OkIf(schemaVersion <= kSQLiteSchemaVersion),{auto tryResult811 = (OkIf(schemaVersion <= kSQLiteSchemaVersion
)); static_assert(std::is_empty_v<typename decltype(tryResult811
)::ok_type>); if ((__builtin_expect(!!(tryResult811.isErr(
)), 0))) { auto tryTempError = tryResult811.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(schemaVersion <= kSQLiteSchemaVersion)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 899, 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"
, 898, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 898); } 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)); }}
897 Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR), [](const auto&) {{auto tryResult811 = (OkIf(schemaVersion <= kSQLiteSchemaVersion
)); static_assert(std::is_empty_v<typename decltype(tryResult811
)::ok_type>); if ((__builtin_expect(!!(tryResult811.isErr(
)), 0))) { auto tryTempError = tryResult811.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(schemaVersion <= kSQLiteSchemaVersion)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 899, 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"
, 898, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 898); } 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)); }}
898 IDB_WARNING("Unable to open IndexedDB database, schema is too high!");{auto tryResult811 = (OkIf(schemaVersion <= kSQLiteSchemaVersion
)); static_assert(std::is_empty_v<typename decltype(tryResult811
)::ok_type>); if ((__builtin_expect(!!(tryResult811.isErr(
)), 0))) { auto tryTempError = tryResult811.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(schemaVersion <= kSQLiteSchemaVersion)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 899, 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"
, 898, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 898); } 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)); }}
899 }){auto tryResult811 = (OkIf(schemaVersion <= kSQLiteSchemaVersion
)); static_assert(std::is_empty_v<typename decltype(tryResult811
)::ok_type>); if ((__builtin_expect(!!(tryResult811.isErr(
)), 0))) { auto tryTempError = tryResult811.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(schemaVersion <= kSQLiteSchemaVersion)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 899, 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"
, 898, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 898); } 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
901 bool journalModeSet = false;
902
903 if (schemaVersion != kSQLiteSchemaVersion) {
904 const bool newDatabase = !schemaVersion;
905
906 if (newDatabase) {
907 // Set the page size first.
908 const auto sqlitePageSizeOverride =
909 aMaybeKey ? 8192 : kSQLitePageSizeOverride;
910 if (sqlitePageSizeOverride) {
911 QM_TRY(MOZ_TO_RESULT(connection->ExecuteSimpleSQL(nsPrintfCString({auto tryResult812 = (ToResult(connection->ExecuteSimpleSQL
(nsPrintfCString( "PRAGMA page_size = %" "u" ";", sqlitePageSizeOverride
)))); static_assert(std::is_empty_v<typename decltype(tryResult812
)::ok_type>); if ((__builtin_expect(!!(tryResult812.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL(nsPrintfCString( \"PRAGMA page_size = %\" \"u\" \";\", sqlitePageSizeOverride)))"
, tryResult812.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 912, mozilla::dom::quota::Severity::Error); return tryResult812
.propagateErr(); }}
912 "PRAGMA page_size = %" PRIu32 ";", sqlitePageSizeOverride)))){auto tryResult812 = (ToResult(connection->ExecuteSimpleSQL
(nsPrintfCString( "PRAGMA page_size = %" "u" ";", sqlitePageSizeOverride
)))); static_assert(std::is_empty_v<typename decltype(tryResult812
)::ok_type>); if ((__builtin_expect(!!(tryResult812.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL(nsPrintfCString( \"PRAGMA page_size = %\" \"u\" \";\", sqlitePageSizeOverride)))"
, tryResult812.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 912, mozilla::dom::quota::Severity::Error); return tryResult812
.propagateErr(); }}
;
913 }
914
915 // We have to set the auto_vacuum mode before opening a transaction.
916 QM_TRY((MOZ_TO_RESULT_INVOKE_MEMBER({auto tryResult813 = ((::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(tryResult813
)::ok_type>); if ((__builtin_expect(!!(tryResult813.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))"
, tryResult813.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 927, mozilla::dom::quota::Severity::Error); return tryResult813
.propagateErr(); }}
917 connection, ExecuteSimpleSQL,{auto tryResult813 = ((::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(tryResult813
)::ok_type>); if ((__builtin_expect(!!(tryResult813.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))"
, tryResult813.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 927, mozilla::dom::quota::Severity::Error); return tryResult813
.propagateErr(); }}
918#ifdef IDB_MOBILE{auto tryResult813 = ((::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(tryResult813
)::ok_type>); if ((__builtin_expect(!!(tryResult813.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))"
, tryResult813.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 927, mozilla::dom::quota::Severity::Error); return tryResult813
.propagateErr(); }}
919 // Turn on full auto_vacuum mode to reclaim disk space on{auto tryResult813 = ((::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(tryResult813
)::ok_type>); if ((__builtin_expect(!!(tryResult813.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))"
, tryResult813.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 927, mozilla::dom::quota::Severity::Error); return tryResult813
.propagateErr(); }}
920 // mobile devices (at the cost of some COMMIT speed).{auto tryResult813 = ((::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(tryResult813
)::ok_type>); if ((__builtin_expect(!!(tryResult813.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))"
, tryResult813.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 927, mozilla::dom::quota::Severity::Error); return tryResult813
.propagateErr(); }}
921 "PRAGMA auto_vacuum = FULL;"_ns{auto tryResult813 = ((::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(tryResult813
)::ok_type>); if ((__builtin_expect(!!(tryResult813.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))"
, tryResult813.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 927, mozilla::dom::quota::Severity::Error); return tryResult813
.propagateErr(); }}
922#else{auto tryResult813 = ((::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(tryResult813
)::ok_type>); if ((__builtin_expect(!!(tryResult813.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))"
, tryResult813.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 927, mozilla::dom::quota::Severity::Error); return tryResult813
.propagateErr(); }}
923 // Turn on incremental auto_vacuum mode on desktop builds.{auto tryResult813 = ((::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(tryResult813
)::ok_type>); if ((__builtin_expect(!!(tryResult813.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))"
, tryResult813.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 927, mozilla::dom::quota::Severity::Error); return tryResult813
.propagateErr(); }}
924 "PRAGMA auto_vacuum = INCREMENTAL;"_ns{auto tryResult813 = ((::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(tryResult813
)::ok_type>); if ((__builtin_expect(!!(tryResult813.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))"
, tryResult813.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 927, mozilla::dom::quota::Severity::Error); return tryResult813
.propagateErr(); }}
925#endif{auto tryResult813 = ((::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(tryResult813
)::ok_type>); if ((__builtin_expect(!!(tryResult813.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))"
, tryResult813.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 927, mozilla::dom::quota::Severity::Error); return tryResult813
.propagateErr(); }}
926 ){auto tryResult813 = ((::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(tryResult813
)::ok_type>); if ((__builtin_expect(!!(tryResult813.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))"
, tryResult813.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 927, mozilla::dom::quota::Severity::Error); return tryResult813
.propagateErr(); }}
927 .mapErr(mapNoDeviceSpaceError))){auto tryResult813 = ((::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(tryResult813
)::ok_type>); if ((__builtin_expect(!!(tryResult813.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))"
, tryResult813.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 927, mozilla::dom::quota::Severity::Error); return tryResult813
.propagateErr(); }}
;
928
929 QM_TRY(MOZ_TO_RESULT(SetJournalMode(*connection))){auto tryResult814 = (ToResult(SetJournalMode(*connection)));
static_assert(std::is_empty_v<typename decltype(tryResult814
)::ok_type>); if ((__builtin_expect(!!(tryResult814.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(SetJournalMode(*connection))"
, tryResult814.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 929, mozilla::dom::quota::Severity::Error); return tryResult814
.propagateErr(); }}
;
930
931 journalModeSet = true;
932 } else {
933#ifdef DEBUG1
934 // Disable foreign key support while upgrading. This has to be done before
935 // starting a transaction.
936 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(connection->ExecuteSimpleSQL("PRAGMA foreign_keys = OFF;"_ns
))), 1)))), 1))) { } else { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 937); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))"
")"); do { *((volatile int*)__null) = 937; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
937 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 { static_assert( mozilla::detail
::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 937); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))"
")"); do { *((volatile int*)__null) = 937; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
938#endif
939 }
940
941 bool vacuumNeeded = false;
942
943 mozStorageTransaction transaction(
944 connection.get(), false, mozIStorageConnection::TRANSACTION_IMMEDIATE);
945
946 QM_TRY(MOZ_TO_RESULT(transaction.Start())){auto tryResult815 = (ToResult(transaction.Start())); static_assert
(std::is_empty_v<typename decltype(tryResult815)::ok_type>
); if ((__builtin_expect(!!(tryResult815.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(transaction.Start())", tryResult815
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 946, mozilla::dom::quota::Severity::Error); return tryResult815
.propagateErr(); }}
;
947
948 if (newDatabase) {
949 QM_TRY(MOZ_TO_RESULT(CreateTables(*connection))){auto tryResult816 = (ToResult(CreateTables(*connection))); static_assert
(std::is_empty_v<typename decltype(tryResult816)::ok_type>
); if ((__builtin_expect(!!(tryResult816.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(CreateTables(*connection))"
, tryResult816.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 949, mozilla::dom::quota::Severity::Error); return tryResult816
.propagateErr(); }}
;
950
951#ifdef DEBUG1
952 {
953 QM_TRY_INSPECT(auto tryResult817 = (::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::GetSchemaVersion)); if ((__builtin_expect(!!(tryResult817
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult817.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"
, 956, 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"
, 956); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 956; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const int32_t
& schemaVersion = tryResult817.inspect();
954 const int32_t& schemaVersion,auto tryResult817 = (::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::GetSchemaVersion)); if ((__builtin_expect(!!(tryResult817
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult817.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"
, 956, 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"
, 956); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 956; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const int32_t
& schemaVersion = tryResult817.inspect();
955 MOZ_TO_RESULT_INVOKE_MEMBER(connection, GetSchemaVersion),auto tryResult817 = (::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::GetSchemaVersion)); if ((__builtin_expect(!!(tryResult817
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult817.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"
, 956, 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"
, 956); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 956; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const int32_t
& schemaVersion = tryResult817.inspect();
956 QM_ASSERT_UNREACHABLE)auto tryResult817 = (::mozilla::ToResultInvokeMember( (connection
), &::mozilla::detail::DerefedType<decltype(connection
)>::GetSchemaVersion)); if ((__builtin_expect(!!(tryResult817
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult817.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"
, 956, 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"
, 956); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 956; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const int32_t
& schemaVersion = tryResult817.inspect();
;
957 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"
, 957); AnnotateMozCrashReason("MOZ_ASSERT" "(" "schemaVersion == kSQLiteSchemaVersion"
")"); do { *((volatile int*)__null) = 957; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
958 }
959#endif
960
961 // The parameter names are not used, parameters are bound by index only
962 // locally in the same function.
963 QM_TRY_INSPECT(auto tryResult818 = (::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(!!(tryResult818.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)"
, tryResult818.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 968, mozilla::dom::quota::Severity::Error); return tryResult818
.propagateErr(); } const auto& stmt = tryResult818.inspect
();
964 const auto& stmt,auto tryResult818 = (::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(!!(tryResult818.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)"
, tryResult818.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 968, mozilla::dom::quota::Severity::Error); return tryResult818
.propagateErr(); } const auto& stmt = tryResult818.inspect
();
965 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult818 = (::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(!!(tryResult818.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)"
, tryResult818.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 968, mozilla::dom::quota::Severity::Error); return tryResult818
.propagateErr(); } const auto& stmt = tryResult818.inspect
();
966 nsCOMPtr<mozIStorageStatement>, connection, CreateStatement,auto tryResult818 = (::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(!!(tryResult818.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)"
, tryResult818.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 968, mozilla::dom::quota::Severity::Error); return tryResult818
.propagateErr(); } const auto& stmt = tryResult818.inspect
();
967 "INSERT INTO database (name, origin) "auto tryResult818 = (::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(!!(tryResult818.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)"
, tryResult818.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 968, mozilla::dom::quota::Severity::Error); return tryResult818
.propagateErr(); } const auto& stmt = tryResult818.inspect
();
968 "VALUES (:name, :origin)"_ns))auto tryResult818 = (::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(!!(tryResult818.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)"
, tryResult818.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 968, mozilla::dom::quota::Severity::Error); return tryResult818
.propagateErr(); } const auto& stmt = tryResult818.inspect
();
;
969
970 QM_TRY(MOZ_TO_RESULT(stmt->BindStringByIndex(0, aName))){auto tryResult819 = (ToResult(stmt->BindStringByIndex(0, aName
))); static_assert(std::is_empty_v<typename decltype(tryResult819
)::ok_type>); if ((__builtin_expect(!!(tryResult819.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindStringByIndex(0, aName))"
, tryResult819.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 970, mozilla::dom::quota::Severity::Error); return tryResult819
.propagateErr(); }}
;
971 QM_TRY(MOZ_TO_RESULT(stmt->BindUTF8StringByIndex(1, aOrigin))){auto tryResult820 = (ToResult(stmt->BindUTF8StringByIndex
(1, aOrigin))); static_assert(std::is_empty_v<typename decltype
(tryResult820)::ok_type>); if ((__builtin_expect(!!(tryResult820
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindUTF8StringByIndex(1, aOrigin))"
, tryResult820.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 971, mozilla::dom::quota::Severity::Error); return tryResult820
.propagateErr(); }}
;
972 QM_TRY(MOZ_TO_RESULT(stmt->Execute())){auto tryResult821 = (ToResult(stmt->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult821)::ok_type>
); if ((__builtin_expect(!!(tryResult821.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt->Execute())", tryResult821
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 972, mozilla::dom::quota::Severity::Error); return tryResult821
.propagateErr(); }}
;
973 } else {
974 QM_TRY_UNWRAP(vacuumNeeded, MaybeUpgradeSchema(*connection, schemaVersion,auto tryResult822 = (MaybeUpgradeSchema(*connection, schemaVersion
, aFMDirectory, aOrigin)); if ((__builtin_expect(!!(tryResult822
.isErr()), 0))) { mozilla::dom::quota::HandleError("MaybeUpgradeSchema(*connection, schemaVersion, aFMDirectory, aOrigin)"
, tryResult822.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 975, mozilla::dom::quota::Severity::Error); return tryResult822
.propagateErr(); } vacuumNeeded = tryResult822.unwrap();
975 aFMDirectory, aOrigin))auto tryResult822 = (MaybeUpgradeSchema(*connection, schemaVersion
, aFMDirectory, aOrigin)); if ((__builtin_expect(!!(tryResult822
.isErr()), 0))) { mozilla::dom::quota::HandleError("MaybeUpgradeSchema(*connection, schemaVersion, aFMDirectory, aOrigin)"
, tryResult822.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 975, mozilla::dom::quota::Severity::Error); return tryResult822
.propagateErr(); } vacuumNeeded = tryResult822.unwrap();
;
976 }
977
978 QM_TRY(MOZ_TO_RESULT_INVOKE_MEMBER(transaction, Commit){auto tryResult823 = (::mozilla::ToResultInvokeMember( (transaction
), &::mozilla::detail::DerefedType<decltype(transaction
)>::Commit) .mapErr(mapNoDeviceSpaceError)); static_assert
(std::is_empty_v<typename decltype(tryResult823)::ok_type>
); if ((__builtin_expect(!!(tryResult823.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (transaction), &::mozilla::detail::DerefedType<decltype(transaction)>::Commit) .mapErr(mapNoDeviceSpaceError)"
, tryResult823.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 979, mozilla::dom::quota::Severity::Error); return tryResult823
.propagateErr(); }}
979 .mapErr(mapNoDeviceSpaceError)){auto tryResult823 = (::mozilla::ToResultInvokeMember( (transaction
), &::mozilla::detail::DerefedType<decltype(transaction
)>::Commit) .mapErr(mapNoDeviceSpaceError)); static_assert
(std::is_empty_v<typename decltype(tryResult823)::ok_type>
); if ((__builtin_expect(!!(tryResult823.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (transaction), &::mozilla::detail::DerefedType<decltype(transaction)>::Commit) .mapErr(mapNoDeviceSpaceError)"
, tryResult823.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 979, mozilla::dom::quota::Severity::Error); return tryResult823
.propagateErr(); }}
;
980
981#ifdef DEBUG1
982 if (!newDatabase) {
983 // Re-enable foreign key support after doing a foreign key check.
984 QM_TRY_INSPECT(const bool& foreignKeyError,auto tryResult824 = (CreateAndExecuteSingleStepStatement< SingleStepResult
::ReturnNullIfNoResult>( *connection, "PRAGMA foreign_key_check;"_ns
)); if ((__builtin_expect(!!(tryResult824.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult824.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"
, 988, 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"
, 988); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 988; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const bool
& foreignKeyError = tryResult824.inspect();
985 CreateAndExecuteSingleStepStatement<auto tryResult824 = (CreateAndExecuteSingleStepStatement< SingleStepResult
::ReturnNullIfNoResult>( *connection, "PRAGMA foreign_key_check;"_ns
)); if ((__builtin_expect(!!(tryResult824.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult824.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"
, 988, 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"
, 988); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 988; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const bool
& foreignKeyError = tryResult824.inspect();
986 SingleStepResult::ReturnNullIfNoResult>(auto tryResult824 = (CreateAndExecuteSingleStepStatement< SingleStepResult
::ReturnNullIfNoResult>( *connection, "PRAGMA foreign_key_check;"_ns
)); if ((__builtin_expect(!!(tryResult824.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult824.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"
, 988, 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"
, 988); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 988; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const bool
& foreignKeyError = tryResult824.inspect();
987 *connection, "PRAGMA foreign_key_check;"_ns),auto tryResult824 = (CreateAndExecuteSingleStepStatement< SingleStepResult
::ReturnNullIfNoResult>( *connection, "PRAGMA foreign_key_check;"_ns
)); if ((__builtin_expect(!!(tryResult824.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult824.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"
, 988, 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"
, 988); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 988; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const bool
& foreignKeyError = tryResult824.inspect();
988 QM_ASSERT_UNREACHABLE)auto tryResult824 = (CreateAndExecuteSingleStepStatement< SingleStepResult
::ReturnNullIfNoResult>( *connection, "PRAGMA foreign_key_check;"_ns
)); if ((__builtin_expect(!!(tryResult824.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult824.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"
, 988, 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"
, 988); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 988; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const bool
& foreignKeyError = tryResult824.inspect();
;
989
990 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"
, 990); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!foreignKeyError"
") (" "Database has inconsisistent foreign keys!" ")"); do {
*((volatile int*)__null) = 990; __attribute__((nomerge)) ::abort
(); } while (false); } } while (false)
;
991
992 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(connection->ExecuteSimpleSQL("PRAGMA foreign_keys = OFF;"_ns
))), 1)))), 1))) { } else { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 993); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))"
")"); do { *((volatile int*)__null) = 993; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
993 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 { static_assert( mozilla::detail
::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 993); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))"
")"); do { *((volatile int*)__null) = 993; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
994 }
995#endif
996
997 if (kSQLitePageSizeOverride && !newDatabase) {
998 QM_TRY_INSPECT(const auto& stmt,auto tryResult825 = (CreateAndExecuteSingleStepStatement( *connection
, "PRAGMA page_size;"_ns)); if ((__builtin_expect(!!(tryResult825
.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA page_size;\"_ns)"
, tryResult825.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1000, mozilla::dom::quota::Severity::Error); return tryResult825
.propagateErr(); } const auto& stmt = tryResult825.inspect
();
999 CreateAndExecuteSingleStepStatement(auto tryResult825 = (CreateAndExecuteSingleStepStatement( *connection
, "PRAGMA page_size;"_ns)); if ((__builtin_expect(!!(tryResult825
.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA page_size;\"_ns)"
, tryResult825.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1000, mozilla::dom::quota::Severity::Error); return tryResult825
.propagateErr(); } const auto& stmt = tryResult825.inspect
();
1000 *connection, "PRAGMA page_size;"_ns))auto tryResult825 = (CreateAndExecuteSingleStepStatement( *connection
, "PRAGMA page_size;"_ns)); if ((__builtin_expect(!!(tryResult825
.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA page_size;\"_ns)"
, tryResult825.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1000, mozilla::dom::quota::Severity::Error); return tryResult825
.propagateErr(); } const auto& stmt = tryResult825.inspect
();
;
1001
1002 QM_TRY_INSPECT(const int32_t& pageSize,auto tryResult826 = (::mozilla::ToResultInvokeMember( (*stmt)
, &::mozilla::detail::DerefedType<decltype(*stmt)>::
GetInt32, 0)); if ((__builtin_expect(!!(tryResult826.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult826.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1003, mozilla::dom::quota::Severity::Error); return tryResult826
.propagateErr(); } const int32_t& pageSize = tryResult826
.inspect();
1003 MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt32, 0))auto tryResult826 = (::mozilla::ToResultInvokeMember( (*stmt)
, &::mozilla::detail::DerefedType<decltype(*stmt)>::
GetInt32, 0)); if ((__builtin_expect(!!(tryResult826.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult826.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1003, mozilla::dom::quota::Severity::Error); return tryResult826
.propagateErr(); } const int32_t& pageSize = tryResult826
.inspect();
;
1004 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"
, 1004); AnnotateMozCrashReason("MOZ_ASSERT" "(" "pageSize >= 512 && pageSize <= 65536"
")"); do { *((volatile int*)__null) = 1004; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1005
1006 if (kSQLitePageSizeOverride != uint32_t(pageSize)) {
1007 // We must not be in WAL journal mode to change the page size.
1008 QM_TRY(MOZ_TO_RESULT({auto tryResult827 = (ToResult(connection->ExecuteSimpleSQL
("PRAGMA journal_mode = DELETE;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult827)::ok_type>); if ((__builtin_expect
(!!(tryResult827.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(connection->ExecuteSimpleSQL(\"PRAGMA journal_mode = DELETE;\"_ns))"
, tryResult827.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1009, mozilla::dom::quota::Severity::Error); return tryResult827
.propagateErr(); }}
1009 connection->ExecuteSimpleSQL("PRAGMA journal_mode = DELETE;"_ns))){auto tryResult827 = (ToResult(connection->ExecuteSimpleSQL
("PRAGMA journal_mode = DELETE;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult827)::ok_type>); if ((__builtin_expect
(!!(tryResult827.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(connection->ExecuteSimpleSQL(\"PRAGMA journal_mode = DELETE;\"_ns))"
, tryResult827.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1009, mozilla::dom::quota::Severity::Error); return tryResult827
.propagateErr(); }}
;
1010
1011 QM_TRY_INSPECT(const auto& stmt,auto tryResult828 = (CreateAndExecuteSingleStepStatement( *connection
, "PRAGMA journal_mode;"_ns)); if ((__builtin_expect(!!(tryResult828
.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA journal_mode;\"_ns)"
, tryResult828.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1013, mozilla::dom::quota::Severity::Error); return tryResult828
.propagateErr(); } const auto& stmt = tryResult828.inspect
();
1012 CreateAndExecuteSingleStepStatement(auto tryResult828 = (CreateAndExecuteSingleStepStatement( *connection
, "PRAGMA journal_mode;"_ns)); if ((__builtin_expect(!!(tryResult828
.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA journal_mode;\"_ns)"
, tryResult828.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1013, mozilla::dom::quota::Severity::Error); return tryResult828
.propagateErr(); } const auto& stmt = tryResult828.inspect
();
1013 *connection, "PRAGMA journal_mode;"_ns))auto tryResult828 = (CreateAndExecuteSingleStepStatement( *connection
, "PRAGMA journal_mode;"_ns)); if ((__builtin_expect(!!(tryResult828
.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA journal_mode;\"_ns)"
, tryResult828.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1013, mozilla::dom::quota::Severity::Error); return tryResult828
.propagateErr(); } const auto& stmt = tryResult828.inspect
();
;
1014
1015 QM_TRY_INSPECT(const auto& journalMode,auto tryResult829 = (::mozilla::ToResultInvoke< nsCString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect
(!!(tryResult829.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)"
, tryResult829.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1017, mozilla::dom::quota::Severity::Error); return tryResult829
.propagateErr(); } const auto& journalMode = tryResult829
.inspect();
1016 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsCString, *stmt,auto tryResult829 = (::mozilla::ToResultInvoke< nsCString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect
(!!(tryResult829.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)"
, tryResult829.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1017, mozilla::dom::quota::Severity::Error); return tryResult829
.propagateErr(); } const auto& journalMode = tryResult829
.inspect();
1017 GetUTF8String, 0))auto tryResult829 = (::mozilla::ToResultInvoke< nsCString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect
(!!(tryResult829.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)"
, tryResult829.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1017, mozilla::dom::quota::Severity::Error); return tryResult829
.propagateErr(); } const auto& journalMode = tryResult829
.inspect();
;
1018
1019 if (journalMode.EqualsLiteral("delete")) {
1020 // Successfully set to rollback journal mode so changing the page size
1021 // is possible with a VACUUM.
1022 QM_TRY(MOZ_TO_RESULT(connection->ExecuteSimpleSQL(nsPrintfCString({auto tryResult830 = (ToResult(connection->ExecuteSimpleSQL
(nsPrintfCString( "PRAGMA page_size = %" "u" ";", kSQLitePageSizeOverride
)))); static_assert(std::is_empty_v<typename decltype(tryResult830
)::ok_type>); if ((__builtin_expect(!!(tryResult830.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL(nsPrintfCString( \"PRAGMA page_size = %\" \"u\" \";\", kSQLitePageSizeOverride)))"
, tryResult830.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1023, mozilla::dom::quota::Severity::Error); return tryResult830
.propagateErr(); }}
1023 "PRAGMA page_size = %" PRIu32 ";", kSQLitePageSizeOverride)))){auto tryResult830 = (ToResult(connection->ExecuteSimpleSQL
(nsPrintfCString( "PRAGMA page_size = %" "u" ";", kSQLitePageSizeOverride
)))); static_assert(std::is_empty_v<typename decltype(tryResult830
)::ok_type>); if ((__builtin_expect(!!(tryResult830.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL(nsPrintfCString( \"PRAGMA page_size = %\" \"u\" \";\", kSQLitePageSizeOverride)))"
, tryResult830.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1023, mozilla::dom::quota::Severity::Error); return tryResult830
.propagateErr(); }}
;
1024
1025 // We will need to VACUUM in order to change the page size.
1026 vacuumNeeded = true;
1027 } else {
1028 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"
, 1030)
1029 "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"
, 1030)
1030 "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"
, 1030)
;
1031 }
1032 }
1033 }
1034
1035 if (vacuumNeeded) {
1036 QM_TRY(MOZ_TO_RESULT(connection->ExecuteSimpleSQL("VACUUM;"_ns))){auto tryResult831 = (ToResult(connection->ExecuteSimpleSQL
("VACUUM;"_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(\"VACUUM;\"_ns))"
, tryResult831.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1036, mozilla::dom::quota::Severity::Error); return tryResult831
.propagateErr(); }}
;
1037 }
1038
1039 if (newDatabase || vacuumNeeded) {
1040 if (journalModeSet) {
1041 // Make sure we checkpoint to get an accurate file size.
1042 QM_TRY(MOZ_TO_RESULT({auto tryResult832 = (ToResult(connection->ExecuteSimpleSQL
("PRAGMA wal_checkpoint(FULL);"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult832)::ok_type>); if ((__builtin_expect
(!!(tryResult832.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(connection->ExecuteSimpleSQL(\"PRAGMA wal_checkpoint(FULL);\"_ns))"
, tryResult832.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1043, mozilla::dom::quota::Severity::Error); return tryResult832
.propagateErr(); }}
1043 connection->ExecuteSimpleSQL("PRAGMA wal_checkpoint(FULL);"_ns))){auto tryResult832 = (ToResult(connection->ExecuteSimpleSQL
("PRAGMA wal_checkpoint(FULL);"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult832)::ok_type>); if ((__builtin_expect
(!!(tryResult832.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(connection->ExecuteSimpleSQL(\"PRAGMA wal_checkpoint(FULL);\"_ns))"
, tryResult832.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1043, mozilla::dom::quota::Severity::Error); return tryResult832
.propagateErr(); }}
;
1044 }
1045
1046 QM_TRY_INSPECT(const int64_t& fileSize,auto tryResult833 = (::mozilla::ToResultInvokeMember( (aDBFile
), &::mozilla::detail::DerefedType<decltype(aDBFile)>
::GetFileSize)); if ((__builtin_expect(!!(tryResult833.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDBFile), &::mozilla::detail::DerefedType<decltype(aDBFile)>::GetFileSize)"
, tryResult833.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1047, mozilla::dom::quota::Severity::Error); return tryResult833
.propagateErr(); } const int64_t& fileSize = tryResult833
.inspect();
1047 MOZ_TO_RESULT_INVOKE_MEMBER(aDBFile, GetFileSize))auto tryResult833 = (::mozilla::ToResultInvokeMember( (aDBFile
), &::mozilla::detail::DerefedType<decltype(aDBFile)>
::GetFileSize)); if ((__builtin_expect(!!(tryResult833.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDBFile), &::mozilla::detail::DerefedType<decltype(aDBFile)>::GetFileSize)"
, tryResult833.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1047, mozilla::dom::quota::Severity::Error); return tryResult833
.propagateErr(); } const int64_t& fileSize = tryResult833
.inspect();
;
1048 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"
, 1048); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 1048; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1049
1050 PRTime vacuumTime = PR_Now();
1051 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"
, 1051); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime"
")"); do { *((volatile int*)__null) = 1051; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1052
1053 // The parameter names are not used, parameters are bound by index only
1054 // locally in the same function.
1055 QM_TRY_INSPECT(auto tryResult834 = (::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(!!
(tryResult834.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)"
, tryResult834.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1061, mozilla::dom::quota::Severity::Error); return tryResult834
.propagateErr(); } const auto& vacuumTimeStmt = tryResult834
.inspect();
1056 const auto& vacuumTimeStmt,auto tryResult834 = (::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(!!
(tryResult834.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)"
, tryResult834.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1061, mozilla::dom::quota::Severity::Error); return tryResult834
.propagateErr(); } const auto& vacuumTimeStmt = tryResult834
.inspect();
1057 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsCOMPtr<mozIStorageStatement>,auto tryResult834 = (::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(!!
(tryResult834.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)"
, tryResult834.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1061, mozilla::dom::quota::Severity::Error); return tryResult834
.propagateErr(); } const auto& vacuumTimeStmt = tryResult834
.inspect();
1058 connection, CreateStatement,auto tryResult834 = (::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(!!
(tryResult834.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)"
, tryResult834.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1061, mozilla::dom::quota::Severity::Error); return tryResult834
.propagateErr(); } const auto& vacuumTimeStmt = tryResult834
.inspect();
1059 "UPDATE database "auto tryResult834 = (::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(!!
(tryResult834.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)"
, tryResult834.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1061, mozilla::dom::quota::Severity::Error); return tryResult834
.propagateErr(); } const auto& vacuumTimeStmt = tryResult834
.inspect();
1060 "SET last_vacuum_time = :time"auto tryResult834 = (::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(!!
(tryResult834.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)"
, tryResult834.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1061, mozilla::dom::quota::Severity::Error); return tryResult834
.propagateErr(); } const auto& vacuumTimeStmt = tryResult834
.inspect();
1061 ", last_vacuum_size = :size;"_ns))auto tryResult834 = (::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(!!
(tryResult834.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)"
, tryResult834.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1061, mozilla::dom::quota::Severity::Error); return tryResult834
.propagateErr(); } const auto& vacuumTimeStmt = tryResult834
.inspect();
;
1062
1063 QM_TRY(MOZ_TO_RESULT(vacuumTimeStmt->BindInt64ByIndex(0, vacuumTime))){auto tryResult835 = (ToResult(vacuumTimeStmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult835)::ok_type>); if ((__builtin_expect(!!(tryResult835
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(vacuumTimeStmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult835.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1063, mozilla::dom::quota::Severity::Error); return tryResult835
.propagateErr(); }}
;
1064 QM_TRY(MOZ_TO_RESULT(vacuumTimeStmt->BindInt64ByIndex(1, fileSize))){auto tryResult836 = (ToResult(vacuumTimeStmt->BindInt64ByIndex
(1, fileSize))); static_assert(std::is_empty_v<typename decltype
(tryResult836)::ok_type>); if ((__builtin_expect(!!(tryResult836
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(vacuumTimeStmt->BindInt64ByIndex(1, fileSize))"
, tryResult836.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1064, mozilla::dom::quota::Severity::Error); return tryResult836
.propagateErr(); }}
;
1065 QM_TRY(MOZ_TO_RESULT(vacuumTimeStmt->Execute())){auto tryResult837 = (ToResult(vacuumTimeStmt->Execute()))
; static_assert(std::is_empty_v<typename decltype(tryResult837
)::ok_type>); if ((__builtin_expect(!!(tryResult837.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(vacuumTimeStmt->Execute())"
, tryResult837.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1065, mozilla::dom::quota::Severity::Error); return tryResult837
.propagateErr(); }}
;
1066 }
1067 }
1068
1069 if (!journalModeSet) {
1070 QM_TRY(MOZ_TO_RESULT(SetJournalMode(*connection))){auto tryResult838 = (ToResult(SetJournalMode(*connection)));
static_assert(std::is_empty_v<typename decltype(tryResult838
)::ok_type>); if ((__builtin_expect(!!(tryResult838.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(SetJournalMode(*connection))"
, tryResult838.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1070, mozilla::dom::quota::Severity::Error); return tryResult838
.propagateErr(); }}
;
1071 }
1072
1073 return WrapMovingNotNullUnchecked(std::move(connection));
1074}
1075
1076nsCOMPtr<nsIFile> GetFileForPath(const nsAString& aPath) {
1077 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"
, 1077); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aPath.IsEmpty()"
")"); do { *((volatile int*)__null) = 1077; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1078
1079 QM_TRY_RETURN(QM_NewLocalFile(aPath), nullptr){auto tryResult839 = (QM_NewLocalFile(aPath)); if ((__builtin_expect
(!!(tryResult839.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult839.unwrapErr(); mozilla::dom::quota
::HandleError("QM_NewLocalFile(aPath)", tryResult839.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1079, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "QM_NewLocalFile(aPath)"
, tryTempError, nullptr); } return tryResult839.unwrap();}
;
1080}
1081
1082Result<MovingNotNull<nsCOMPtr<mozIStorageConnection>>, nsresult>
1083GetStorageConnection(nsIFile& aDatabaseFile, const int64_t aDirectoryLockId,
1084 const uint32_t aTelemetryId,
1085 const Maybe<CipherKey>& aMaybeKey) {
1086 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"
, 1086); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { *((volatile int*)__null) = 1086; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1087 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"
, 1087); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 1087; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1088 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"
, 1088); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectoryLockId >= 0"
")"); do { *((volatile int*)__null) = 1088; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1089
1090 AUTO_PROFILER_LABEL("GetStorageConnection", DOM)mozilla::AutoProfilerLabel raiiObject1090( "GetStorageConnection"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
1091
1092 QM_TRY_INSPECT(const bool& exists,auto tryResult840 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::Exists)); if ((__builtin_expect(!!(tryResult840.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::Exists)"
, tryResult840.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1093, mozilla::dom::quota::Severity::Error); return tryResult840
.propagateErr(); } const bool& exists = tryResult840.inspect
();
1093 MOZ_TO_RESULT_INVOKE_MEMBER(aDatabaseFile, Exists))auto tryResult840 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::Exists)); if ((__builtin_expect(!!(tryResult840.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::Exists)"
, tryResult840.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1093, mozilla::dom::quota::Severity::Error); return tryResult840
.propagateErr(); } const bool& exists = tryResult840.inspect
();
;
1094
1095 QM_TRY(OkIf(exists), Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR),{auto tryResult841 = (OkIf(exists)); static_assert(std::is_empty_v
<typename decltype(tryResult841)::ok_type>); if ((__builtin_expect
(!!(tryResult841.isErr()), 0))) { auto tryTempError = tryResult841
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(exists)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1096, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1096, "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)); }}
1096 IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult841 = (OkIf(exists)); static_assert(std::is_empty_v
<typename decltype(tryResult841)::ok_type>); if ((__builtin_expect
(!!(tryResult841.isErr()), 0))) { auto tryTempError = tryResult841
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(exists)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1096, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1096, "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)); }}
;
1097
1098 QM_TRY_INSPECT(auto tryResult842 = (GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId
, aMaybeKey)); if ((__builtin_expect(!!(tryResult842.isErr())
, 0))) { mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId, aMaybeKey)"
, tryResult842.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1100, mozilla::dom::quota::Severity::Error); return tryResult842
.propagateErr(); } const auto& dbFileUrl = tryResult842.inspect
();
1099 const auto& dbFileUrl,auto tryResult842 = (GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId
, aMaybeKey)); if ((__builtin_expect(!!(tryResult842.isErr())
, 0))) { mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId, aMaybeKey)"
, tryResult842.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1100, mozilla::dom::quota::Severity::Error); return tryResult842
.propagateErr(); } const auto& dbFileUrl = tryResult842.inspect
();
1100 GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId, aMaybeKey))auto tryResult842 = (GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId
, aMaybeKey)); if ((__builtin_expect(!!(tryResult842.isErr())
, 0))) { mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId, aMaybeKey)"
, tryResult842.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1100, mozilla::dom::quota::Severity::Error); return tryResult842
.propagateErr(); } const auto& dbFileUrl = tryResult842.inspect
();
;
1101
1102 QM_TRY_INSPECT(const auto& storageService,auto tryResult843 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/storage" "/service;1")); if ((__builtin_expect
(!!(tryResult843.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\")"
, tryResult843.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1105, mozilla::dom::quota::Severity::Error); return tryResult843
.propagateErr(); } const auto& storageService = tryResult843
.inspect();
1103 MOZ_TO_RESULT_GET_TYPED(nsCOMPtr<mozIStorageService>,auto tryResult843 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/storage" "/service;1")); if ((__builtin_expect
(!!(tryResult843.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\")"
, tryResult843.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1105, mozilla::dom::quota::Severity::Error); return tryResult843
.propagateErr(); } const auto& storageService = tryResult843
.inspect();
1104 MOZ_SELECT_OVERLOAD(do_GetService),auto tryResult843 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/storage" "/service;1")); if ((__builtin_expect
(!!(tryResult843.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\")"
, tryResult843.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1105, mozilla::dom::quota::Severity::Error); return tryResult843
.propagateErr(); } const auto& storageService = tryResult843
.inspect();
1105 MOZ_STORAGE_SERVICE_CONTRACTID))auto tryResult843 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService
> >([](auto&&... aArgs) -> decltype(auto) { return
do_GetService(std::forward<decltype(aArgs)>(aArgs)...)
; }, "@mozilla.org/storage" "/service;1")); if ((__builtin_expect
(!!(tryResult843.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\")"
, tryResult843.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1105, mozilla::dom::quota::Severity::Error); return tryResult843
.propagateErr(); } const auto& storageService = tryResult843
.inspect();
;
1106
1107 QM_TRY_UNWRAP(auto tryResult844 = (OpenDatabaseAndHandleBusy(*storageService
, *dbFileUrl, aTelemetryId)); if ((__builtin_expect(!!(tryResult844
.isErr()), 0))) { mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId)"
, tryResult844.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1109, mozilla::dom::quota::Severity::Error); return tryResult844
.propagateErr(); } nsCOMPtr<mozIStorageConnection> connection
= tryResult844.unwrap();
1108 nsCOMPtr<mozIStorageConnection> connection,auto tryResult844 = (OpenDatabaseAndHandleBusy(*storageService
, *dbFileUrl, aTelemetryId)); if ((__builtin_expect(!!(tryResult844
.isErr()), 0))) { mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId)"
, tryResult844.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1109, mozilla::dom::quota::Severity::Error); return tryResult844
.propagateErr(); } nsCOMPtr<mozIStorageConnection> connection
= tryResult844.unwrap();
1109 OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId))auto tryResult844 = (OpenDatabaseAndHandleBusy(*storageService
, *dbFileUrl, aTelemetryId)); if ((__builtin_expect(!!(tryResult844
.isErr()), 0))) { mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId)"
, tryResult844.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1109, mozilla::dom::quota::Severity::Error); return tryResult844
.propagateErr(); } nsCOMPtr<mozIStorageConnection> connection
= tryResult844.unwrap();
;
1110
1111 QM_TRY(MOZ_TO_RESULT(SetDefaultPragmas(*connection))){auto tryResult845 = (ToResult(SetDefaultPragmas(*connection)
)); static_assert(std::is_empty_v<typename decltype(tryResult845
)::ok_type>); if ((__builtin_expect(!!(tryResult845.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(SetDefaultPragmas(*connection))"
, tryResult845.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1111, mozilla::dom::quota::Severity::Error); return tryResult845
.propagateErr(); }}
;
1112
1113 QM_TRY(MOZ_TO_RESULT(SetJournalMode(*connection))){auto tryResult846 = (ToResult(SetJournalMode(*connection)));
static_assert(std::is_empty_v<typename decltype(tryResult846
)::ok_type>); if ((__builtin_expect(!!(tryResult846.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(SetJournalMode(*connection))"
, tryResult846.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1113, mozilla::dom::quota::Severity::Error); return tryResult846
.propagateErr(); }}
;
1114
1115 return WrapMovingNotNullUnchecked(std::move(connection));
1116}
1117
1118Result<MovingNotNull<nsCOMPtr<mozIStorageConnection>>, nsresult>
1119GetStorageConnection(const nsAString& aDatabaseFilePath,
1120 const int64_t aDirectoryLockId,
1121 const uint32_t aTelemetryId,
1122 const Maybe<CipherKey>& aMaybeKey) {
1123 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"
, 1123); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { *((volatile int*)__null) = 1123; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1124 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"
, 1124); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 1124; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1125 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"
, 1125); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseFilePath.IsEmpty()"
")"); do { *((volatile int*)__null) = 1125; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1126 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"
, 1126); AnnotateMozCrashReason("MOZ_ASSERT" "(" "StringEndsWith(aDatabaseFilePath, kSQLiteSuffix)"
")"); do { *((volatile int*)__null) = 1126; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1127 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"
, 1127); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectoryLockId >= 0"
")"); do { *((volatile int*)__null) = 1127; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1128
1129 nsCOMPtr<nsIFile> dbFile = GetFileForPath(aDatabaseFilePath);
1130
1131 QM_TRY(OkIf(dbFile), Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR),{auto tryResult847 = (OkIf(dbFile)); static_assert(std::is_empty_v
<typename decltype(tryResult847)::ok_type>); if ((__builtin_expect
(!!(tryResult847.isErr()), 0))) { auto tryTempError = tryResult847
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(dbFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1132, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1132, "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)); }}
1132 IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult847 = (OkIf(dbFile)); static_assert(std::is_empty_v
<typename decltype(tryResult847)::ok_type>); if ((__builtin_expect
(!!(tryResult847.isErr()), 0))) { auto tryTempError = tryResult847
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(dbFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1132, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 1132, "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)); }}
;
1133
1134 return GetStorageConnection(*dbFile, aDirectoryLockId, aTelemetryId,
1135 aMaybeKey);
1136}
1137
1138/*******************************************************************************
1139 * ConnectionPool declarations
1140 ******************************************************************************/
1141
1142class DatabaseConnection final : public CachingDatabaseConnection {
1143 friend class ConnectionPool;
1144
1145 enum class CheckpointMode { Full, Restart, Truncate };
1146
1147 public:
1148 class AutoSavepoint;
1149 class UpdateRefcountFunction;
1150
1151 private:
1152 InitializedOnce<const NotNull<SafeRefPtr<DatabaseFileManager>>> mFileManager;
1153 RefPtr<UpdateRefcountFunction> mUpdateRefcountFunction;
1154 RefPtr<QuotaObject> mQuotaObject;
1155 RefPtr<QuotaObject> mJournalQuotaObject;
1156 IDBTransaction::Durability mLastDurability;
1157 bool mInReadTransaction;
1158 bool mInWriteTransaction;
1159
1160#ifdef DEBUG1
1161 uint32_t mDEBUGSavepointCount;
1162#endif
1163
1164 public:
1165 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"
, 1165); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { *((volatile int*)__null) =
1165; __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"
, 1165); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { *((volatile int*)__null) = 1165
; __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:
1166
1167 UpdateRefcountFunction* GetUpdateRefcountFunction() const {
1168 AssertIsOnConnectionThread();
1169
1170 return mUpdateRefcountFunction;
1171 }
1172
1173 nsresult BeginWriteTransaction(const IDBTransaction::Durability aDurability);
1174
1175 nsresult CommitWriteTransaction();
1176
1177 void RollbackWriteTransaction();
1178
1179 void FinishWriteTransaction();
1180
1181 nsresult StartSavepoint();
1182
1183 nsresult ReleaseSavepoint();
1184
1185 nsresult RollbackSavepoint();
1186
1187 nsresult Checkpoint() {
1188 AssertIsOnConnectionThread();
1189
1190 return CheckpointInternal(CheckpointMode::Full);
1191 }
1192
1193 void DoIdleProcessing(bool aNeedsCheckpoint,
1194 const Atomic<bool>& aInterrupted);
1195
1196 void Close();
1197
1198 nsresult DisableQuotaChecks();
1199
1200 void EnableQuotaChecks();
1201
1202 private:
1203 DatabaseConnection(
1204 MovingNotNull<nsCOMPtr<mozIStorageConnection>> aStorageConnection,
1205 MovingNotNull<SafeRefPtr<DatabaseFileManager>> aFileManager);
1206
1207 ~DatabaseConnection();
1208
1209 nsresult Init();
1210
1211 nsresult CheckpointInternal(CheckpointMode aMode);
1212
1213 Result<uint32_t, nsresult> GetFreelistCount(
1214 CachedStatement& aCachedStatement);
1215
1216 /**
1217 * On success, returns whether some pages were freed.
1218 */
1219 Result<bool, nsresult> ReclaimFreePagesWhileIdle(
1220 CachedStatement& aFreelistStatement, CachedStatement& aRollbackStatement,
1221 uint32_t aFreelistCount, bool aNeedsCheckpoint,
1222 const Atomic<bool>& aInterrupted);
1223
1224 Result<int64_t, nsresult> GetFileSize(const nsAString& aPath);
1225};
1226
1227class MOZ_STACK_CLASS DatabaseConnection::AutoSavepoint final {
1228 DatabaseConnection* mConnection;
1229#ifdef DEBUG1
1230 const TransactionBase* mDEBUGTransaction;
1231#endif
1232
1233 public:
1234 AutoSavepoint();
1235 ~AutoSavepoint();
1236
1237 nsresult Start(const TransactionBase& aTransaction);
1238
1239 nsresult Commit();
1240};
1241
1242class DatabaseConnection::UpdateRefcountFunction final
1243 : public mozIStorageFunction {
1244 class FileInfoEntry;
1245
1246 enum class UpdateType { Increment, Decrement };
1247
1248 DatabaseConnection* const mConnection;
1249 DatabaseFileManager& mFileManager;
1250 nsClassHashtable<nsUint64HashKey, FileInfoEntry> mFileInfoEntries;
1251 nsTHashMap<nsUint64HashKey, NotNull<FileInfoEntry*>> mSavepointEntriesIndex;
1252
1253 nsTArray<int64_t> mJournalsToCreateBeforeCommit;
1254 nsTArray<int64_t> mJournalsToRemoveAfterCommit;
1255 nsTArray<int64_t> mJournalsToRemoveAfterAbort;
1256
1257 bool mInSavepoint;
1258
1259 public:
1260 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:
1261 NS_DECL_MOZISTORAGEFUNCTIONvirtual nsresult OnFunctionCall(mozIStorageValueArray *aFunctionArguments
, nsIVariant **_retval) override;
1262
1263 UpdateRefcountFunction(DatabaseConnection* aConnection,
1264 DatabaseFileManager& aFileManager);
1265
1266 nsresult WillCommit();
1267
1268 void DidCommit();
1269
1270 void DidAbort();
1271
1272 void StartSavepoint();
1273
1274 void ReleaseSavepoint();
1275
1276 void RollbackSavepoint();
1277
1278 void Reset();
1279
1280 private:
1281 ~UpdateRefcountFunction() = default;
1282
1283 nsresult ProcessValue(mozIStorageValueArray* aValues, int32_t aIndex,
1284 UpdateType aUpdateType);
1285
1286 nsresult CreateJournals();
1287
1288 nsresult RemoveJournals(const nsTArray<int64_t>& aJournals);
1289};
1290
1291class DatabaseConnection::UpdateRefcountFunction::FileInfoEntry final {
1292 SafeRefPtr<DatabaseFileInfo> mFileInfo;
1293 int32_t mDelta;
1294 int32_t mSavepointDelta;
1295
1296 public:
1297 explicit FileInfoEntry(SafeRefPtr<DatabaseFileInfo> aFileInfo)
1298 : mFileInfo(std::move(aFileInfo)), mDelta(0), mSavepointDelta(0) {
1299 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)
;
1300 }
1301
1302 void IncDeltas(bool aUpdateSavepointDelta) {
1303 ++mDelta;
1304 if (aUpdateSavepointDelta) {
1305 ++mSavepointDelta;
1306 }
1307 }
1308 void DecDeltas(bool aUpdateSavepointDelta) {
1309 --mDelta;
1310 if (aUpdateSavepointDelta) {
1311 --mSavepointDelta;
1312 }
1313 }
1314 void DecBySavepointDelta() { mDelta -= mSavepointDelta; }
1315 SafeRefPtr<DatabaseFileInfo> ReleaseFileInfo() {
1316 return std::move(mFileInfo);
1317 }
1318 void MaybeUpdateDBRefs() {
1319 if (mDelta) {
1320 mFileInfo->UpdateDBRefs(mDelta);
1321 }
1322 }
1323
1324 int32_t Delta() const { return mDelta; }
1325 int32_t SavepointDelta() const { return mSavepointDelta; }
1326
1327 ~FileInfoEntry() {
1328 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)
;
1329 }
1330};
1331
1332class ConnectionPool final {
1333 public:
1334 class FinishCallback;
1335
1336 private:
1337 class ConnectionRunnable;
1338 class CloseConnectionRunnable;
1339 struct DatabaseInfo;
1340 struct DatabaseCompleteCallback;
1341 class FinishCallbackWrapper;
1342 class IdleConnectionRunnable;
1343
1344#ifdef DEBUG1
1345 class TransactionRunnable;
1346#endif
1347 class TransactionInfo;
1348 struct TransactionInfoPair;
1349
1350 struct IdleResource {
1351 TimeStamp mIdleTime;
1352
1353 IdleResource(const IdleResource& aOther) = delete;
1354 IdleResource(IdleResource&& aOther) noexcept
1355 : IdleResource(aOther.mIdleTime) {}
1356 IdleResource& operator=(const IdleResource& aOther) = delete;
1357 IdleResource& operator=(IdleResource&& aOther) = delete;
1358
1359 protected:
1360 explicit IdleResource(const TimeStamp& aIdleTime);
1361
1362 ~IdleResource();
1363 };
1364
1365 struct IdleDatabaseInfo final : public IdleResource {
1366 InitializedOnce<const NotNull<DatabaseInfo*>> mDatabaseInfo;
1367
1368 public:
1369 explicit IdleDatabaseInfo(DatabaseInfo& aDatabaseInfo);
1370
1371 IdleDatabaseInfo(const IdleDatabaseInfo& aOther) = delete;
1372 IdleDatabaseInfo(IdleDatabaseInfo&& aOther) noexcept
1373 : IdleResource(std::move(aOther)),
1374 mDatabaseInfo{std::move(aOther.mDatabaseInfo)} {
1375 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"
, 1375); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseInfo"
")"); do { *((volatile int*)__null) = 1375; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1376
1377 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)
;
1378 }
1379 IdleDatabaseInfo& operator=(const IdleDatabaseInfo& aOther) = delete;
1380 IdleDatabaseInfo& operator=(IdleDatabaseInfo&& aOther) = delete;
1381
1382 ~IdleDatabaseInfo();
1383
1384 bool operator==(const IdleDatabaseInfo& aOther) const {
1385 return *mDatabaseInfo == *aOther.mDatabaseInfo;
1386 }
1387
1388 bool operator==(const DatabaseInfo* aDatabaseInfo) const {
1389 return *mDatabaseInfo == aDatabaseInfo;
1390 }
1391
1392 bool operator<(const IdleDatabaseInfo& aOther) const {
1393 return mIdleTime < aOther.mIdleTime;
1394 }
1395 };
1396
1397 struct PerformingIdleMaintenanceDatabaseInfo {
1398 const NotNull<DatabaseInfo*> mDatabaseInfo;
1399 RefPtr<IdleConnectionRunnable> mIdleConnectionRunnable;
1400
1401 PerformingIdleMaintenanceDatabaseInfo(
1402 DatabaseInfo& aDatabaseInfo,
1403 RefPtr<IdleConnectionRunnable> aIdleConnectionRunnable);
1404
1405 PerformingIdleMaintenanceDatabaseInfo(
1406 const PerformingIdleMaintenanceDatabaseInfo& aOther) = delete;
1407 PerformingIdleMaintenanceDatabaseInfo(
1408 PerformingIdleMaintenanceDatabaseInfo&& aOther) noexcept
1409 : mDatabaseInfo{aOther.mDatabaseInfo},
1410 mIdleConnectionRunnable{std::move(aOther.mIdleConnectionRunnable)} {
1411 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)
;
1412 }
1413 PerformingIdleMaintenanceDatabaseInfo& operator=(
1414 const PerformingIdleMaintenanceDatabaseInfo& aOther) = delete;
1415 PerformingIdleMaintenanceDatabaseInfo& operator=(
1416 PerformingIdleMaintenanceDatabaseInfo&& aOther) = delete;
1417
1418 ~PerformingIdleMaintenanceDatabaseInfo();
1419
1420 bool operator==(const DatabaseInfo* aDatabaseInfo) const {
1421 return mDatabaseInfo == aDatabaseInfo;
1422 }
1423 };
1424
1425 // This mutex guards mDatabases, see below.
1426 Mutex mDatabasesMutex MOZ_UNANNOTATED;
1427
1428 nsCOMPtr<nsIThreadPool> mIOTarget;
1429 nsTArray<IdleDatabaseInfo> mIdleDatabases;
1430 nsTArray<PerformingIdleMaintenanceDatabaseInfo>
1431 mDatabasesPerformingIdleMaintenance;
1432 nsCOMPtr<nsITimer> mIdleTimer;
1433 TimeStamp mTargetIdleTime;
1434
1435 // Only modifed on the owning thread, but read on multiple threads. Therefore
1436 // all modifications and all reads off the owning thread must be protected by
1437 // mDatabasesMutex.
1438 nsClassHashtable<nsCStringHashKey, DatabaseInfo> mDatabases;
1439
1440 nsClassHashtable<nsUint64HashKey, TransactionInfo> mTransactions;
1441 nsTArray<NotNull<TransactionInfo*>> mQueuedTransactions;
1442
1443 nsTArray<UniquePtr<DatabaseCompleteCallback>> mCompleteCallbacks;
1444
1445 uint64_t mNextTransactionId;
1446 FlippedOnce<false> mShutdownRequested;
1447 FlippedOnce<false> mShutdownComplete;
1448
1449 public:
1450 ConnectionPool();
1451
1452 void AssertIsOnOwningThread() const {
1453 NS_ASSERT_OWNINGTHREAD(ConnectionPool)_mOwningThread.AssertOwnership("ConnectionPool" " not thread-safe"
)
;
1454 }
1455
1456 Result<RefPtr<DatabaseConnection>, nsresult> GetOrCreateConnection(
1457 const Database& aDatabase);
1458
1459 uint64_t Start(const nsID& aBackgroundChildLoggingId,
1460 const nsACString& aDatabaseId, int64_t aLoggingSerialNumber,
1461 const nsTArray<nsString>& aObjectStoreNames,
1462 bool aIsWriteTransaction,
1463 TransactionDatabaseOperationBase* aTransactionOp);
1464
1465 void Dispatch(uint64_t aTransactionId, nsIRunnable* aRunnable);
1466
1467 void Finish(uint64_t aTransactionId, FinishCallback* aCallback);
1468
1469 void CloseDatabaseWhenIdle(const nsACString& aDatabaseId) {
1470 Unused << CloseDatabaseWhenIdleInternal(aDatabaseId);
1471 }
1472
1473 void WaitForDatabaseToComplete(const nsCString& aDatabaseId,
1474 nsIRunnable* aCallback);
1475
1476 void Shutdown();
1477
1478 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"
, 1478); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { *((volatile int*)__null) =
1478; __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"
, 1478); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { *((volatile int*)__null) = 1478
; __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:
1479
1480 private:
1481 ~ConnectionPool();
1482
1483 static void IdleTimerCallback(nsITimer* aTimer, void* aClosure);
1484
1485 static uint32_t SerialNumber() { return ++sSerialNumber; }
1486
1487 static uint32_t sSerialNumber;
1488
1489 void Cleanup();
1490
1491 void AdjustIdleTimer();
1492
1493 void CancelIdleTimer();
1494
1495 void CloseIdleDatabases();
1496
1497 bool ScheduleTransaction(TransactionInfo& aTransactionInfo,
1498 bool aFromQueuedTransactions);
1499
1500 void NoteFinishedTransaction(uint64_t aTransactionId);
1501
1502 void ScheduleQueuedTransactions();
1503
1504 void NoteIdleDatabase(DatabaseInfo& aDatabaseInfo);
1505
1506 void NoteClosedDatabase(DatabaseInfo& aDatabaseInfo);
1507
1508 bool MaybeFireCallback(DatabaseCompleteCallback* aCallback);
1509
1510 void PerformIdleDatabaseMaintenance(DatabaseInfo& aDatabaseInfo);
1511
1512 void CloseDatabase(DatabaseInfo& aDatabaseInfo) const;
1513
1514 bool CloseDatabaseWhenIdleInternal(const nsACString& aDatabaseId);
1515};
1516
1517class ConnectionPool::ConnectionRunnable : public Runnable {
1518 protected:
1519 DatabaseInfo& mDatabaseInfo;
1520 nsCOMPtr<nsIEventTarget> mOwningEventTarget;
1521
1522 explicit ConnectionRunnable(DatabaseInfo& aDatabaseInfo);
1523
1524 ~ConnectionRunnable() override = default;
1525};
1526
1527class ConnectionPool::IdleConnectionRunnable final : public ConnectionRunnable {
1528 const bool mNeedsCheckpoint;
1529 Atomic<bool> mInterrupted;
1530
1531 public:
1532 IdleConnectionRunnable(DatabaseInfo& aDatabaseInfo, bool aNeedsCheckpoint)
1533 : ConnectionRunnable(aDatabaseInfo), mNeedsCheckpoint(aNeedsCheckpoint) {}
1534
1535 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; }
1536 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; }
1537
1538 void Interrupt() { mInterrupted = true; }
1539
1540 private:
1541 ~IdleConnectionRunnable() override = default;
1542
1543 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
1544};
1545
1546class ConnectionPool::CloseConnectionRunnable final
1547 : public ConnectionRunnable {
1548 public:
1549 explicit CloseConnectionRunnable(DatabaseInfo& aDatabaseInfo)
1550 : ConnectionRunnable(aDatabaseInfo) {}
1551
1552 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; }
1553 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; }
1554
1555 private:
1556 ~CloseConnectionRunnable() override = default;
1557
1558 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
1559};
1560
1561struct ConnectionPool::DatabaseInfo final {
1562 friend class mozilla::DefaultDelete<DatabaseInfo>;
1563
1564 RefPtr<ConnectionPool> mConnectionPool;
1565 const nsCString mDatabaseId;
1566 RefPtr<DatabaseConnection> mConnection;
1567 nsClassHashtable<nsStringHashKey, TransactionInfoPair> mBlockingTransactions;
1568 nsTArray<NotNull<TransactionInfo*>> mTransactionsScheduledDuringClose;
1569 nsTArray<NotNull<TransactionInfo*>> mScheduledWriteTransactions;
1570 Maybe<TransactionInfo&> mRunningWriteTransaction;
1571 RefPtr<TaskQueue> mEventTarget;
1572 uint32_t mReadTransactionCount;
1573 uint32_t mWriteTransactionCount;
1574 bool mNeedsCheckpoint;
1575 bool mIdle;
1576 FlippedOnce<false> mCloseOnIdle;
1577 bool mClosing;
1578
1579#ifdef DEBUG1
1580 nsISerialEventTarget* mDEBUGConnectionEventTarget;
1581#endif
1582
1583 DatabaseInfo(ConnectionPool* aConnectionPool, const nsACString& aDatabaseId);
1584
1585 void AssertIsOnConnectionThread() const {
1586 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"
, 1586); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGConnectionEventTarget"
")"); do { *((volatile int*)__null) = 1586; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1587 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"
, 1587); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCurrentSerialEventTarget() == mDEBUGConnectionEventTarget"
")"); do { *((volatile int*)__null) = 1587; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1588 }
1589
1590 uint64_t TotalTransactionCount() const {
1591 return mReadTransactionCount + mWriteTransactionCount;
1592 }
1593
1594 nsresult Dispatch(already_AddRefed<nsIRunnable> aRunnable);
1595
1596 private:
1597 ~DatabaseInfo();
1598
1599 DatabaseInfo(const DatabaseInfo&) = delete;
1600 DatabaseInfo& operator=(const DatabaseInfo&) = delete;
1601};
1602
1603struct ConnectionPool::DatabaseCompleteCallback final {
1604 friend class DefaultDelete<DatabaseCompleteCallback>;
1605
1606 nsCString mDatabaseId;
1607 nsCOMPtr<nsIRunnable> mCallback;
1608
1609 DatabaseCompleteCallback(const nsCString& aDatabaseIds,
1610 nsIRunnable* aCallback);
1611
1612 private:
1613 ~DatabaseCompleteCallback();
1614};
1615
1616class NS_NO_VTABLE ConnectionPool::FinishCallback : public nsIRunnable {
1617 public:
1618 // Called on the owning thread before any additional transactions are
1619 // unblocked.
1620 virtual void TransactionFinishedBeforeUnblock() = 0;
1621
1622 // Called on the owning thread after additional transactions may have been
1623 // unblocked.
1624 virtual void TransactionFinishedAfterUnblock() = 0;
1625
1626 protected:
1627 FinishCallback() = default;
1628
1629 virtual ~FinishCallback() = default;
1630};
1631
1632class ConnectionPool::FinishCallbackWrapper final : public Runnable {
1633 RefPtr<ConnectionPool> mConnectionPool;
1634 RefPtr<FinishCallback> mCallback;
1635 nsCOMPtr<nsIEventTarget> mOwningEventTarget;
1636 uint64_t mTransactionId;
1637 bool mHasRunOnce;
1638
1639 public:
1640 FinishCallbackWrapper(ConnectionPool* aConnectionPool,
1641 uint64_t aTransactionId, FinishCallback* aCallback);
1642
1643 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; }
1644
1645 private:
1646 ~FinishCallbackWrapper() override;
1647
1648 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
1649};
1650
1651#ifdef DEBUG1
1652
1653class ConnectionPool::TransactionRunnable final : public Runnable {
1654 public:
1655 explicit TransactionRunnable(nsCOMPtr<nsIRunnable> aRunnable);
1656
1657 private:
1658 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
1659
1660 nsCOMPtr<nsIRunnable> mRunnable;
1661};
1662
1663#endif
1664
1665class ConnectionPool::TransactionInfo final {
1666 friend class mozilla::DefaultDelete<TransactionInfo>;
1667
1668 nsTHashSet<TransactionInfo*> mBlocking;
1669 nsTArray<NotNull<TransactionInfo*>> mBlockingOrdered;
1670
1671 public:
1672 DatabaseInfo& mDatabaseInfo;
1673 const nsID mBackgroundChildLoggingId;
1674 const nsCString mDatabaseId;
1675 const uint64_t mTransactionId;
1676 const int64_t mLoggingSerialNumber;
1677 const nsTArray<nsString> mObjectStoreNames;
1678 nsTHashSet<TransactionInfo*> mBlockedOn;
1679 nsTArray<nsCOMPtr<nsIRunnable>> mQueuedRunnables;
1680 const bool mIsWriteTransaction;
1681 bool mRunning;
1682
1683#ifdef DEBUG1
1684 FlippedOnce<false> mFinished;
1685#endif
1686
1687 TransactionInfo(DatabaseInfo& aDatabaseInfo,
1688 const nsID& aBackgroundChildLoggingId,
1689 const nsACString& aDatabaseId, uint64_t aTransactionId,
1690 int64_t aLoggingSerialNumber,
1691 const nsTArray<nsString>& aObjectStoreNames,
1692 bool aIsWriteTransaction,
1693 TransactionDatabaseOperationBase* aTransactionOp);
1694
1695 void AddBlockingTransaction(TransactionInfo& aTransactionInfo);
1696
1697 void RemoveBlockingTransactions();
1698
1699 private:
1700 ~TransactionInfo();
1701
1702 void MaybeUnblock(TransactionInfo& aTransactionInfo);
1703};
1704
1705struct ConnectionPool::TransactionInfoPair final {
1706 // Multiple reading transactions can block future writes.
1707 nsTArray<NotNull<TransactionInfo*>> mLastBlockingWrites;
1708 // But only a single writing transaction can block future reads.
1709 Maybe<TransactionInfo&> mLastBlockingReads;
1710
1711#if defined(DEBUG1) || defined(NS_BUILD_REFCNT_LOGGING1)
1712 TransactionInfoPair();
1713 ~TransactionInfoPair();
1714#endif
1715};
1716
1717/*******************************************************************************
1718 * Actor class declarations
1719 ******************************************************************************/
1720
1721template <IDBCursorType CursorType>
1722class CommonOpenOpHelper;
1723template <IDBCursorType CursorType>
1724class IndexOpenOpHelper;
1725template <IDBCursorType CursorType>
1726class ObjectStoreOpenOpHelper;
1727template <IDBCursorType CursorType>
1728class OpenOpHelper;
1729
1730class DatabaseOperationBase : public Runnable,
1731 public mozIStorageProgressHandler {
1732 template <IDBCursorType CursorType>
1733 friend class OpenOpHelper;
1734
1735 protected:
1736 class AutoSetProgressHandler;
1737
1738 using UniqueIndexTable = nsTHashMap<nsUint64HashKey, bool>;
1739
1740 const nsCOMPtr<nsIEventTarget> mOwningEventTarget;
1741 const nsID mBackgroundChildLoggingId;
1742 const uint64_t mLoggingSerialNumber;
1743
1744 private:
1745 nsresult mResultCode = NS_OK;
1746 Atomic<bool> mOperationMayProceed;
1747 FlippedOnce<false> mActorDestroyed;
1748
1749 public:
1750 NS_DECL_ISUPPORTS_INHERITEDpublic: virtual nsresult QueryInterface(const nsIID& aIID
, void** aInstancePtr) override; virtual MozExternalRefCountType
AddRef(void) override; virtual MozExternalRefCountType Release
(void) override;
1751
1752 bool IsOnOwningThread() const {
1753 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"
, 1753); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOwningEventTarget"
")"); do { *((volatile int*)__null) = 1753; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1754
1755 bool current;
1756 return NS_SUCCEEDED(mOwningEventTarget->IsOnCurrentThread(&current))((bool)(__builtin_expect(!!(!NS_FAILED_impl(mOwningEventTarget
->IsOnCurrentThread(&current))), 1)))
&&
1757 current;
1758 }
1759
1760 void AssertIsOnOwningThread() const {
1761 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"
, 1761); AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 1761; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1762 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"
, 1762); AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsOnOwningThread()"
")"); do { *((volatile int*)__null) = 1762; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1763 }
1764
1765 void NoteActorDestroyed() {
1766 AssertIsOnOwningThread();
1767
1768 mActorDestroyed.EnsureFlipped();
1769 mOperationMayProceed = false;
1770 }
1771
1772 bool IsActorDestroyed() const {
1773 AssertIsOnOwningThread();
1774
1775 return mActorDestroyed;
1776 }
1777
1778 // May be called on any thread, but you should call IsActorDestroyed() if
1779 // you know you're on the background thread because it is slightly faster.
1780 bool OperationMayProceed() const { return mOperationMayProceed; }
1781
1782 const nsID& BackgroundChildLoggingId() const {
1783 return mBackgroundChildLoggingId;
1784 }
1785
1786 uint64_t LoggingSerialNumber() const { return mLoggingSerialNumber; }
1787
1788 nsresult ResultCode() const { return mResultCode; }
1789
1790 void SetFailureCode(nsresult aFailureCode) {
1791 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"
, 1791); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)))"
")"); do { *((volatile int*)__null) = 1791; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1792 OverrideFailureCode(aFailureCode);
1793 }
1794
1795 void SetFailureCodeIfUnset(nsresult aFailureCode) {
1796 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
1797 OverrideFailureCode(aFailureCode);
1798 }
1799 }
1800
1801 bool HasFailed() const { return NS_FAILED(mResultCode)((bool)(__builtin_expect(!!(NS_FAILED_impl(mResultCode)), 0))
)
; }
1802
1803 protected:
1804 DatabaseOperationBase(const nsID& aBackgroundChildLoggingId,
1805 uint64_t aLoggingSerialNumber)
1806 : Runnable("dom::indexedDB::DatabaseOperationBase"),
1807 mOwningEventTarget(GetCurrentSerialEventTarget()),
1808 mBackgroundChildLoggingId(aBackgroundChildLoggingId),
1809 mLoggingSerialNumber(aLoggingSerialNumber),
1810 mOperationMayProceed(true) {
1811 AssertIsOnOwningThread();
1812 }
1813
1814 ~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"
, 1814); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActorDestroyed"
")"); do { *((volatile int*)__null) = 1814; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
; }
1815
1816 void OverrideFailureCode(nsresult aFailureCode) {
1817 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"
, 1817); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aFailureCode)), 0)))"
")"); do { *((volatile int*)__null) = 1817; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
1818
1819 mResultCode = aFailureCode;
1820 }
1821
1822 static nsAutoCString MaybeGetBindingClauseForKeyRange(
1823 const Maybe<SerializedKeyRange>& aOptionalKeyRange,
1824 const nsACString& aKeyColumnName);
1825
1826 static nsAutoCString GetBindingClauseForKeyRange(
1827 const SerializedKeyRange& aKeyRange, const nsACString& aKeyColumnName);
1828
1829 static uint64_t ReinterpretDoubleAsUInt64(double aDouble);
1830
1831 static nsresult BindKeyRangeToStatement(const SerializedKeyRange& aKeyRange,
1832 mozIStorageStatement* aStatement);
1833
1834 static nsresult BindKeyRangeToStatement(const SerializedKeyRange& aKeyRange,
1835 mozIStorageStatement* aStatement,
1836 const nsCString& aLocale);
1837
1838 static Result<IndexDataValuesAutoArray, nsresult>
1839 IndexDataValuesFromUpdateInfos(const nsTArray<IndexUpdateInfo>& aUpdateInfos,
1840 const UniqueIndexTable& aUniqueIndexTable);
1841
1842 static nsresult InsertIndexTableRows(
1843 DatabaseConnection* aConnection, IndexOrObjectStoreId aObjectStoreId,
1844 const Key& aObjectStoreKey, const nsTArray<IndexDataValue>& aIndexValues);
1845
1846 static nsresult DeleteIndexDataTableRows(
1847 DatabaseConnection* aConnection, const Key& aObjectStoreKey,
1848 const nsTArray<IndexDataValue>& aIndexValues);
1849
1850 static nsresult DeleteObjectStoreDataTableRowsWithIndexes(
1851 DatabaseConnection* aConnection, IndexOrObjectStoreId aObjectStoreId,
1852 const Maybe<SerializedKeyRange>& aKeyRange);
1853
1854 static nsresult UpdateIndexValues(
1855 DatabaseConnection* aConnection, IndexOrObjectStoreId aObjectStoreId,
1856 const Key& aObjectStoreKey, const nsTArray<IndexDataValue>& aIndexValues);
1857
1858 static Result<bool, nsresult> ObjectStoreHasIndexes(
1859 DatabaseConnection& aConnection, IndexOrObjectStoreId aObjectStoreId);
1860
1861 private:
1862 template <typename KeyTransformation>
1863 static nsresult MaybeBindKeyToStatement(
1864 const Key& aKey, mozIStorageStatement* aStatement,
1865 const nsACString& aParameterName,
1866 const KeyTransformation& aKeyTransformation);
1867
1868 template <typename KeyTransformation>
1869 static nsresult BindTransformedKeyRangeToStatement(
1870 const SerializedKeyRange& aKeyRange, mozIStorageStatement* aStatement,
1871 const KeyTransformation& aKeyTransformation);
1872
1873 // Not to be overridden by subclasses.
1874 NS_DECL_MOZISTORAGEPROGRESSHANDLERvirtual nsresult OnProgress(mozIStorageConnection *aConnection
, bool *_retval) override;
1875};
1876
1877class MOZ_STACK_CLASS DatabaseOperationBase::AutoSetProgressHandler final {
1878 Maybe<mozIStorageConnection&> mConnection;
1879#ifdef DEBUG1
1880 DatabaseOperationBase* mDEBUGDatabaseOp;
1881#endif
1882
1883 public:
1884 AutoSetProgressHandler();
1885
1886 ~AutoSetProgressHandler();
1887
1888 nsresult Register(mozIStorageConnection& aConnection,
1889 DatabaseOperationBase* aDatabaseOp);
1890
1891 void Unregister();
1892};
1893
1894class TransactionDatabaseOperationBase : public DatabaseOperationBase {
1895 enum class InternalState {
1896 Initial,
1897 DatabaseWork,
1898 SendingPreprocess,
1899 WaitingForContinue,
1900 SendingResults,
1901 Completed
1902 };
1903
1904 InitializedOnce<const NotNull<SafeRefPtr<TransactionBase>>> mTransaction;
1905 // Unique request id within the context of the transaction, allocated by the
1906 // transaction in the content process starting from 0. Values less than 0 are
1907 // impossible and forbidden. Used to support the explicit commit() request.
1908 const int64_t mRequestId;
1909 InternalState mInternalState = InternalState::Initial;
1910 bool mWaitingForContinue = false;
1911 const bool mTransactionIsAborted;
1912
1913 protected:
1914 const int64_t mTransactionLoggingSerialNumber;
1915
1916#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED1
1917 protected:
1918 // A check only enables when the diagnostic assert turns on. It assumes the
1919 // mUpdateRefcountFunction is a nullptr because the previous
1920 // StartTransactionOp failed on the connection thread and the next write
1921 // operation (e.g. ObjectstoreAddOrPutRequestOp) doesn't have enough time to
1922 // catch up the failure information.
1923 bool mAssumingPreviousOperationFail = false;
1924#endif
1925
1926 public:
1927 void AssertIsOnConnectionThread() const
1928#ifdef DEBUG1
1929 ;
1930#else
1931 {
1932 }
1933#endif
1934
1935 uint64_t StartOnConnectionPool(const nsID& aBackgroundChildLoggingId,
1936 const nsACString& aDatabaseId,
1937 int64_t aLoggingSerialNumber,
1938 const nsTArray<nsString>& aObjectStoreNames,
1939 bool aIsWriteTransaction);
1940
1941 void DispatchToConnectionPool();
1942
1943 TransactionBase& Transaction() { return **mTransaction; }
1944
1945 const TransactionBase& Transaction() const { return **mTransaction; }
1946
1947 bool IsWaitingForContinue() const {
1948 AssertIsOnOwningThread();
1949
1950 return mWaitingForContinue;
1951 }
1952
1953 void NoteContinueReceived();
1954
1955 int64_t TransactionLoggingSerialNumber() const {
1956 return mTransactionLoggingSerialNumber;
1957 }
1958
1959 // May be overridden by subclasses if they need to perform work on the
1960 // background thread before being dispatched. Returning false will kill the
1961 // child actors and prevent dispatch.
1962 virtual bool Init(TransactionBase& aTransaction);
1963
1964 // This callback will be called on the background thread before releasing the
1965 // final reference to this request object. Subclasses may perform any
1966 // additional cleanup here but must always call the base class implementation.
1967 virtual void Cleanup();
1968
1969 protected:
1970 TransactionDatabaseOperationBase(SafeRefPtr<TransactionBase> aTransaction,
1971 int64_t aRequestId);
1972
1973 TransactionDatabaseOperationBase(SafeRefPtr<TransactionBase> aTransaction,
1974 const int64_t aRequestId,
1975 uint64_t aLoggingSerialNumber);
1976
1977 ~TransactionDatabaseOperationBase() override;
1978
1979 virtual void RunOnConnectionThread();
1980
1981 // Must be overridden in subclasses. Called on the target thread to allow the
1982 // subclass to perform necessary database or file operations. A successful
1983 // return value will trigger a SendSuccessResult callback on the background
1984 // thread while a failure value will trigger a SendFailureResult callback.
1985 virtual nsresult DoDatabaseWork(DatabaseConnection* aConnection) = 0;
1986
1987 // May be overriden in subclasses. Called on the background thread to decide
1988 // if the subclass needs to send any preprocess info to the child actor.
1989 virtual bool HasPreprocessInfo();
1990
1991 // May be overriden in subclasses. Called on the background thread to allow
1992 // the subclass to serialize its preprocess info and send it to the child
1993 // actor. A successful return value will trigger a wait for a
1994 // NoteContinueReceived callback on the background thread while a failure
1995 // value will trigger a SendFailureResult callback.
1996 virtual nsresult SendPreprocessInfo();
1997
1998 // Must be overridden in subclasses. Called on the background thread to allow
1999 // the subclass to serialize its results and send them to the child actor. A
2000 // failed return value will trigger a SendFailureResult callback.
2001 virtual nsresult SendSuccessResult() = 0;
2002
2003 // Must be overridden in subclasses. Called on the background thread to allow
2004 // the subclass to send its failure code. Returning false will cause the
2005 // transaction to be aborted with aResultCode. Returning true will not cause
2006 // the transaction to be aborted.
2007 virtual bool SendFailureResult(nsresult aResultCode) = 0;
2008
2009#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED1
2010 auto MakeAutoSavepointCleanupHandler(DatabaseConnection& aConnection) {
2011 return [this, &aConnection](const auto) {
2012 if (!aConnection.GetUpdateRefcountFunction()) {
2013 mAssumingPreviousOperationFail = true;
2014 }
2015 };
2016 }
2017#endif
2018
2019 private:
2020 void SendToConnectionPool();
2021
2022 void SendPreprocess();
2023
2024 void SendResults();
2025
2026 void SendPreprocessInfoOrResults(bool aSendPreprocessInfo);
2027
2028 // Not to be overridden by subclasses.
2029 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
2030};
2031
2032class Factory final : public PBackgroundIDBFactoryParent,
2033 public AtomicSafeRefCounted<Factory> {
2034 nsCString mSystemLocale;
2035 RefPtr<DatabaseLoggingInfo> mLoggingInfo;
2036
2037#ifdef DEBUG1
2038 bool mActorDestroyed;
2039#endif
2040
2041 // Reference counted.
2042 ~Factory() override;
2043
2044 public:
2045 [[nodiscard]] static SafeRefPtr<Factory> Create(
2046 const LoggingInfo& aLoggingInfo, const nsACString& aSystemLocale);
2047
2048 DatabaseLoggingInfo* GetLoggingInfo() const {
2049 AssertIsOnBackgroundThread();
2050 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"
, 2050); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingInfo"
")"); do { *((volatile int*)__null) = 2050; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2051
2052 return mLoggingInfo;
2053 }
2054
2055 const nsCString& GetSystemLocale() const { return mSystemLocale; }
2056
2057 MOZ_DECLARE_REFCOUNTED_TYPENAME(mozilla::dom::indexedDB::Factory)const char* typeName() const { return "mozilla::dom::indexedDB::Factory"
; } size_t typeSize() const { return sizeof(*this); }
2058 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; }
2059
2060 // Only constructed in Create().
2061 Factory(RefPtr<DatabaseLoggingInfo> aLoggingInfo,
2062 const nsACString& aSystemLocale);
2063
2064 // IPDL methods are only called by IPDL.
2065 void ActorDestroy(ActorDestroyReason aWhy) override;
2066
2067 mozilla::ipc::IPCResult RecvDeleteMe() override;
2068
2069 PBackgroundIDBFactoryRequestParent* AllocPBackgroundIDBFactoryRequestParent(
2070 const FactoryRequestParams& aParams) override;
2071
2072 mozilla::ipc::IPCResult RecvPBackgroundIDBFactoryRequestConstructor(
2073 PBackgroundIDBFactoryRequestParent* aActor,
2074 const FactoryRequestParams& aParams) override;
2075
2076 bool DeallocPBackgroundIDBFactoryRequestParent(
2077 PBackgroundIDBFactoryRequestParent* aActor) override;
2078
2079 mozilla::ipc::IPCResult RecvGetDatabases(
2080 const PersistenceType& aPersistenceType,
2081 const PrincipalInfo& aPrincipalInfo,
2082 GetDatabasesResolver&& aResolve) override;
2083
2084 private:
2085 Maybe<ContentParentId> GetContentParentId() const;
2086};
2087
2088class WaitForTransactionsHelper final : public Runnable {
2089 const nsCString mDatabaseId;
2090 nsCOMPtr<nsIRunnable> mCallback;
2091
2092 enum class State { Initial = 0, WaitingForTransactions, Complete } mState;
2093
2094 public:
2095 WaitForTransactionsHelper(const nsACString& aDatabaseId,
2096 nsIRunnable* aCallback)
2097 : Runnable("dom::indexedDB::WaitForTransactionsHelper"),
2098 mDatabaseId(aDatabaseId),
2099 mCallback(aCallback),
2100 mState(State::Initial) {
2101 AssertIsOnBackgroundThread();
2102 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"
, 2102); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseId.IsEmpty()"
")"); do { *((volatile int*)__null) = 2102; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2103 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"
, 2103); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback" ")"
); do { *((volatile int*)__null) = 2103; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2104 }
2105
2106 void WaitForTransactions();
2107
2108 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; }
2109
2110 private:
2111 ~WaitForTransactionsHelper() override {
2112 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"
, 2112); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCallback"
")"); do { *((volatile int*)__null) = 2112; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2113 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"
, 2113); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Complete"
")"); do { *((volatile int*)__null) = 2113; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2114 }
2115
2116 void MaybeWaitForTransactions();
2117
2118 void CallCallback();
2119
2120 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
2121};
2122
2123class Database final
2124 : public PBackgroundIDBDatabaseParent,
2125 public SupportsCheckedUnsafePtr<CheckIf<DiagnosticAssertEnabled>>,
2126 public AtomicSafeRefCounted<Database> {
2127 friend class VersionChangeTransaction;
2128
2129 class StartTransactionOp;
2130 class UnmapBlobCallback;
2131
2132 private:
2133 SafeRefPtr<Factory> mFactory;
2134 SafeRefPtr<FullDatabaseMetadata> mMetadata;
2135 SafeRefPtr<DatabaseFileManager> mFileManager;
2136 RefPtr<DirectoryLock> mDirectoryLock;
2137 nsTHashSet<TransactionBase*> mTransactions;
2138 nsTHashMap<nsIDHashKey, SafeRefPtr<DatabaseFileInfo>> mMappedBlobs;
2139 RefPtr<DatabaseConnection> mConnection;
2140 const PrincipalInfo mPrincipalInfo;
2141 const Maybe<ContentParentId> mOptionalContentParentId;
2142 // XXX Consider changing this to ClientMetadata.
2143 const quota::OriginMetadata mOriginMetadata;
2144 const nsCString mId;
2145 const nsString mFilePath;
2146 const Maybe<const CipherKey> mKey;
2147 int64_t mDirectoryLockId;
2148 const uint32_t mTelemetryId;
2149 const PersistenceType mPersistenceType;
2150 const bool mInPrivateBrowsing;
2151 FlippedOnce<false> mClosed;
2152 FlippedOnce<false> mInvalidated;
2153 FlippedOnce<false> mActorWasAlive;
2154 FlippedOnce<false> mActorDestroyed;
2155 nsCOMPtr<nsIEventTarget> mBackgroundThread;
2156#ifdef DEBUG1
2157 bool mAllBlobsUnmapped;
2158#endif
2159
2160 public:
2161 // Created by OpenDatabaseOp.
2162 Database(SafeRefPtr<Factory> aFactory, const PrincipalInfo& aPrincipalInfo,
2163 const Maybe<ContentParentId>& aOptionalContentParentId,
2164 const quota::OriginMetadata& aOriginMetadata, uint32_t aTelemetryId,
2165 SafeRefPtr<FullDatabaseMetadata> aMetadata,
2166 SafeRefPtr<DatabaseFileManager> aFileManager,
2167 RefPtr<DirectoryLock> aDirectoryLock, bool aInPrivateBrowsing,
2168 const Maybe<const CipherKey>& aMaybeKey);
2169
2170 void AssertIsOnConnectionThread() const {
2171#ifdef DEBUG1
2172 if (mConnection) {
2173 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"
, 2173); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { *((volatile int*)__null) = 2173; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2174 mConnection->AssertIsOnConnectionThread();
2175 } else {
2176 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"
, 2176); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { *((volatile int*)__null) = 2176; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2177 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"
, 2177); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 2177; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2178 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"
, 2178); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInvalidated"
")"); do { *((volatile int*)__null) = 2178; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2179 }
2180#endif
2181 }
2182
2183 NS_IMETHOD_(MozExternalRefCountType)virtual MozExternalRefCountType AddRef() override {
2184 return AtomicSafeRefCounted<Database>::AddRef();
2185 }
2186 NS_IMETHOD_(MozExternalRefCountType)virtual MozExternalRefCountType Release() override {
2187 return AtomicSafeRefCounted<Database>::Release();
2188 }
2189
2190 MOZ_DECLARE_REFCOUNTED_TYPENAME(mozilla::dom::indexedDB::Database)const char* typeName() const { return "mozilla::dom::indexedDB::Database"
; } size_t typeSize() const { return sizeof(*this); }
2191
2192 void Invalidate();
2193
2194 bool IsOwnedByProcess(ContentParentId aContentParentId) const {
2195 return mOptionalContentParentId &&
2196 mOptionalContentParentId.value() == aContentParentId;
2197 }
2198
2199 const quota::OriginMetadata& OriginMetadata() const {
2200 return mOriginMetadata;
2201 }
2202
2203 const nsCString& Id() const { return mId; }
2204
2205 Maybe<DirectoryLock&> MaybeDirectoryLockRef() const {
2206 AssertIsOnBackgroundThread();
2207
2208 return ToMaybeRef(mDirectoryLock.get());
2209 }
2210
2211 int64_t DirectoryLockId() const { return mDirectoryLockId; }
2212
2213 uint32_t TelemetryId() const { return mTelemetryId; }
2214
2215 PersistenceType Type() const { return mPersistenceType; }
2216
2217 const nsString& FilePath() const { return mFilePath; }
2218
2219 DatabaseFileManager& GetFileManager() const { return *mFileManager; }
2220
2221 MovingNotNull<SafeRefPtr<DatabaseFileManager>> GetFileManagerPtr() const {
2222 return WrapMovingNotNull(mFileManager.clonePtr());
2223 }
2224
2225 const FullDatabaseMetadata& Metadata() const {
2226 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"
, 2226); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata" ")"
); do { *((volatile int*)__null) = 2226; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2227 return *mMetadata;
2228 }
2229
2230 SafeRefPtr<FullDatabaseMetadata> MetadataPtr() const {
2231 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"
, 2231); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata" ")"
); do { *((volatile int*)__null) = 2231; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2232 return mMetadata.clonePtr();
2233 }
2234
2235 PBackgroundParent* GetBackgroundParent() const {
2236 AssertIsOnBackgroundThread();
2237 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"
, 2237); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()"
")"); do { *((volatile int*)__null) = 2237; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2238
2239 return Manager()->Manager();
2240 }
2241
2242 DatabaseLoggingInfo* GetLoggingInfo() const {
2243 AssertIsOnBackgroundThread();
2244 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"
, 2244); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFactory" ")"
); do { *((volatile int*)__null) = 2244; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2245
2246 return mFactory->GetLoggingInfo();
2247 }
2248
2249 bool RegisterTransaction(TransactionBase& aTransaction);
2250
2251 void UnregisterTransaction(TransactionBase& aTransaction);
2252
2253 void SetActorAlive();
2254
2255 void MapBlob(const IPCBlob& aIPCBlob, SafeRefPtr<DatabaseFileInfo> aFileInfo);
2256
2257 bool IsActorAlive() const {
2258 AssertIsOnBackgroundThread();
2259
2260 return mActorWasAlive && !mActorDestroyed;
2261 }
2262
2263 bool IsActorDestroyed() const {
2264 AssertIsOnBackgroundThread();
2265
2266 return mActorWasAlive && mActorDestroyed;
2267 }
2268
2269 bool IsClosed() const {
2270 AssertIsOnBackgroundThread();
2271
2272 return mClosed;
2273 }
2274
2275 bool IsInvalidated() const {
2276 AssertIsOnBackgroundThread();
2277
2278 return mInvalidated;
2279 }
2280
2281 nsresult EnsureConnection();
2282
2283 DatabaseConnection* GetConnection() const {
2284#ifdef DEBUG1
2285 if (mConnection) {
2286 mConnection->AssertIsOnConnectionThread();
2287 }
2288#endif
2289
2290 return mConnection;
2291 }
2292
2293 void Stringify(nsACString& aResult) const;
2294
2295 bool IsInPrivateBrowsing() const {
2296 AssertIsOnBackgroundThread();
2297 return mInPrivateBrowsing;
2298 }
2299
2300 const Maybe<const CipherKey>& MaybeKeyRef() const {
2301 // This can be called on any thread, as it is const.
2302 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"
, 2302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mKey.isSome() == mInPrivateBrowsing"
")"); do { *((volatile int*)__null) = 2302; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2303 return mKey;
2304 }
2305
2306 ~Database() override {
2307 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"
, 2307); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mClosed" ")"
); do { *((volatile int*)__null) = 2307; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2308 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"
, 2308); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActorDestroyed"
")"); do { *((volatile int*)__null) = 2308; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
2309
2310 NS_ProxyRelease("ReleaseIDBFactory", mBackgroundThread.get(),
2311 mFactory.forget());
2312 }
2313
2314 private:
2315 [[nodiscard]] SafeRefPtr<DatabaseFileInfo> GetBlob(const IPCBlob& aIPCBlob);
2316
2317 void UnmapBlob(const nsID& aID);
2318
2319 void UnmapAllBlobs();
2320
2321 bool CloseInternal();
2322
2323 void MaybeCloseConnection();
2324
2325 void ConnectionClosedCallback();
2326
2327 void CleanupMetadata();
2328
2329 // IPDL methods are only called by IPDL.
2330 void ActorDestroy(ActorDestroyReason aWhy) override;
2331
2332 PBackgroundIDBDatabaseFileParent* AllocPBackgroundIDBDatabaseFileParent(
2333 const IPCBlob& aIPCBlob) override;
2334
2335 bool DeallocPBackgroundIDBDatabaseFileParent(
2336 PBackgroundIDBDatabaseFileParent* aActor) override;
2337
2338 already_AddRefed<PBackgroundIDBTransactionParent>
2339 AllocPBackgroundIDBTransactionParent(
2340 const nsTArray<nsString>& aObjectStoreNames, const Mode& aMode,
2341 const Durability& aDurability) override;
2342
2343 mozilla::ipc::IPCResult RecvPBackgroundIDBTransactionConstructor(
2344 PBackgroundIDBTransactionParent* aActor,
2345 nsTArray<nsString>&& aObjectStoreNames, const Mode& aMode,
2346 const Durability& aDurability) override;
2347
2348 mozilla::ipc::IPCResult RecvDeleteMe() override;
2349
2350 mozilla::ipc::IPCResult RecvBlocked() override;
2351
2352 mozilla::ipc::IPCResult RecvClose() override;
2353
2354 template <typename T>
2355 static bool InvalidateAll(const nsTBaseHashSet<nsPtrHashKey<T>>& aTable);
2356};
2357
2358class Database::StartTransactionOp final
2359 : public TransactionDatabaseOperationBase {
2360 friend class Database;
2361
2362 private:
2363 explicit StartTransactionOp(SafeRefPtr<TransactionBase> aTransaction)
2364 : TransactionDatabaseOperationBase(std::move(aTransaction),
2365 /* aRequestId */ 0,
2366 /* aLoggingSerialNumber */ 0) {}
2367
2368 ~StartTransactionOp() override = default;
2369
2370 void RunOnConnectionThread() override;
2371
2372 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
2373
2374 nsresult SendSuccessResult() override;
2375
2376 bool SendFailureResult(nsresult aResultCode) override;
2377
2378 void Cleanup() override;
2379};
2380
2381class Database::UnmapBlobCallback final
2382 : public RemoteLazyInputStreamParentCallback {
2383 SafeRefPtr<Database> mDatabase;
2384 nsCOMPtr<nsISerialEventTarget> mBackgroundThread;
2385
2386 public:
2387 explicit UnmapBlobCallback(SafeRefPtr<Database> aDatabase)
2388 : mDatabase(std::move(aDatabase)),
2389 mBackgroundThread(GetCurrentSerialEventTarget()) {
2390 AssertIsOnBackgroundThread();
2391 }
2392
2393 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"
, 2393); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { *((volatile int*)__null) =
2393; __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"
, 2393); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { *((volatile int*)__null) = 2393
; __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:
2394
2395 void ActorDestroyed(const nsID& aID) override {
2396 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"
, 2396); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"
); do { *((volatile int*)__null) = 2396; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2397 mBackgroundThread->Dispatch(NS_NewRunnableFunction(
2398 "UnmapBlobCallback", [aID, database = std::move(mDatabase)] {
2399 AssertIsOnBackgroundThread();
2400 database->UnmapBlob(aID);
2401 }));
2402 }
2403
2404 private:
2405 ~UnmapBlobCallback() = default;
2406};
2407
2408/**
2409 * In coordination with IDBDatabase's mFileActors weak-map on the child side, a
2410 * long-lived mapping from a child process's live Blobs to their corresponding
2411 * DatabaseFileInfo in our owning database. Assists in avoiding redundant IPC
2412 * traffic and disk storage. This includes both:
2413 * - Blobs retrieved from this database and sent to the child that do not need
2414 * to be written to disk because they already exist on disk in this database's
2415 * files directory.
2416 * - Blobs retrieved from other databases or from anywhere else that will need
2417 * to be written to this database's files directory. In this case we will
2418 * hold a reference to its BlobImpl in mBlobImpl until we have successfully
2419 * written the Blob to disk.
2420 *
2421 * Relevant Blob context: Blobs sent from the parent process to child processes
2422 * are automatically linked back to their source BlobImpl when the child process
2423 * references the Blob via IPC. This is done using the internal IPCBlob
2424 * inputStream actor ID to DatabaseFileInfo mapping. However, when getting an
2425 * actor in the child process for sending an in-child-created Blob to the
2426 * parent process, there is (currently) no Blob machinery to automatically
2427 * establish and reuse a long-lived Actor. As a result, without IDB's weak-map
2428 * cleverness, a memory-backed Blob repeatedly sent from the child to the parent
2429 * would appear as a different Blob each time, requiring the Blob data to be
2430 * sent over IPC each time as well as potentially needing to be written to disk
2431 * each time.
2432 *
2433 * This object remains alive as long as there is an active child actor or an
2434 * ObjectStoreAddOrPutRequestOp::StoredFileInfo for a queued or active add/put
2435 * op is holding a reference to us.
2436 */
2437class DatabaseFile final : public PBackgroundIDBDatabaseFileParent {
2438 // mBlobImpl's ownership lifecycle:
2439 // - Initialized on the background thread at creation time. Then
2440 // responsibility is handed off to the connection thread.
2441 // - Checked and used by the connection thread to generate a stream to write
2442 // the blob to disk by an add/put operation.
2443 // - Cleared on the connection thread once the file has successfully been
2444 // written to disk.
2445 InitializedOnce<const RefPtr<BlobImpl>> mBlobImpl;
2446 const SafeRefPtr<DatabaseFileInfo> mFileInfo;
2447
2448 public:
2449 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"
, 2449); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { *((volatile int*)__null) =
2449; __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"
, 2449); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { *((volatile int*)__null) = 2449
; __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:
;
2450
2451 const DatabaseFileInfo& GetFileInfo() const {
2452 AssertIsOnBackgroundThread();
2453
2454 return *mFileInfo;
2455 }
2456
2457 SafeRefPtr<DatabaseFileInfo> GetFileInfoPtr() const {
2458 AssertIsOnBackgroundThread();
2459
2460 return mFileInfo.clonePtr();
2461 }
2462
2463 /**
2464 * If mBlobImpl is non-null (implying the contents of this file have not yet
2465 * been written to disk), then return an input stream. Otherwise, if mBlobImpl
2466 * is null (because the contents have been written to disk), returns null.
2467 */
2468 [[nodiscard]] nsCOMPtr<nsIInputStream> GetInputStream(ErrorResult& rv) const;
2469
2470 /**
2471 * To be called upon successful copying of the stream GetInputStream()
2472 * returned so that we won't try and redundantly write the file to disk in the
2473 * future. This is a separate step from GetInputStream() because
2474 * the write could fail due to quota errors that happen now but that might
2475 * not happen in a future attempt.
2476 */
2477 void WriteSucceededClearBlobImpl() {
2478 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"
, 2478); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 2478; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2479
2480 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"
, 2480); AnnotateMozCrashReason("MOZ_ASSERT" "(" "*mBlobImpl"
")"); do { *((volatile int*)__null) = 2480; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2481 mBlobImpl.destroy();
2482 }
2483
2484 public:
2485 // Called when sending to the child.
2486 explicit DatabaseFile(SafeRefPtr<DatabaseFileInfo> aFileInfo)
2487 : mBlobImpl{nullptr}, mFileInfo(std::move(aFileInfo)) {
2488 AssertIsOnBackgroundThread();
2489 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"
, 2489); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileInfo" ")"
); do { *((volatile int*)__null) = 2489; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2490 }
2491
2492 // Called when receiving from the child.
2493 DatabaseFile(RefPtr<BlobImpl> aBlobImpl,
2494 SafeRefPtr<DatabaseFileInfo> aFileInfo)
2495 : mBlobImpl(std::move(aBlobImpl)), mFileInfo(std::move(aFileInfo)) {
2496 AssertIsOnBackgroundThread();
2497 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"
, 2497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "*mBlobImpl"
")"); do { *((volatile int*)__null) = 2497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2498 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"
, 2498); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileInfo" ")"
); do { *((volatile int*)__null) = 2498; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2499 }
2500
2501 private:
2502 ~DatabaseFile() override = default;
2503
2504 void ActorDestroy(ActorDestroyReason aWhy) override {
2505 AssertIsOnBackgroundThread();
2506 }
2507};
2508
2509nsCOMPtr<nsIInputStream> DatabaseFile::GetInputStream(ErrorResult& rv) const {
2510 // We should only be called from our DB connection thread, not the background
2511 // thread.
2512 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"
, 2512); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 2512; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2513
2514 // If we were constructed without a BlobImpl, or WriteSucceededClearBlobImpl
2515 // was already called, return nullptr.
2516 if (!mBlobImpl || !*mBlobImpl) {
2517 return nullptr;
2518 }
2519
2520 nsCOMPtr<nsIInputStream> inputStream;
2521 (*mBlobImpl)->CreateInputStream(getter_AddRefs(inputStream), rv);
2522 if (rv.Failed()) {
2523 return nullptr;
2524 }
2525
2526 return inputStream;
2527}
2528
2529class TransactionBase : public AtomicSafeRefCounted<TransactionBase> {
2530 friend class CursorBase;
2531
2532 template <IDBCursorType CursorType>
2533 friend class Cursor;
2534
2535 class CommitOp;
2536
2537 protected:
2538 using Mode = IDBTransaction::Mode;
2539 using Durability = IDBTransaction::Durability;
2540
2541 private:
2542 const SafeRefPtr<Database> mDatabase;
2543 nsTArray<SafeRefPtr<FullObjectStoreMetadata>>
2544 mModifiedAutoIncrementObjectStoreMetadataArray;
2545 LazyInitializedOnceNotNull<const uint64_t> mTransactionId;
2546 const nsCString mDatabaseId;
2547 const int64_t mLoggingSerialNumber;
2548 uint64_t mActiveRequestCount;
2549 Atomic<bool> mInvalidatedOnAnyThread;
2550 const Mode mMode;
2551 const Durability mDurability;
2552 FlippedOnce<false> mInitialized;
2553 FlippedOnce<false> mHasBeenActiveOnConnectionThread;
2554 FlippedOnce<false> mActorDestroyed;
2555 FlippedOnce<false> mInvalidated;
2556
2557 protected:
2558 nsresult mResultCode;
2559 FlippedOnce<false> mCommitOrAbortReceived;
2560 FlippedOnce<false> mCommittedOrAborted;
2561 FlippedOnce<false> mForceAborted;
2562 LazyInitializedOnce<const Maybe<int64_t>> mLastRequestBeforeCommit;
2563 Maybe<int64_t> mLastFailedRequest;
2564
2565 public:
2566 void AssertIsOnConnectionThread() const {
2567 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"
, 2567); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"
); do { *((volatile int*)__null) = 2567; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2568 mDatabase->AssertIsOnConnectionThread();
2569 }
2570
2571 bool IsActorDestroyed() const {
2572 AssertIsOnBackgroundThread();
2573
2574 return mActorDestroyed;
2575 }
2576
2577 // Must be called on the background thread.
2578 bool IsInvalidated() const {
2579 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"
, 2579); AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsOnBackgroundThread()"
") (" "Use IsInvalidatedOnAnyThread()" ")"); do { *((volatile
int*)__null) = 2579; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false)
;
2580 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"
, 2580); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(mResultCode)), 0)))"
")"); do { *((volatile int*)__null) = 2580; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
2581
2582 return mInvalidated;
2583 }
2584
2585 // May be called on any thread, but is more expensive than IsInvalidated().
2586 bool IsInvalidatedOnAnyThread() const { return mInvalidatedOnAnyThread; }
2587
2588 void Init(const uint64_t aTransactionId) {
2589 AssertIsOnBackgroundThread();
2590 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"
, 2590); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aTransactionId"
")"); do { *((volatile int*)__null) = 2590; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2591
2592 mTransactionId.init(aTransactionId);
2593 mInitialized.Flip();
2594 }
2595
2596 void SetActiveOnConnectionThread() {
2597 AssertIsOnConnectionThread();
2598 mHasBeenActiveOnConnectionThread.Flip();
2599 }
2600
2601 MOZ_DECLARE_REFCOUNTED_TYPENAME(mozilla::dom::indexedDB::TransactionBase)const char* typeName() const { return "mozilla::dom::indexedDB::TransactionBase"
; } size_t typeSize() const { return sizeof(*this); }
2602
2603 void Abort(nsresult aResultCode, bool aForce);
2604
2605 uint64_t TransactionId() const { return *mTransactionId; }
2606
2607 const nsACString& DatabaseId() const { return mDatabaseId; }
2608
2609 Mode GetMode() const { return mMode; }
2610
2611 Durability GetDurability() const { return mDurability; }
2612
2613 const Database& GetDatabase() const {
2614 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"
, 2614); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"
); do { *((volatile int*)__null) = 2614; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2615
2616 return *mDatabase;
2617 }
2618
2619 Database& GetMutableDatabase() const {
2620 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"
, 2620); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"
); do { *((volatile int*)__null) = 2620; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2621
2622 return *mDatabase;
2623 }
2624
2625 SafeRefPtr<Database> GetDatabasePtr() const {
2626 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"
, 2626); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"
); do { *((volatile int*)__null) = 2626; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2627
2628 return mDatabase.clonePtr();
2629 }
2630
2631 DatabaseLoggingInfo* GetLoggingInfo() const {
2632 AssertIsOnBackgroundThread();
2633 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"
, 2633); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"
); do { *((volatile int*)__null) = 2633; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2634
2635 return mDatabase->GetLoggingInfo();
2636 }
2637
2638 int64_t LoggingSerialNumber() const { return mLoggingSerialNumber; }
2639
2640 bool IsAborted() const {
2641 AssertIsOnBackgroundThread();
2642
2643 return NS_FAILED(mResultCode)((bool)(__builtin_expect(!!(NS_FAILED_impl(mResultCode)), 0))
)
;
2644 }
2645
2646 [[nodiscard]] SafeRefPtr<FullObjectStoreMetadata> GetMetadataForObjectStoreId(
2647 IndexOrObjectStoreId aObjectStoreId) const;
2648
2649 [[nodiscard]] SafeRefPtr<FullIndexMetadata> GetMetadataForIndexId(
2650 FullObjectStoreMetadata& aObjectStoreMetadata,
2651 IndexOrObjectStoreId aIndexId) const;
2652
2653 PBackgroundParent* GetBackgroundParent() const {
2654 AssertIsOnBackgroundThread();
2655 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"
, 2655); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()"
")"); do { *((volatile int*)__null) = 2655; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2656
2657 return GetDatabase().GetBackgroundParent();
2658 }
2659
2660 void NoteModifiedAutoIncrementObjectStore(
2661 const SafeRefPtr<FullObjectStoreMetadata>& aMetadata);
2662
2663 void ForgetModifiedAutoIncrementObjectStore(
2664 FullObjectStoreMetadata& aMetadata);
2665
2666 void NoteActiveRequest();
2667
2668 void NoteFinishedRequest(int64_t aRequestId, nsresult aResultCode);
2669
2670 void Invalidate();
2671
2672 virtual ~TransactionBase();
2673
2674 protected:
2675 TransactionBase(SafeRefPtr<Database> aDatabase, Mode aMode,
2676 Durability aDurability);
2677
2678 void NoteActorDestroyed() {
2679 AssertIsOnBackgroundThread();
2680
2681 mActorDestroyed.Flip();
2682 }
2683
2684#ifdef DEBUG1
2685 // Only called by VersionChangeTransaction.
2686 void FakeActorDestroyed() { mActorDestroyed.EnsureFlipped(); }
2687#endif
2688
2689 mozilla::ipc::IPCResult RecvCommit(IProtocol* aActor,
2690 const Maybe<int64_t> aLastRequest);
2691
2692 mozilla::ipc::IPCResult RecvAbort(IProtocol* aActor, nsresult aResultCode);
2693
2694 void MaybeCommitOrAbort() {
2695 AssertIsOnBackgroundThread();
2696
2697 // If we've already committed or aborted then there's nothing else to do.
2698 if (mCommittedOrAborted) {
2699 return;
2700 }
2701
2702 // If there are active requests then we have to wait for those requests to
2703 // complete (see NoteFinishedRequest).
2704 if (mActiveRequestCount) {
2705 return;
2706 }
2707
2708 // If we haven't yet received a commit or abort message then there could be
2709 // additional requests coming so we should wait unless we're being forced to
2710 // abort.
2711 if (!mCommitOrAbortReceived && !mForceAborted) {
2712 return;
2713 }
2714
2715 CommitOrAbort();
2716 }
2717
2718 PBackgroundIDBRequestParent* AllocRequest(const int64_t aRequestId,
2719 RequestParams&& aParams,
2720 bool aTrustParams);
2721
2722 bool StartRequest(PBackgroundIDBRequestParent* aActor);
2723
2724 bool DeallocRequest(PBackgroundIDBRequestParent* aActor);
2725
2726 already_AddRefed<PBackgroundIDBCursorParent> AllocCursor(
2727 const OpenCursorParams& aParams, bool aTrustParams);
2728
2729 bool StartCursor(PBackgroundIDBCursorParent* aActor, const int64_t aRequestId,
2730 const OpenCursorParams& aParams);
2731
2732 virtual void UpdateMetadata(nsresult aResult) {}
2733
2734 virtual void SendCompleteNotification(nsresult aResult) = 0;
2735
2736 private:
2737 bool VerifyRequestParams(const RequestParams& aParams) const;
2738
2739 bool VerifyRequestParams(const SerializedKeyRange& aParams) const;
2740
2741 bool VerifyRequestParams(const ObjectStoreAddPutParams& aParams) const;
2742
2743 bool VerifyRequestParams(const Maybe<SerializedKeyRange>& aParams) const;
2744
2745 void CommitOrAbort();
2746};
2747
2748class TransactionBase::CommitOp final : public DatabaseOperationBase,
2749 public ConnectionPool::FinishCallback {
2750 friend class TransactionBase;
2751
2752 SafeRefPtr<TransactionBase> mTransaction;
2753 nsresult mResultCode; ///< TODO: There is also a mResultCode in
2754 ///< DatabaseOperationBase. Is there a reason not to
2755 ///< use that? At least a more specific name should be
2756 ///< given to this one.
2757
2758 private:
2759 CommitOp(SafeRefPtr<TransactionBase> aTransaction, nsresult aResultCode);
2760
2761 ~CommitOp() override = default;
2762
2763 // Writes new autoIncrement counts to database.
2764 nsresult WriteAutoIncrementCounts();
2765
2766 // Updates counts after a database activity has finished.
2767 void CommitOrRollbackAutoIncrementCounts();
2768
2769 void AssertForeignKeyConsistency(DatabaseConnection* aConnection)
2770#ifdef DEBUG1
2771 ;
2772#else
2773 {
2774 }
2775#endif
2776
2777 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
2778
2779 void TransactionFinishedBeforeUnblock() override;
2780
2781 void TransactionFinishedAfterUnblock() override;
2782
2783 public:
2784 // We need to declare all of nsISupports, because FinishCallback has
2785 // a pure-virtual nsISupports declaration.
2786 NS_DECL_ISUPPORTS_INHERITEDpublic: virtual nsresult QueryInterface(const nsIID& aIID
, void** aInstancePtr) override; virtual MozExternalRefCountType
AddRef(void) override; virtual MozExternalRefCountType Release
(void) override;
2787};
2788
2789class NormalTransaction final : public TransactionBase,
2790 public PBackgroundIDBTransactionParent {
2791 nsTArray<SafeRefPtr<FullObjectStoreMetadata>> mObjectStores;
2792
2793 // Reference counted.
2794 ~NormalTransaction() override = default;
2795
2796 bool IsSameProcessActor();
2797
2798 // Only called by TransactionBase.
2799 void SendCompleteNotification(nsresult aResult) override;
2800
2801 // IPDL methods are only called by IPDL.
2802 void ActorDestroy(ActorDestroyReason aWhy) override;
2803
2804 mozilla::ipc::IPCResult RecvDeleteMe() override;
2805
2806 mozilla::ipc::IPCResult RecvCommit(
2807 const Maybe<int64_t>& aLastRequest) override;
2808
2809 mozilla::ipc::IPCResult RecvAbort(const nsresult& aResultCode) override;
2810
2811 PBackgroundIDBRequestParent* AllocPBackgroundIDBRequestParent(
2812 const int64_t& aRequestId, const RequestParams& aParams) override;
2813
2814 mozilla::ipc::IPCResult RecvPBackgroundIDBRequestConstructor(
2815 PBackgroundIDBRequestParent* aActor, const int64_t& aRequestId,
2816 const RequestParams& aParams) override;
2817
2818 bool DeallocPBackgroundIDBRequestParent(
2819 PBackgroundIDBRequestParent* aActor) override;
2820
2821 already_AddRefed<PBackgroundIDBCursorParent> AllocPBackgroundIDBCursorParent(
2822 const int64_t& aRequestId, const OpenCursorParams& aParams) override;
2823
2824 mozilla::ipc::IPCResult RecvPBackgroundIDBCursorConstructor(
2825 PBackgroundIDBCursorParent* aActor, const int64_t& aRequestId,
2826 const OpenCursorParams& aParams) override;
2827
2828 public:
2829 // This constructor is only called by Database.
2830 NormalTransaction(
2831 SafeRefPtr<Database> aDatabase, TransactionBase::Mode aMode,
2832 TransactionBase::Durability aDurability,
2833 nsTArray<SafeRefPtr<FullObjectStoreMetadata>>&& aObjectStores);
2834
2835 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; }
2836};
2837
2838class VersionChangeTransaction final
2839 : public TransactionBase,
2840 public PBackgroundIDBVersionChangeTransactionParent {
2841 friend class OpenDatabaseOp;
2842
2843 RefPtr<OpenDatabaseOp> mOpenDatabaseOp;
2844 SafeRefPtr<FullDatabaseMetadata> mOldMetadata;
2845
2846 FlippedOnce<false> mActorWasAlive;
2847
2848 public:
2849 // Only called by OpenDatabaseOp.
2850 explicit VersionChangeTransaction(OpenDatabaseOp* aOpenDatabaseOp);
2851
2852 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; }
2853 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; }
2854
2855 private:
2856 // Reference counted.
2857 ~VersionChangeTransaction() override;
2858
2859 bool IsSameProcessActor();
2860
2861 // Only called by OpenDatabaseOp.
2862 bool CopyDatabaseMetadata();
2863
2864 void SetActorAlive();
2865
2866 // Only called by TransactionBase.
2867 void UpdateMetadata(nsresult aResult) override;
2868
2869 // Only called by TransactionBase.
2870 void SendCompleteNotification(nsresult aResult) override;
2871
2872 // IPDL methods are only called by IPDL.
2873 void ActorDestroy(ActorDestroyReason aWhy) override;
2874
2875 mozilla::ipc::IPCResult RecvDeleteMe() override;
2876
2877 mozilla::ipc::IPCResult RecvCommit(
2878 const Maybe<int64_t>& aLastRequest) override;
2879
2880 mozilla::ipc::IPCResult RecvAbort(const nsresult& aResultCode) override;
2881
2882 mozilla::ipc::IPCResult RecvCreateObjectStore(
2883 const ObjectStoreMetadata& aMetadata) override;
2884
2885 mozilla::ipc::IPCResult RecvDeleteObjectStore(
2886 const IndexOrObjectStoreId& aObjectStoreId) override;
2887
2888 mozilla::ipc::IPCResult RecvRenameObjectStore(
2889 const IndexOrObjectStoreId& aObjectStoreId,
2890 const nsAString& aName) override;
2891
2892 mozilla::ipc::IPCResult RecvCreateIndex(
2893 const IndexOrObjectStoreId& aObjectStoreId,
2894 const IndexMetadata& aMetadata) override;
2895
2896 mozilla::ipc::IPCResult RecvDeleteIndex(
2897 const IndexOrObjectStoreId& aObjectStoreId,
2898 const IndexOrObjectStoreId& aIndexId) override;
2899
2900 mozilla::ipc::IPCResult RecvRenameIndex(
2901 const IndexOrObjectStoreId& aObjectStoreId,
2902 const IndexOrObjectStoreId& aIndexId, const nsAString& aName) override;
2903
2904 PBackgroundIDBRequestParent* AllocPBackgroundIDBRequestParent(
2905 const int64_t& aRequestId, const RequestParams& aParams) override;
2906
2907 mozilla::ipc::IPCResult RecvPBackgroundIDBRequestConstructor(
2908 PBackgroundIDBRequestParent* aActor, const int64_t& aRequestId,
2909 const RequestParams& aParams) override;
2910
2911 bool DeallocPBackgroundIDBRequestParent(
2912 PBackgroundIDBRequestParent* aActor) override;
2913
2914 already_AddRefed<PBackgroundIDBCursorParent> AllocPBackgroundIDBCursorParent(
2915 const int64_t& aRequestId, const OpenCursorParams& aParams) override;
2916
2917 mozilla::ipc::IPCResult RecvPBackgroundIDBCursorConstructor(
2918 PBackgroundIDBCursorParent* aActor, const int64_t& aRequestId,
2919 const OpenCursorParams& aParams) override;
2920};
2921
2922class FactoryOp
2923 : public DatabaseOperationBase,
2924 public SupportsCheckedUnsafePtr<CheckIf<DiagnosticAssertEnabled>> {
2925 public:
2926 struct MaybeBlockedDatabaseInfo final {
2927 SafeRefPtr<Database> mDatabase;
2928 bool mBlocked;
2929
2930 MaybeBlockedDatabaseInfo(MaybeBlockedDatabaseInfo&&) = default;
2931 MaybeBlockedDatabaseInfo& operator=(MaybeBlockedDatabaseInfo&&) = default;
2932
2933 MOZ_IMPLICIT MaybeBlockedDatabaseInfo(SafeRefPtr<Database> aDatabase)
2934 : mDatabase(std::move(aDatabase)), mBlocked(false) {
2935 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"
, 2935); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"
); do { *((volatile int*)__null) = 2935; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
2936
2937 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)
;
2938 }
2939
2940 ~MaybeBlockedDatabaseInfo() {
2941 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)
;
2942 }
2943
2944 bool operator==(const Database* aOther) const {
2945 return mDatabase == aOther;
2946 }
2947
2948 Database* operator->() const& MOZ_NO_ADDREF_RELEASE_ON_RETURN {
2949 return mDatabase.unsafeGetRawPtr();
2950 }
2951 };
2952
2953 protected:
2954 enum class State {
2955 // Just created on the PBackground thread, dispatched to the current thread.
2956 // Next step is either SendingResults if opening initialization failed, or
2957 // DirectoryOpenPending if the opening initialization succeeded.
2958 Initial,
2959
2960 // Waiting for directory open allowed on the PBackground thread. The next
2961 // step is either SendingResults if directory lock failed to acquire, or
2962 // DirectoryWorkOpen if the factory operation is not tied up to a specific
2963 // database, or DatabaseOpenPending otherwise.
2964 DirectoryOpenPending,
2965
2966 // Waiting to do/doing directory work on the QuotaManager IO thread. Its
2967 // next step is DirectoryWorkDone if directory work was successful or
2968 // SendingResults if directory work failed.
2969 DirectoryWorkOpen,
2970
2971 // Checking if database work can be started. If the database is not blocked
2972 // by other factory operations then the next step is DatabaseWorkOpen.
2973 // Otherwise the next step is DatabaseOpenPending.
2974 DirectoryWorkDone,
2975
2976 // Waiting for database open allowed on the PBackground thread. The next
2977 // step is DatabaseWorkOpen.
2978 DatabaseOpenPending,
2979
2980 // Waiting to do/doing work on the QuotaManager IO thread. Its next step is
2981 // either BeginVersionChange if the requested version doesn't match the
2982 // existing database version or SendingResults if the versions match.
2983 DatabaseWorkOpen,
2984
2985 // Starting a version change transaction or deleting a database on the
2986 // PBackground thread. We need to notify other databases that a version
2987 // change is about to happen, and maybe tell the request that a version
2988 // change has been blocked. If databases are notified then the next step is
2989 // WaitingForOtherDatabasesToClose. Otherwise the next step is
2990 // WaitingForTransactionsToComplete.
2991 BeginVersionChange,
2992
2993 // Waiting for other databases to close on the PBackground thread. This
2994 // state may persist until all databases are closed. The next state is
2995 // WaitingForTransactionsToComplete.
2996 WaitingForOtherDatabasesToClose,
2997
2998 // Waiting for all transactions that could interfere with this operation to
2999 // complete on the PBackground thread. Next state is
3000 // DatabaseWorkVersionChange.
3001 WaitingForTransactionsToComplete,
3002
3003 // Waiting to do/doing work on the "work thread". This involves waiting for
3004 // the VersionChangeOp (OpenDatabaseOp and DeleteDatabaseOp each have a
3005 // different implementation) to do its work. Eventually the state will
3006 // transition to SendingResults.
3007 DatabaseWorkVersionChange,
3008
3009 // Waiting to send/sending results on the PBackground thread. Next step is
3010 // Completed.
3011 SendingResults,
3012
3013 // All done.
3014 Completed
3015 };
3016
3017 // Must be released on the background thread!
3018 SafeRefPtr<Factory> mFactory;
3019
3020 Maybe<ContentParentId> mContentParentId;
3021
3022 // Must be released on the main thread!
3023 RefPtr<DirectoryLock> mDirectoryLock;
3024
3025 nsTArray<NotNull<RefPtr<FactoryOp>>> mBlocking;
3026 nsTArray<NotNull<RefPtr<FactoryOp>>> mBlockedOn;
3027
3028 nsTArray<MaybeBlockedDatabaseInfo> mMaybeBlockedDatabases;
3029
3030 const PrincipalInfo mPrincipalInfo;
3031 OriginMetadata mOriginMetadata;
3032 Maybe<nsString> mDatabaseName;
3033 Maybe<nsCString> mDatabaseId;
3034 Maybe<nsString> mDatabaseFilePath;
3035 int64_t mDirectoryLockId;
3036 const PersistenceType mPersistenceType;
3037 State mState;
3038 bool mWaitingForPermissionRetry;
3039 bool mEnforcingQuota;
3040 const bool mDeleting;
3041 FlippedOnce<false> mInPrivateBrowsing;
3042
3043 public:
3044 const nsACString& Origin() const {
3045 AssertIsOnOwningThread();
3046
3047 return mOriginMetadata.mOrigin;
3048 }
3049
3050 const Maybe<nsString>& DatabaseNameRef() const {
3051 AssertIsOnOwningThread();
3052
3053 return mDatabaseName;
3054 }
3055
3056 bool DatabaseFilePathIsKnown() const {
3057 AssertIsOnOwningThread();
3058
3059 return mDatabaseFilePath.isSome();
3060 }
3061
3062 const nsAString& DatabaseFilePath() const {
3063 AssertIsOnOwningThread();
3064 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"
, 3064); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseFilePath"
")"); do { *((volatile int*)__null) = 3064; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3065
3066 return mDatabaseFilePath.ref();
3067 }
3068
3069 nsresult DispatchThisAfterProcessingCurrentEvent(
3070 nsCOMPtr<nsIEventTarget> aEventTarget);
3071
3072 void NoteDatabaseBlocked(Database* aDatabase);
3073
3074 void NoteDatabaseClosed(Database* aDatabase);
3075
3076#ifdef DEBUG1
3077 bool HasBlockedDatabases() const { return !mMaybeBlockedDatabases.IsEmpty(); }
3078#endif
3079
3080 void StringifyState(nsACString& aResult) const;
3081
3082 void Stringify(nsACString& aResult) const;
3083
3084 protected:
3085 FactoryOp(SafeRefPtr<Factory> aFactory,
3086 const Maybe<ContentParentId>& aContentParentId,
3087 const PersistenceType aPersistenceType,
3088 const PrincipalInfo& aPrincipalInfo,
3089 const Maybe<nsString>& aDatabaseName, bool aDeleting);
3090
3091 ~FactoryOp() override {
3092 // Normally this would be out-of-line since it is a virtual function but
3093 // MSVC 2010 fails to link for some reason if it is not inlined here...
3094 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"
, 3095); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial || mState == State::Completed"
")"); do { *((volatile int*)__null) = 3095; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
3095 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"
, 3095); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial || mState == State::Completed"
")"); do { *((volatile int*)__null) = 3095; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
3096 }
3097
3098 nsresult Open();
3099
3100 nsresult DirectoryOpen();
3101
3102 nsresult DirectoryWorkDone();
3103
3104 nsresult SendToIOThread();
3105
3106 void WaitForTransactions();
3107
3108 void CleanupMetadata();
3109
3110 void FinishSendResults();
3111
3112 nsresult SendVersionChangeMessages(DatabaseActorInfo* aDatabaseActorInfo,
3113 Maybe<Database&> aOpeningDatabase,
3114 uint64_t aOldVersion,
3115 const Maybe<uint64_t>& aNewVersion);
3116
3117 // Methods that subclasses must implement.
3118 virtual nsresult DoDirectoryWork() = 0;
3119
3120 virtual nsresult DatabaseOpen() = 0;
3121
3122 virtual nsresult DoDatabaseWork() = 0;
3123
3124 virtual nsresult BeginVersionChange() = 0;
3125
3126 virtual bool AreActorsAlive() = 0;
3127
3128 virtual nsresult DispatchToWorkThread() = 0;
3129
3130 // Should only be called by Run().
3131 virtual void SendResults() = 0;
3132
3133 // Common nsIRunnable implementation that subclasses may not override.
3134 NS_IMETHODvirtual nsresult
3135 Run() final;
3136
3137 void DirectoryLockAcquired(DirectoryLock* aLock);
3138
3139 void DirectoryLockFailed();
3140
3141 virtual void SendBlockedNotification() = 0;
3142
3143 private:
3144 // Test whether this FactoryOp needs to wait for the given op.
3145 bool MustWaitFor(const FactoryOp& aExistingOp);
3146
3147 void AddBlockingOp(FactoryOp& aOp) {
3148 AssertIsOnOwningThread();
3149
3150 mBlocking.AppendElement(WrapNotNull(&aOp));
3151 }
3152
3153 void AddBlockedOnOp(FactoryOp& aOp) {
3154 AssertIsOnOwningThread();
3155
3156 mBlockedOn.AppendElement(WrapNotNull(&aOp));
3157 }
3158
3159 void MaybeUnblock(FactoryOp& aOp) {
3160 AssertIsOnOwningThread();
3161
3162 mBlockedOn.RemoveElement(&aOp);
3163 if (mBlockedOn.IsEmpty()) {
3164 MOZ_ALWAYS_SUCCEEDS(NS_DispatchToCurrentThread(this))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(NS_DispatchToCurrentThread(this))), 1)))), 1))) { } else { do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(false)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(NS_DispatchToCurrentThread(this))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 3164); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(NS_DispatchToCurrentThread(this))" ")");
do { *((volatile int*)__null) = 3164; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
3165 }
3166 }
3167};
3168
3169class FactoryRequestOp : public FactoryOp,
3170 public PBackgroundIDBFactoryRequestParent {
3171 protected:
3172 const CommonFactoryRequestParams mCommonParams;
3173
3174 FactoryRequestOp(SafeRefPtr<Factory> aFactory,
3175 const Maybe<ContentParentId>& aContentParentId,
3176 const CommonFactoryRequestParams& aCommonParams,
3177 bool aDeleting)
3178 : FactoryOp(std::move(aFactory), aContentParentId,
3179 aCommonParams.metadata().persistenceType(),
3180 aCommonParams.principalInfo(),
3181 Some(aCommonParams.metadata().name()), aDeleting),
3182 mCommonParams(aCommonParams) {}
3183
3184 nsresult DoDirectoryWork() override;
3185
3186 // IPDL methods.
3187 void ActorDestroy(ActorDestroyReason aWhy) override;
3188};
3189
3190class OpenDatabaseOp final : public FactoryRequestOp {
3191 friend class Database;
3192 friend class VersionChangeTransaction;
3193
3194 class VersionChangeOp;
3195
3196 SafeRefPtr<FullDatabaseMetadata> mMetadata;
3197
3198 uint64_t mRequestedVersion;
3199 SafeRefPtr<DatabaseFileManager> mFileManager;
3200
3201 SafeRefPtr<Database> mDatabase;
3202 SafeRefPtr<VersionChangeTransaction> mVersionChangeTransaction;
3203
3204 // This is only set while a VersionChangeOp is live. It holds a strong
3205 // reference to its OpenDatabaseOp object so this is a weak pointer to avoid
3206 // cycles.
3207 VersionChangeOp* mVersionChangeOp;
3208
3209 uint32_t mTelemetryId;
3210
3211 public:
3212 OpenDatabaseOp(SafeRefPtr<Factory> aFactory,
3213 const Maybe<ContentParentId>& aContentParentId,
3214 const CommonFactoryRequestParams& aParams);
3215
3216 private:
3217 ~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"
, 3217); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mVersionChangeOp"
")"); do { *((volatile int*)__null) = 3217; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
; }
3218
3219 nsresult LoadDatabaseInformation(mozIStorageConnection& aConnection);
3220
3221 nsresult SendUpgradeNeeded();
3222
3223 void EnsureDatabaseActor();
3224
3225 nsresult EnsureDatabaseActorIsAlive();
3226
3227 mozilla::Result<DatabaseSpec, nsresult> MetadataToSpec() const;
3228
3229 void AssertMetadataConsistency(const FullDatabaseMetadata& aMetadata)
3230#ifdef DEBUG1
3231 ;
3232#else
3233 {
3234 }
3235#endif
3236
3237 void ConnectionClosedCallback();
3238
3239 void ActorDestroy(ActorDestroyReason aWhy) override;
3240
3241 nsresult DatabaseOpen() override;
3242
3243 nsresult DoDatabaseWork() override;
3244
3245 nsresult BeginVersionChange() override;
3246
3247 bool AreActorsAlive() override;
3248
3249 void SendBlockedNotification() override;
3250
3251 nsresult DispatchToWorkThread() override;
3252
3253 void SendResults() override;
3254
3255 static nsresult UpdateLocaleAwareIndex(mozIStorageConnection& aConnection,
3256 const IndexMetadata& aIndexMetadata,
3257 const nsCString& aLocale);
3258};
3259
3260class OpenDatabaseOp::VersionChangeOp final
3261 : public TransactionDatabaseOperationBase {
3262 friend class OpenDatabaseOp;
3263
3264 RefPtr<OpenDatabaseOp> mOpenDatabaseOp;
3265 const uint64_t mRequestedVersion;
3266 uint64_t mPreviousVersion;
3267
3268 private:
3269 explicit VersionChangeOp(OpenDatabaseOp* aOpenDatabaseOp)
3270 : TransactionDatabaseOperationBase(
3271 aOpenDatabaseOp->mVersionChangeTransaction.clonePtr(),
3272 /* aRequestId */ 0, aOpenDatabaseOp->LoggingSerialNumber()),
3273 mOpenDatabaseOp(aOpenDatabaseOp),
3274 mRequestedVersion(aOpenDatabaseOp->mRequestedVersion),
3275 mPreviousVersion(
3276 aOpenDatabaseOp->mMetadata->mCommonMetadata.version()) {
3277 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"
, 3277); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aOpenDatabaseOp"
")"); do { *((volatile int*)__null) = 3277; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3278 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"
, 3278); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mRequestedVersion"
")"); do { *((volatile int*)__null) = 3278; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3279 }
3280
3281 ~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"
, 3281); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOpenDatabaseOp"
")"); do { *((volatile int*)__null) = 3281; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
; }
3282
3283 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
3284
3285 nsresult SendSuccessResult() override;
3286
3287 bool SendFailureResult(nsresult aResultCode) override;
3288
3289 void Cleanup() override;
3290};
3291
3292class DeleteDatabaseOp final : public FactoryRequestOp {
3293 class VersionChangeOp;
3294
3295 nsString mDatabaseDirectoryPath;
3296 nsString mDatabaseFilenameBase;
3297 uint64_t mPreviousVersion;
3298
3299 public:
3300 DeleteDatabaseOp(SafeRefPtr<Factory> aFactory,
3301 const Maybe<ContentParentId>& aContentParentId,
3302 const CommonFactoryRequestParams& aParams)
3303 : FactoryRequestOp(std::move(aFactory), aContentParentId, aParams,
3304 /* aDeleting */ true),
3305 mPreviousVersion(0) {}
3306
3307 private:
3308 ~DeleteDatabaseOp() override = default;
3309
3310 void LoadPreviousVersion(nsIFile& aDatabaseFile);
3311
3312 nsresult DatabaseOpen() override;
3313
3314 nsresult DoDatabaseWork() override;
3315
3316 nsresult BeginVersionChange() override;
3317
3318 bool AreActorsAlive() override;
3319
3320 void SendBlockedNotification() override;
3321
3322 nsresult DispatchToWorkThread() override;
3323
3324 void SendResults() override;
3325};
3326
3327class DeleteDatabaseOp::VersionChangeOp final : public DatabaseOperationBase {
3328 friend class DeleteDatabaseOp;
3329
3330 RefPtr<DeleteDatabaseOp> mDeleteDatabaseOp;
3331
3332 private:
3333 explicit VersionChangeOp(DeleteDatabaseOp* aDeleteDatabaseOp)
3334 : DatabaseOperationBase(aDeleteDatabaseOp->BackgroundChildLoggingId(),
3335 aDeleteDatabaseOp->LoggingSerialNumber()),
3336 mDeleteDatabaseOp(aDeleteDatabaseOp) {
3337 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"
, 3337); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDeleteDatabaseOp"
")"); do { *((volatile int*)__null) = 3337; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3338 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"
, 3338); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDeleteDatabaseOp->mDatabaseDirectoryPath.IsEmpty()"
")"); do { *((volatile int*)__null) = 3338; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3339 }
3340
3341 ~VersionChangeOp() override = default;
3342
3343 nsresult RunOnIOThread();
3344
3345 void RunOnOwningThread();
3346
3347 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
3348};
3349
3350class GetDatabasesOp final : public FactoryOp {
3351 nsTHashMap<nsStringHashKey, DatabaseMetadata> mDatabaseMetadataTable;
3352 nsTArray<DatabaseMetadata> mDatabaseMetadataArray;
3353 Factory::GetDatabasesResolver mResolver;
3354
3355 public:
3356 GetDatabasesOp(SafeRefPtr<Factory> aFactory,
3357 const Maybe<ContentParentId>& aContentParentId,
3358 const PersistenceType aPersistenceType,
3359 const PrincipalInfo& aPrincipalInfo,
3360 Factory::GetDatabasesResolver&& aResolver)
3361 : FactoryOp(std::move(aFactory), aContentParentId, aPersistenceType,
3362 aPrincipalInfo, Nothing(), /* aDeleting */ false),
3363 mResolver(std::move(aResolver)) {}
3364
3365 private:
3366 ~GetDatabasesOp() override = default;
3367
3368 nsresult DatabasesNotAvailable();
3369
3370 nsresult DoDirectoryWork() override;
3371
3372 nsresult DatabaseOpen() override;
3373
3374 nsresult DoDatabaseWork() override;
3375
3376 nsresult BeginVersionChange() override;
3377
3378 bool AreActorsAlive() override;
3379
3380 void SendBlockedNotification() override;
3381
3382 nsresult DispatchToWorkThread() override;
3383
3384 void SendResults() override;
3385};
3386
3387class VersionChangeTransactionOp : public TransactionDatabaseOperationBase {
3388 public:
3389 void Cleanup() override;
3390
3391 protected:
3392 explicit VersionChangeTransactionOp(
3393 SafeRefPtr<VersionChangeTransaction> aTransaction)
3394 : TransactionDatabaseOperationBase(std::move(aTransaction),
3395 /* aRequestId */ 0) {}
3396
3397 ~VersionChangeTransactionOp() override = default;
3398
3399 private:
3400 nsresult SendSuccessResult() override;
3401
3402 bool SendFailureResult(nsresult aResultCode) override;
3403};
3404
3405class CreateObjectStoreOp final : public VersionChangeTransactionOp {
3406 friend class VersionChangeTransaction;
3407
3408 const ObjectStoreMetadata mMetadata;
3409
3410 private:
3411 // Only created by VersionChangeTransaction.
3412 CreateObjectStoreOp(SafeRefPtr<VersionChangeTransaction> aTransaction,
3413 const ObjectStoreMetadata& aMetadata)
3414 : VersionChangeTransactionOp(std::move(aTransaction)),
3415 mMetadata(aMetadata) {
3416 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"
, 3416); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMetadata.id()"
")"); do { *((volatile int*)__null) = 3416; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3417 }
3418
3419 ~CreateObjectStoreOp() override = default;
3420
3421 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
3422};
3423
3424class DeleteObjectStoreOp final : public VersionChangeTransactionOp {
3425 friend class VersionChangeTransaction;
3426
3427 const SafeRefPtr<FullObjectStoreMetadata> mMetadata;
3428 const bool mIsLastObjectStore;
3429
3430 private:
3431 // Only created by VersionChangeTransaction.
3432 DeleteObjectStoreOp(SafeRefPtr<VersionChangeTransaction> aTransaction,
3433 SafeRefPtr<FullObjectStoreMetadata> aMetadata,
3434 const bool aIsLastObjectStore)
3435 : VersionChangeTransactionOp(std::move(aTransaction)),
3436 mMetadata(std::move(aMetadata)),
3437 mIsLastObjectStore(aIsLastObjectStore) {
3438 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"
, 3438); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mCommonMetadata.id()"
")"); do { *((volatile int*)__null) = 3438; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3439 }
3440
3441 ~DeleteObjectStoreOp() override = default;
3442
3443 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
3444};
3445
3446class RenameObjectStoreOp final : public VersionChangeTransactionOp {
3447 friend class VersionChangeTransaction;
3448
3449 const int64_t mId;
3450 const nsString mNewName;
3451
3452 private:
3453 // Only created by VersionChangeTransaction.
3454 RenameObjectStoreOp(SafeRefPtr<VersionChangeTransaction> aTransaction,
3455 FullObjectStoreMetadata& aMetadata)
3456 : VersionChangeTransactionOp(std::move(aTransaction)),
3457 mId(aMetadata.mCommonMetadata.id()),
3458 mNewName(aMetadata.mCommonMetadata.name()) {
3459 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"
, 3459); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mId" ")"); do
{ *((volatile int*)__null) = 3459; __attribute__((nomerge)) ::
abort(); } while (false); } } while (false)
;
3460 }
3461
3462 ~RenameObjectStoreOp() override = default;
3463
3464 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
3465};
3466
3467class CreateIndexOp final : public VersionChangeTransactionOp {
3468 friend class VersionChangeTransaction;
3469
3470 class UpdateIndexDataValuesFunction;
3471
3472 const IndexMetadata mMetadata;
3473 Maybe<UniqueIndexTable> mMaybeUniqueIndexTable;
3474 const SafeRefPtr<DatabaseFileManager> mFileManager;
3475 const nsCString mDatabaseId;
3476 const IndexOrObjectStoreId mObjectStoreId;
3477
3478 private:
3479 // Only created by VersionChangeTransaction.
3480 CreateIndexOp(SafeRefPtr<VersionChangeTransaction> aTransaction,
3481 IndexOrObjectStoreId aObjectStoreId,
3482 const IndexMetadata& aMetadata);
3483
3484 ~CreateIndexOp() override = default;
3485
3486 nsresult InsertDataFromObjectStore(DatabaseConnection* aConnection);
3487
3488 nsresult InsertDataFromObjectStoreInternal(
3489 DatabaseConnection* aConnection) const;
3490
3491 bool Init(TransactionBase& aTransaction) override;
3492
3493 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
3494};
3495
3496class CreateIndexOp::UpdateIndexDataValuesFunction final
3497 : public mozIStorageFunction {
3498 RefPtr<CreateIndexOp> mOp;
3499 RefPtr<DatabaseConnection> mConnection;
3500 const NotNull<SafeRefPtr<Database>> mDatabase;
3501
3502 public:
3503 UpdateIndexDataValuesFunction(CreateIndexOp* aOp,
3504 DatabaseConnection* aConnection,
3505 SafeRefPtr<Database> aDatabase)
3506 : mOp(aOp),
3507 mConnection(aConnection),
3508 mDatabase(WrapNotNull(std::move(aDatabase))) {
3509 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"
, 3509); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aOp" ")"); do
{ *((volatile int*)__null) = 3509; __attribute__((nomerge)) ::
abort(); } while (false); } } while (false)
;
3510 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"
, 3510); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 3510; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3511 aConnection->AssertIsOnConnectionThread();
3512 }
3513
3514 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:
3515
3516 private:
3517 ~UpdateIndexDataValuesFunction() = default;
3518
3519 NS_DECL_MOZISTORAGEFUNCTIONvirtual nsresult OnFunctionCall(mozIStorageValueArray *aFunctionArguments
, nsIVariant **_retval) override;
3520};
3521
3522class DeleteIndexOp final : public VersionChangeTransactionOp {
3523 friend class VersionChangeTransaction;
3524
3525 const IndexOrObjectStoreId mObjectStoreId;
3526 const IndexOrObjectStoreId mIndexId;
3527 const bool mUnique;
3528 const bool mIsLastIndex;
3529
3530 private:
3531 // Only created by VersionChangeTransaction.
3532 DeleteIndexOp(SafeRefPtr<VersionChangeTransaction> aTransaction,
3533 IndexOrObjectStoreId aObjectStoreId,
3534 IndexOrObjectStoreId aIndexId, const bool aUnique,
3535 const bool aIsLastIndex);
3536
3537 ~DeleteIndexOp() override = default;
3538
3539 nsresult RemoveReferencesToIndex(
3540 DatabaseConnection* aConnection, const Key& aObjectDataKey,
3541 nsTArray<IndexDataValue>& aIndexValues) const;
3542
3543 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
3544};
3545
3546class RenameIndexOp final : public VersionChangeTransactionOp {
3547 friend class VersionChangeTransaction;
3548
3549 const IndexOrObjectStoreId mObjectStoreId;
3550 const IndexOrObjectStoreId mIndexId;
3551 const nsString mNewName;
3552
3553 private:
3554 // Only created by VersionChangeTransaction.
3555 RenameIndexOp(SafeRefPtr<VersionChangeTransaction> aTransaction,
3556 FullIndexMetadata& aMetadata,
3557 IndexOrObjectStoreId aObjectStoreId)
3558 : VersionChangeTransactionOp(std::move(aTransaction)),
3559 mObjectStoreId(aObjectStoreId),
3560 mIndexId(aMetadata.mCommonMetadata.id()),
3561 mNewName(aMetadata.mCommonMetadata.name()) {
3562 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"
, 3562); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIndexId" ")"
); do { *((volatile int*)__null) = 3562; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3563 }
3564
3565 ~RenameIndexOp() override = default;
3566
3567 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
3568};
3569
3570class NormalTransactionOp : public TransactionDatabaseOperationBase,
3571 public PBackgroundIDBRequestParent {
3572#ifdef DEBUG1
3573 bool mResponseSent;
3574#endif
3575
3576 public:
3577 void Cleanup() override;
3578
3579 protected:
3580 NormalTransactionOp(SafeRefPtr<TransactionBase> aTransaction,
3581 const int64_t aRequestId)
3582 : TransactionDatabaseOperationBase(std::move(aTransaction), aRequestId)
3583#ifdef DEBUG1
3584 ,
3585 mResponseSent(false)
3586#endif
3587 {
3588 }
3589
3590 ~NormalTransactionOp() override = default;
3591
3592 // An overload of DatabaseOperationBase's function that can avoid doing extra
3593 // work on non-versionchange transactions.
3594 mozilla::Result<bool, nsresult> ObjectStoreHasIndexes(
3595 DatabaseConnection& aConnection, IndexOrObjectStoreId aObjectStoreId,
3596 bool aMayHaveIndexes);
3597
3598 virtual mozilla::Result<PreprocessParams, nsresult> GetPreprocessParams();
3599
3600 // Subclasses use this override to set the IPDL response value.
3601 virtual void GetResponse(RequestResponse& aResponse,
3602 size_t* aResponseSize) = 0;
3603
3604 private:
3605 nsresult SendPreprocessInfo() override;
3606
3607 nsresult SendSuccessResult() override;
3608
3609 bool SendFailureResult(nsresult aResultCode) override;
3610
3611 // IPDL methods.
3612 void ActorDestroy(ActorDestroyReason aWhy) override;
3613
3614 mozilla::ipc::IPCResult RecvContinue(
3615 const PreprocessResponse& aResponse) final;
3616};
3617
3618class ObjectStoreAddOrPutRequestOp final : public NormalTransactionOp {
3619 friend class TransactionBase;
3620
3621 using PersistenceType = mozilla::dom::quota::PersistenceType;
3622
3623 class StoredFileInfo final {
3624 InitializedOnce<const NotNull<SafeRefPtr<DatabaseFileInfo>>> mFileInfo;
3625 // Either nothing, a file actor or a non-Blob-backed inputstream to write to
3626 // disk.
3627 using FileActorOrInputStream =
3628 Variant<Nothing, RefPtr<DatabaseFile>, nsCOMPtr<nsIInputStream>>;
3629 InitializedOnce<const FileActorOrInputStream> mFileActorOrInputStream;
3630#ifdef DEBUG1
3631 const StructuredCloneFileBase::FileType mType;
3632#endif
3633 void EnsureCipherKey();
3634 void AssertInvariants() const;
3635
3636 StoredFileInfo(SafeRefPtr<DatabaseFileInfo> aFileInfo,
3637 RefPtr<DatabaseFile> aFileActor);
3638
3639 StoredFileInfo(SafeRefPtr<DatabaseFileInfo> aFileInfo,
3640 nsCOMPtr<nsIInputStream> aInputStream);
3641
3642 public:
3643#if defined(NS_BUILD_REFCNT_LOGGING1)
3644 // Only for MOZ_COUNT_CTOR.
3645 StoredFileInfo(StoredFileInfo&& aOther)
3646 : mFileInfo{std::move(aOther.mFileInfo)},
3647 mFileActorOrInputStream{std::move(aOther.mFileActorOrInputStream)}
3648# ifdef DEBUG1
3649 ,
3650 mType{aOther.mType}
3651# endif
3652 {
3653 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)
;
3654 }
3655#else
3656 StoredFileInfo(StoredFileInfo&&) = default;
3657#endif
3658
3659 static StoredFileInfo CreateForBlob(SafeRefPtr<DatabaseFileInfo> aFileInfo,
3660 RefPtr<DatabaseFile> aFileActor);
3661 static StoredFileInfo CreateForStructuredClone(
3662 SafeRefPtr<DatabaseFileInfo> aFileInfo,
3663 nsCOMPtr<nsIInputStream> aInputStream);
3664
3665#if defined(DEBUG1) || defined(NS_BUILD_REFCNT_LOGGING1)
3666 ~StoredFileInfo() {
3667 AssertIsOnBackgroundThread();
3668 AssertInvariants();
3669
3670 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)
;
3671 }
3672#endif
3673
3674 bool IsValid() const { return static_cast<bool>(mFileInfo); }
3675
3676 const DatabaseFileInfo& GetFileInfo() const { return **mFileInfo; }
3677
3678 bool ShouldCompress() const;
3679
3680 void NotifyWriteSucceeded() const;
3681
3682 using InputStreamResult =
3683 mozilla::Result<nsCOMPtr<nsIInputStream>, nsresult>;
3684 InputStreamResult GetInputStream();
3685
3686 void Serialize(nsString& aText) const;
3687 };
3688 class SCInputStream;
3689
3690 ObjectStoreAddPutParams mParams;
3691 Maybe<UniqueIndexTable> mUniqueIndexTable;
3692
3693 // This must be non-const so that we can update the mNextAutoIncrementId field
3694 // if we are modifying an autoIncrement objectStore.
3695 SafeRefPtr<FullObjectStoreMetadata> mMetadata;
3696
3697 nsTArray<StoredFileInfo> mStoredFileInfos;
3698
3699 Key mResponse;
3700 const OriginMetadata mOriginMetadata;
3701 const PersistenceType mPersistenceType;
3702 const bool mOverwrite;
3703 bool mObjectStoreMayHaveIndexes;
3704 bool mDataOverThreshold;
3705
3706 private:
3707 // Only created by TransactionBase.
3708 ObjectStoreAddOrPutRequestOp(SafeRefPtr<TransactionBase> aTransaction,
3709 const int64_t aRequestId,
3710 RequestParams&& aParams);
3711
3712 ~ObjectStoreAddOrPutRequestOp() override = default;
3713
3714 nsresult RemoveOldIndexDataValues(DatabaseConnection* aConnection);
3715
3716 bool Init(TransactionBase& aTransaction) override;
3717
3718 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
3719
3720 void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override;
3721
3722 void Cleanup() override;
3723};
3724
3725void ObjectStoreAddOrPutRequestOp::StoredFileInfo::AssertInvariants() const {
3726 // The only allowed types are eStructuredClone, eBlob and eMutableFile.
3727 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"
, 3729); AnnotateMozCrashReason("MOZ_ASSERT" "(" "StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase::eMutableFile == mType"
")"); do { *((volatile int*)__null) = 3729; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
3728 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"
, 3729); AnnotateMozCrashReason("MOZ_ASSERT" "(" "StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase::eMutableFile == mType"
")"); do { *((volatile int*)__null) = 3729; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
3729 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"
, 3729); AnnotateMozCrashReason("MOZ_ASSERT" "(" "StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase::eMutableFile == mType"
")"); do { *((volatile int*)__null) = 3729; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3730
3731 // mFileInfo and a file actor in mFileActorOrInputStream are present until
3732 // the object is moved away, but an inputStream in mFileActorOrInputStream
3733 // can be released early.
3734 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"
, 3736); AnnotateMozCrashReason("MOZ_ASSERT" "(" "static_cast<bool>(mFileInfo)"
")"); do { *((volatile int*)__null) = 3736; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
3735 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"
, 3736); AnnotateMozCrashReason("MOZ_ASSERT" "(" "static_cast<bool>(mFileInfo)"
")"); do { *((volatile int*)__null) = 3736; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
3736 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"
, 3736); AnnotateMozCrashReason("MOZ_ASSERT" "(" "static_cast<bool>(mFileInfo)"
")"); do { *((volatile int*)__null) = 3736; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
3737
3738 if (mFileInfo) {
3739 // In a non-moved StoredFileInfo, one of the following is true:
3740 // - This was an overflow structured clone (eStructuredClone) and
3741 // storedFileInfo.mFileActorOrInputStream CAN be a non-nullptr input
3742 // stream (but that might have been release by ReleaseInputStream).
3743 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"
, 3747); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())"
")"); do { *((volatile int*)__null) = 3747; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
3744 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"
, 3747); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())"
")"); do { *((volatile int*)__null) = 3747; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
3745 !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"
, 3747); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())"
")"); do { *((volatile int*)__null) = 3747; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
3746 (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"
, 3747); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())"
")"); do { *((volatile int*)__null) = 3747; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
3747 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"
, 3747); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())"
")"); do { *((volatile int*)__null) = 3747; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
3748
3749 // - This is a reference to a Blob (eBlob) that may or may not have
3750 // already been written to disk. storedFileInfo.mFileActorOrInputStream
3751 // MUST be a non-null file actor, but its GetInputStream may return
3752 // nullptr (so don't assert on that).
3753 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"
, 3755); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileActorOrInputStream->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream->as<RefPtr<DatabaseFile>>()"
")"); do { *((volatile int*)__null) = 3755; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
3754 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"
, 3755); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileActorOrInputStream->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream->as<RefPtr<DatabaseFile>>()"
")"); do { *((volatile int*)__null) = 3755; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
3755 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"
, 3755); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileActorOrInputStream->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream->as<RefPtr<DatabaseFile>>()"
")"); do { *((volatile int*)__null) = 3755; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
3756
3757 // - It's a mutable file (eMutableFile). No writing will be performed,
3758 // and storedFileInfo.mFileActorOrInputStream is Nothing.
3759 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"
, 3760); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileActorOrInputStream->is<Nothing>()"
")"); do { *((volatile int*)__null) = 3760; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
3760 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"
, 3760); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileActorOrInputStream->is<Nothing>()"
")"); do { *((volatile int*)__null) = 3760; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
3761 }
3762}
3763
3764void ObjectStoreAddOrPutRequestOp::StoredFileInfo::EnsureCipherKey() {
3765 const auto& fileInfo = GetFileInfo();
3766 const auto& fileManager = fileInfo.Manager();
3767
3768 // No need to generate cipher keys if we are not in PBM
3769 if (!fileManager.IsInPrivateBrowsingMode()) {
3770 return;
3771 }
3772
3773 nsCString keyId;
3774 keyId.AppendInt(fileInfo.Id());
3775
3776 fileManager.MutableCipherKeyManagerRef().Ensure(keyId);
3777}
3778
3779ObjectStoreAddOrPutRequestOp::StoredFileInfo::StoredFileInfo(
3780 SafeRefPtr<DatabaseFileInfo> aFileInfo, RefPtr<DatabaseFile> aFileActor)
3781 : mFileInfo{WrapNotNull(std::move(aFileInfo))},
3782 mFileActorOrInputStream{std::move(aFileActor)}
3783#ifdef DEBUG1
3784 ,
3785 mType{StructuredCloneFileBase::eBlob}
3786#endif
3787{
3788 AssertIsOnBackgroundThread();
3789 AssertInvariants();
3790
3791 EnsureCipherKey();
3792 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)
;
3793}
3794
3795ObjectStoreAddOrPutRequestOp::StoredFileInfo::StoredFileInfo(
3796 SafeRefPtr<DatabaseFileInfo> aFileInfo,
3797 nsCOMPtr<nsIInputStream> aInputStream)
3798 : mFileInfo{WrapNotNull(std::move(aFileInfo))},
3799 mFileActorOrInputStream{std::move(aInputStream)}
3800#ifdef DEBUG1
3801 ,
3802 mType{StructuredCloneFileBase::eStructuredClone}
3803#endif
3804{
3805 AssertIsOnBackgroundThread();
3806 AssertInvariants();
3807
3808 EnsureCipherKey();
3809 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)
;
3810}
3811
3812ObjectStoreAddOrPutRequestOp::StoredFileInfo
3813ObjectStoreAddOrPutRequestOp::StoredFileInfo::CreateForBlob(
3814 SafeRefPtr<DatabaseFileInfo> aFileInfo, RefPtr<DatabaseFile> aFileActor) {
3815 return {std::move(aFileInfo), std::move(aFileActor)};
3816}
3817
3818ObjectStoreAddOrPutRequestOp::StoredFileInfo
3819ObjectStoreAddOrPutRequestOp::StoredFileInfo::CreateForStructuredClone(
3820 SafeRefPtr<DatabaseFileInfo> aFileInfo,
3821 nsCOMPtr<nsIInputStream> aInputStream) {
3822 return {std::move(aFileInfo), std::move(aInputStream)};
3823}
3824
3825bool ObjectStoreAddOrPutRequestOp::StoredFileInfo::ShouldCompress() const {
3826 // Must not be called after moving.
3827 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"
, 3827); AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsValid()" ")"
); do { *((volatile int*)__null) = 3827; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3828
3829 // Compression is only necessary for eStructuredClone, i.e. when
3830 // mFileActorOrInputStream stored an input stream. However, this is only
3831 // called after GetInputStream, when mFileActorOrInputStream has been
3832 // cleared, which is only possible for this type.
3833 const bool res = !mFileActorOrInputStream;
3834 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"
, 3834); AnnotateMozCrashReason("MOZ_ASSERT" "(" "res == (StructuredCloneFileBase::eStructuredClone == mType)"
")"); do { *((volatile int*)__null) = 3834; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3835 return res;
3836}
3837
3838void ObjectStoreAddOrPutRequestOp::StoredFileInfo::NotifyWriteSucceeded()
3839 const {
3840 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"
, 3840); AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsValid()" ")"
); do { *((volatile int*)__null) = 3840; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3841
3842 // For eBlob, clear the blob implementation.
3843 if (mFileActorOrInputStream &&
3844 mFileActorOrInputStream->is<RefPtr<DatabaseFile>>()) {
3845 mFileActorOrInputStream->as<RefPtr<DatabaseFile>>()
3846 ->WriteSucceededClearBlobImpl();
3847 }
3848
3849 // For the other types, no action is necessary.
3850}
3851
3852ObjectStoreAddOrPutRequestOp::StoredFileInfo::InputStreamResult
3853ObjectStoreAddOrPutRequestOp::StoredFileInfo::GetInputStream() {
3854 if (!mFileActorOrInputStream) {
3855 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"
, 3855); AnnotateMozCrashReason("MOZ_ASSERT" "(" "StructuredCloneFileBase::eStructuredClone == mType"
")"); do { *((volatile int*)__null) = 3855; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3856 return nsCOMPtr<nsIInputStream>{};
3857 }
3858
3859 // For the different cases, see also the comments in AssertInvariants.
3860 return mFileActorOrInputStream->match(
3861 [](const Nothing&) -> InputStreamResult {
3862 return nsCOMPtr<nsIInputStream>{};
3863 },
3864 [](const RefPtr<DatabaseFile>& databaseActor) -> InputStreamResult {
3865 ErrorResult rv;
3866 auto inputStream = databaseActor->GetInputStream(rv);
3867 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"
, 3867)
) {
3868 return Err(rv.StealNSResult());
3869 }
3870
3871 return inputStream;
3872 },
3873 [this](const nsCOMPtr<nsIInputStream>& inputStream) -> InputStreamResult {
3874 auto res = inputStream;
3875 // destroy() clears the inputStream parameter, so we needed to make a
3876 // copy before
3877 mFileActorOrInputStream.destroy();
3878 AssertInvariants();
3879 return res;
3880 });
3881}
3882
3883void ObjectStoreAddOrPutRequestOp::StoredFileInfo::Serialize(
3884 nsString& aText) const {
3885 AssertInvariants();
3886 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"
, 3886); AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsValid()" ")"
); do { *((volatile int*)__null) = 3886; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
3887
3888 const int64_t id = (*mFileInfo)->Id();
3889
3890 auto structuredCloneHandler = [&aText, id](const nsCOMPtr<nsIInputStream>&) {
3891 // eStructuredClone
3892 aText.Append('.');
3893 aText.AppendInt(id);
3894 };
3895
3896 // If mFileActorOrInputStream was moved, we had an inputStream before.
3897 if (!mFileActorOrInputStream) {
3898 structuredCloneHandler(nullptr);
3899 return;
3900 }
3901
3902 // This encoding is parsed in DeserializeStructuredCloneFile.
3903 mFileActorOrInputStream->match(
3904 [&aText, id](const Nothing&) {
3905 // eMutableFile
3906 aText.AppendInt(-id);
3907 },
3908 [&aText, id](const RefPtr<DatabaseFile>&) {
3909 // eBlob
3910 aText.AppendInt(id);
3911 },
3912 structuredCloneHandler);
3913}
3914
3915class ObjectStoreAddOrPutRequestOp::SCInputStream final
3916 : public nsIInputStream {
3917 const JSStructuredCloneData& mData;
3918 JSStructuredCloneData::Iterator mIter;
3919
3920 public:
3921 explicit SCInputStream(const JSStructuredCloneData& aData)
3922 : mData(aData), mIter(aData.Start()) {}
3923
3924 private:
3925 virtual ~SCInputStream() = default;
3926
3927 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:
3928 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;
3929};
3930
3931class ObjectStoreGetRequestOp final : public NormalTransactionOp {
3932 friend class TransactionBase;
3933
3934 const IndexOrObjectStoreId mObjectStoreId;
3935 SafeRefPtr<Database> mDatabase;
3936 const Maybe<SerializedKeyRange> mOptionalKeyRange;
3937 AutoTArray<StructuredCloneReadInfoParent, 1> mResponse;
3938 PBackgroundParent* mBackgroundParent;
3939 uint32_t mPreprocessInfoCount;
3940 const uint32_t mLimit;
3941 const bool mGetAll;
3942
3943 private:
3944 // Only created by TransactionBase.
3945 ObjectStoreGetRequestOp(SafeRefPtr<TransactionBase> aTransaction,
3946 const int64_t aRequestId,
3947 const RequestParams& aParams, bool aGetAll);
3948
3949 ~ObjectStoreGetRequestOp() override = default;
3950
3951 template <typename T>
3952 mozilla::Result<T, nsresult> ConvertResponse(
3953 StructuredCloneReadInfoParent&& aInfo);
3954
3955 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
3956
3957 bool HasPreprocessInfo() override;
3958
3959 mozilla::Result<PreprocessParams, nsresult> GetPreprocessParams() override;
3960
3961 void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override;
3962};
3963
3964class ObjectStoreGetKeyRequestOp final : public NormalTransactionOp {
3965 friend class TransactionBase;
3966
3967 const IndexOrObjectStoreId mObjectStoreId;
3968 const Maybe<SerializedKeyRange> mOptionalKeyRange;
3969 const uint32_t mLimit;
3970 const bool mGetAll;
3971 nsTArray<Key> mResponse;
3972
3973 private:
3974 // Only created by TransactionBase.
3975 ObjectStoreGetKeyRequestOp(SafeRefPtr<TransactionBase> aTransaction,
3976 const int64_t aRequestId,
3977 const RequestParams& aParams, bool aGetAll);
3978
3979 ~ObjectStoreGetKeyRequestOp() override = default;
3980
3981 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
3982
3983 void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override;
3984};
3985
3986class ObjectStoreDeleteRequestOp final : public NormalTransactionOp {
3987 friend class TransactionBase;
3988
3989 const ObjectStoreDeleteParams mParams;
3990 ObjectStoreDeleteResponse mResponse;
3991 bool mObjectStoreMayHaveIndexes;
3992
3993 private:
3994 ObjectStoreDeleteRequestOp(SafeRefPtr<TransactionBase> aTransaction,
3995 const int64_t aRequestId,
3996 const ObjectStoreDeleteParams& aParams);
3997
3998 ~ObjectStoreDeleteRequestOp() override = default;
3999
4000 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
4001
4002 void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override {
4003 aResponse = std::move(mResponse);
4004 *aResponseSize = 0;
4005 }
4006};
4007
4008class ObjectStoreClearRequestOp final : public NormalTransactionOp {
4009 friend class TransactionBase;
4010
4011 const ObjectStoreClearParams mParams;
4012 ObjectStoreClearResponse mResponse;
4013 bool mObjectStoreMayHaveIndexes;
4014
4015 private:
4016 ObjectStoreClearRequestOp(SafeRefPtr<TransactionBase> aTransaction,
4017 const int64_t aRequestId,
4018 const ObjectStoreClearParams& aParams);
4019
4020 ~ObjectStoreClearRequestOp() override = default;
4021
4022 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
4023
4024 void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override {
4025 aResponse = std::move(mResponse);
4026 *aResponseSize = 0;
4027 }
4028};
4029
4030class ObjectStoreCountRequestOp final : public NormalTransactionOp {
4031 friend class TransactionBase;
4032
4033 const ObjectStoreCountParams mParams;
4034 ObjectStoreCountResponse mResponse;
4035
4036 private:
4037 ObjectStoreCountRequestOp(SafeRefPtr<TransactionBase> aTransaction,
4038 const int64_t aRequestId,
4039 const ObjectStoreCountParams& aParams)
4040 : NormalTransactionOp(std::move(aTransaction), aRequestId),
4041 mParams(aParams) {}
4042
4043 ~ObjectStoreCountRequestOp() override = default;
4044
4045 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
4046
4047 void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override {
4048 aResponse = std::move(mResponse);
4049 *aResponseSize = sizeof(uint64_t);
4050 }
4051};
4052
4053class IndexRequestOpBase : public NormalTransactionOp {
4054 protected:
4055 const SafeRefPtr<FullIndexMetadata> mMetadata;
4056
4057 protected:
4058 IndexRequestOpBase(SafeRefPtr<TransactionBase> aTransaction,
4059 const int64_t aRequestId, const RequestParams& aParams)
4060 : NormalTransactionOp(std::move(aTransaction), aRequestId),
4061 mMetadata(IndexMetadataForParams(Transaction(), aParams)) {}
4062
4063 ~IndexRequestOpBase() override = default;
4064
4065 private:
4066 static SafeRefPtr<FullIndexMetadata> IndexMetadataForParams(
4067 const TransactionBase& aTransaction, const RequestParams& aParams);
4068};
4069
4070class IndexGetRequestOp final : public IndexRequestOpBase {
4071 friend class TransactionBase;
4072
4073 SafeRefPtr<Database> mDatabase;
4074 const Maybe<SerializedKeyRange> mOptionalKeyRange;
4075 AutoTArray<StructuredCloneReadInfoParent, 1> mResponse;
4076 PBackgroundParent* mBackgroundParent;
4077 const uint32_t mLimit;
4078 const bool mGetAll;
4079
4080 private:
4081 // Only created by TransactionBase.
4082 IndexGetRequestOp(SafeRefPtr<TransactionBase> aTransaction,
4083 const int64_t aRequestId, const RequestParams& aParams,
4084 bool aGetAll);
4085
4086 ~IndexGetRequestOp() override = default;
4087
4088 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
4089
4090 void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override;
4091};
4092
4093class IndexGetKeyRequestOp final : public IndexRequestOpBase {
4094 friend class TransactionBase;
4095
4096 const Maybe<SerializedKeyRange> mOptionalKeyRange;
4097 AutoTArray<Key, 1> mResponse;
4098 const uint32_t mLimit;
4099 const bool mGetAll;
4100
4101 private:
4102 // Only created by TransactionBase.
4103 IndexGetKeyRequestOp(SafeRefPtr<TransactionBase> aTransaction,
4104 const int64_t aRequestId, const RequestParams& aParams,
4105 bool aGetAll);
4106
4107 ~IndexGetKeyRequestOp() override = default;
4108
4109 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
4110
4111 void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override;
4112};
4113
4114class IndexCountRequestOp final : public IndexRequestOpBase {
4115 friend class TransactionBase;
4116
4117 const IndexCountParams mParams;
4118 IndexCountResponse mResponse;
4119
4120 private:
4121 // Only created by TransactionBase.
4122 IndexCountRequestOp(SafeRefPtr<TransactionBase> aTransaction,
4123 const int64_t aRequestId, const RequestParams& aParams)
4124 : IndexRequestOpBase(std::move(aTransaction), aRequestId, aParams),
4125 mParams(aParams.get_IndexCountParams()) {}
4126
4127 ~IndexCountRequestOp() override = default;
4128
4129 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
4130
4131 void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override {
4132 aResponse = std::move(mResponse);
4133 *aResponseSize = sizeof(uint64_t);
4134 }
4135};
4136
4137template <IDBCursorType CursorType>
4138class Cursor;
4139
4140constexpr IDBCursorType ToKeyOnlyType(const IDBCursorType aType) {
4141 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"
, 4143); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey"
")"); do { *((volatile int*)__null) = 4143; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
4142 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"
, 4143); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey"
")"); do { *((volatile int*)__null) = 4143; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
4143 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"
, 4143); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey"
")"); do { *((volatile int*)__null) = 4143; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4144 switch (aType) {
4145 case IDBCursorType::ObjectStore:
4146 [[fallthrough]];
4147 case IDBCursorType::ObjectStoreKey:
4148 return IDBCursorType::ObjectStoreKey;
4149 case IDBCursorType::Index:
4150 [[fallthrough]];
4151 case IDBCursorType::IndexKey:
4152 return IDBCursorType::IndexKey;
4153 }
4154}
4155
4156template <IDBCursorType CursorType>
4157using CursorPosition = CursorData<ToKeyOnlyType(CursorType)>;
4158
4159#ifdef DEBUG1
4160constexpr indexedDB::OpenCursorParams::Type ToOpenCursorParamsType(
4161 const IDBCursorType aType) {
4162 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"
, 4164); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey"
")"); do { *((volatile int*)__null) = 4164; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
4163 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"
, 4164); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey"
")"); do { *((volatile int*)__null) = 4164; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
4164 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"
, 4164); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey"
")"); do { *((volatile int*)__null) = 4164; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4165 switch (aType) {
4166 case IDBCursorType::ObjectStore:
4167 return indexedDB::OpenCursorParams::TObjectStoreOpenCursorParams;
4168 case IDBCursorType::ObjectStoreKey:
4169 return indexedDB::OpenCursorParams::TObjectStoreOpenKeyCursorParams;
4170 case IDBCursorType::Index:
4171 return indexedDB::OpenCursorParams::TIndexOpenCursorParams;
4172 case IDBCursorType::IndexKey:
4173 return indexedDB::OpenCursorParams::TIndexOpenKeyCursorParams;
4174 }
4175}
4176#endif
4177
4178class CursorBase : public PBackgroundIDBCursorParent {
4179 friend class TransactionBase;
4180 template <IDBCursorType CursorType>
4181 friend class CommonOpenOpHelper;
4182
4183 protected:
4184 const SafeRefPtr<TransactionBase> mTransaction;
4185
4186 // This should only be touched on the PBackground thread to check whether
4187 // the objectStore has been deleted. Holding these saves a hash lookup for
4188 // every call to continue()/advance().
4189 InitializedOnce<const NotNull<SafeRefPtr<FullObjectStoreMetadata>>>
4190 mObjectStoreMetadata;
4191
4192 const IndexOrObjectStoreId mObjectStoreId;
4193
4194 LazyInitializedOnce<const Key>
4195 mLocaleAwareRangeBound; ///< If the cursor is based on a key range, the
4196 ///< bound in the direction of iteration (e.g.
4197 ///< the upper bound in case of mDirection ==
4198 ///< NEXT). If the cursor is based on a key, it
4199 ///< is unset. If mLocale is set, this was
4200 ///< converted to mLocale.
4201
4202 const Direction mDirection;
4203
4204 const int32_t mMaxExtraCount;
4205
4206 const bool mIsSameProcessActor;
4207
4208 struct ConstructFromTransactionBase {};
4209
4210 public:
4211 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"
, 4212); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { *((volatile int*)__null) =
4212; __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"
, 4212); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { *((volatile int*)__null) = 4212
; __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:
4212 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"
, 4212); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { *((volatile int*)__null) =
4212; __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"
, 4212); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { *((volatile int*)__null) = 4212
; __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:
4213
4214 CursorBase(SafeRefPtr<TransactionBase> aTransaction,
4215 SafeRefPtr<FullObjectStoreMetadata> aObjectStoreMetadata,
4216 Direction aDirection,
4217 ConstructFromTransactionBase aConstructionTag);
4218
4219 protected:
4220 // Reference counted.
4221 ~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"
, 4221); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mObjectStoreMetadata"
")"); do { *((volatile int*)__null) = 4221; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
; }
4222
4223 private:
4224 virtual bool Start(const int64_t aRequestId,
4225 const OpenCursorParams& aParams) = 0;
4226};
4227
4228class IndexCursorBase : public CursorBase {
4229 public:
4230 bool IsLocaleAware() const { return !mLocale.IsEmpty(); }
4231
4232 IndexCursorBase(SafeRefPtr<TransactionBase> aTransaction,
4233 SafeRefPtr<FullObjectStoreMetadata> aObjectStoreMetadata,
4234 SafeRefPtr<FullIndexMetadata> aIndexMetadata,
4235 Direction aDirection,
4236 ConstructFromTransactionBase aConstructionTag)
4237 : CursorBase{std::move(aTransaction), std::move(aObjectStoreMetadata),
4238 aDirection, aConstructionTag},
4239 mIndexMetadata(WrapNotNull(std::move(aIndexMetadata))),
4240 mIndexId((*mIndexMetadata)->mCommonMetadata.id()),
4241 mUniqueIndex((*mIndexMetadata)->mCommonMetadata.unique()),
4242 mLocale((*mIndexMetadata)->mCommonMetadata.locale()) {}
4243
4244 protected:
4245 IndexOrObjectStoreId Id() const { return mIndexId; }
4246
4247 // This should only be touched on the PBackground thread to check whether
4248 // the index has been deleted. Holding these saves a hash lookup for every
4249 // call to continue()/advance().
4250 InitializedOnce<const NotNull<SafeRefPtr<FullIndexMetadata>>> mIndexMetadata;
4251 const IndexOrObjectStoreId mIndexId;
4252 const bool mUniqueIndex;
4253 const nsCString
4254 mLocale; ///< The locale if the cursor is locale-aware, otherwise empty.
4255
4256 struct ContinueQueries {
4257 nsCString mContinueQuery;
4258 nsCString mContinueToQuery;
4259 nsCString mContinuePrimaryKeyQuery;
4260
4261 const nsACString& GetContinueQuery(const bool hasContinueKey,
4262 const bool hasContinuePrimaryKey) const {
4263 return hasContinuePrimaryKey ? mContinuePrimaryKeyQuery
4264 : hasContinueKey ? mContinueToQuery
4265 : mContinueQuery;
4266 }
4267 };
4268};
4269
4270class ObjectStoreCursorBase : public CursorBase {
4271 public:
4272 using CursorBase::CursorBase;
4273
4274 static constexpr bool IsLocaleAware() { return false; }
4275
4276 protected:
4277 IndexOrObjectStoreId Id() const { return mObjectStoreId; }
4278
4279 struct ContinueQueries {
4280 nsCString mContinueQuery;
4281 nsCString mContinueToQuery;
4282
4283 const nsACString& GetContinueQuery(const bool hasContinueKey,
4284 const bool hasContinuePrimaryKey) const {
4285 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"
, 4285); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!hasContinuePrimaryKey"
")"); do { *((volatile int*)__null) = 4285; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4286 return hasContinueKey ? mContinueToQuery : mContinueQuery;
4287 }
4288 };
4289};
4290
4291using FilesArray = nsTArray<nsTArray<StructuredCloneFileParent>>;
4292
4293struct PseudoFilesArray {
4294 static constexpr bool IsEmpty() { return true; }
4295
4296 static constexpr void Clear() {}
4297};
4298
4299template <IDBCursorType CursorType>
4300using FilesArrayT =
4301 std::conditional_t<!CursorTypeTraits<CursorType>::IsKeyOnlyCursor,
4302 FilesArray, PseudoFilesArray>;
4303
4304class ValueCursorBase {
4305 friend struct ValuePopulateResponseHelper<true>;
4306 friend struct ValuePopulateResponseHelper<false>;
4307
4308 protected:
4309 explicit ValueCursorBase(TransactionBase* const aTransaction)
4310 : mDatabase(aTransaction->GetDatabasePtr()),
4311 mFileManager(mDatabase->GetFileManagerPtr()),
4312 mBackgroundParent(WrapNotNull(aTransaction->GetBackgroundParent())) {
4313 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"
, 4313); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"
); do { *((volatile int*)__null) = 4313; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4314 }
4315
4316 void ProcessFiles(CursorResponse& aResponse, const FilesArray& aFiles);
4317
4318 ~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"
, 4318); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mBackgroundParent"
")"); do { *((volatile int*)__null) = 4318; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
; }
4319
4320 const SafeRefPtr<Database> mDatabase;
4321 const NotNull<SafeRefPtr<DatabaseFileManager>> mFileManager;
4322
4323 InitializedOnce<const NotNull<PBackgroundParent*>> mBackgroundParent;
4324};
4325
4326class KeyCursorBase {
4327 protected:
4328 explicit KeyCursorBase(TransactionBase* const /*aTransaction*/) {}
4329
4330 static constexpr void ProcessFiles(CursorResponse& aResponse,
4331 const PseudoFilesArray& aFiles) {}
4332};
4333
4334template <IDBCursorType CursorType>
4335class CursorOpBaseHelperBase;
4336
4337template <IDBCursorType CursorType>
4338class Cursor final
4339 : public std::conditional_t<
4340 CursorTypeTraits<CursorType>::IsObjectStoreCursor,
4341 ObjectStoreCursorBase, IndexCursorBase>,
4342 public std::conditional_t<CursorTypeTraits<CursorType>::IsKeyOnlyCursor,
4343 KeyCursorBase, ValueCursorBase> {
4344 using Base =
4345 std::conditional_t<CursorTypeTraits<CursorType>::IsObjectStoreCursor,
4346 ObjectStoreCursorBase, IndexCursorBase>;
4347
4348 using KeyValueBase =
4349 std::conditional_t<CursorTypeTraits<CursorType>::IsKeyOnlyCursor,
4350 KeyCursorBase, ValueCursorBase>;
4351
4352 static constexpr bool IsIndexCursor =
4353 !CursorTypeTraits<CursorType>::IsObjectStoreCursor;
4354
4355 static constexpr bool IsValueCursor =
4356 !CursorTypeTraits<CursorType>::IsKeyOnlyCursor;
4357
4358 class CursorOpBase;
4359 class OpenOp;
4360 class ContinueOp;
4361
4362 using Base::Id;
4363 using CursorBase::Manager;
4364 using CursorBase::mDirection;
4365 using CursorBase::mObjectStoreId;
4366 using CursorBase::mTransaction;
4367 using typename CursorBase::ActorDestroyReason;
4368
4369 using TypedOpenOpHelper =
4370 std::conditional_t<IsIndexCursor, IndexOpenOpHelper<CursorType>,
4371 ObjectStoreOpenOpHelper<CursorType>>;
4372
4373 friend class CursorOpBaseHelperBase<CursorType>;
4374 friend class CommonOpenOpHelper<CursorType>;
4375 friend TypedOpenOpHelper;
4376 friend class OpenOpHelper<CursorType>;
4377
4378 CursorOpBase* mCurrentlyRunningOp = nullptr;
4379
4380 LazyInitializedOnce<const typename Base::ContinueQueries> mContinueQueries;
4381
4382 // Only called by TransactionBase.
4383 bool Start(const int64_t aRequestId, const OpenCursorParams& aParams) final;
4384
4385 void SendResponseInternal(CursorResponse& aResponse,
4386 const FilesArrayT<CursorType>& aFiles);
4387
4388 // Must call SendResponseInternal!
4389 bool SendResponse(const CursorResponse& aResponse) = delete;
4390
4391 // IPDL methods.
4392 void ActorDestroy(ActorDestroyReason aWhy) override;
4393
4394 mozilla::ipc::IPCResult RecvDeleteMe() override;
4395
4396 mozilla::ipc::IPCResult RecvContinue(
4397 const int64_t& aRequestId, const CursorRequestParams& aParams,
4398 const Key& aCurrentKey, const Key& aCurrentObjectStoreKey) override;
4399
4400 public:
4401 Cursor(SafeRefPtr<TransactionBase> aTransaction,
4402 SafeRefPtr<FullObjectStoreMetadata> aObjectStoreMetadata,
4403 SafeRefPtr<FullIndexMetadata> aIndexMetadata,
4404 typename Base::Direction aDirection,
4405 typename Base::ConstructFromTransactionBase aConstructionTag)
4406 : Base{std::move(aTransaction), std::move(aObjectStoreMetadata),
4407 std::move(aIndexMetadata), aDirection, aConstructionTag},
4408 KeyValueBase{this->mTransaction.unsafeGetRawPtr()} {}
4409
4410 Cursor(SafeRefPtr<TransactionBase> aTransaction,
4411 SafeRefPtr<FullObjectStoreMetadata> aObjectStoreMetadata,
4412 typename Base::Direction aDirection,
4413 typename Base::ConstructFromTransactionBase aConstructionTag)
4414 : Base{std::move(aTransaction), std::move(aObjectStoreMetadata),
4415 aDirection, aConstructionTag},
4416 KeyValueBase{this->mTransaction.unsafeGetRawPtr()} {}
4417
4418 private:
4419 void SetOptionalKeyRange(const Maybe<SerializedKeyRange>& aOptionalKeyRange,
4420 bool* aOpen);
4421
4422 bool VerifyRequestParams(const CursorRequestParams& aParams,
4423 const CursorPosition<CursorType>& aPosition) const;
4424
4425 ~Cursor() final = default;
4426};
4427
4428template <IDBCursorType CursorType>
4429class Cursor<CursorType>::CursorOpBase
4430 : public TransactionDatabaseOperationBase {
4431 friend class CursorOpBaseHelperBase<CursorType>;
4432
4433 protected:
4434 RefPtr<Cursor> mCursor;
4435 FilesArrayT<CursorType> mFiles; // TODO: Consider removing this member
4436 // entirely if we are no value cursor.
4437
4438 CursorResponse mResponse;
4439
4440#ifdef DEBUG1
4441 bool mResponseSent;
4442#endif
4443
4444 protected:
4445 explicit CursorOpBase(Cursor* aCursor, const int64_t aRequestId)
4446 : TransactionDatabaseOperationBase(aCursor->mTransaction.clonePtr(),
4447 /* aRequestId */ aRequestId),
4448 mCursor(aCursor)
4449#ifdef DEBUG1
4450 ,
4451 mResponseSent(false)
4452#endif
4453 {
4454 AssertIsOnBackgroundThread();
4455 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"
, 4455); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCursor" ")"
); do { *((volatile int*)__null) = 4455; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4456 }
4457
4458 ~CursorOpBase() override = default;
4459
4460 bool SendFailureResult(nsresult aResultCode) final;
4461 nsresult SendSuccessResult() final;
4462
4463 void Cleanup() override;
4464};
4465
4466template <IDBCursorType CursorType>
4467class OpenOpHelper;
4468
4469using ResponseSizeOrError = Result<size_t, nsresult>;
4470
4471template <IDBCursorType CursorType>
4472class CursorOpBaseHelperBase {
4473 public:
4474 explicit CursorOpBaseHelperBase(
4475 typename Cursor<CursorType>::CursorOpBase& aOp)
4476 : mOp{aOp} {}
4477
4478 ResponseSizeOrError PopulateResponseFromStatement(mozIStorageStatement* aStmt,
4479 bool aInitializeResponse,
4480 Key* const aOptOutSortKey);
4481
4482 void PopulateExtraResponses(mozIStorageStatement* aStmt,
4483 uint32_t aMaxExtraCount,
4484 const size_t aInitialResponseSize,
4485 const nsACString& aOperation,
4486 Key* const aOptPreviousSortKey);
4487
4488 protected:
4489 Cursor<CursorType>& GetCursor() {
4490 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"
, 4490); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp.mCursor"
")"); do { *((volatile int*)__null) = 4490; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4491 return *mOp.mCursor;
4492 }
4493
4494 void SetResponse(CursorResponse aResponse) {
4495 mOp.mResponse = std::move(aResponse);
4496 }
4497
4498 protected:
4499 typename Cursor<CursorType>::CursorOpBase& mOp;
4500};
4501
4502class CommonOpenOpHelperBase {
4503 protected:
4504 static void AppendConditionClause(const nsACString& aColumnName,
4505 const nsACString& aStatementParameterName,
4506 bool aLessThan, bool aEquals,
4507 nsCString& aResult);
4508};
4509
4510template <IDBCursorType CursorType>
4511class CommonOpenOpHelper : public CursorOpBaseHelperBase<CursorType>,
4512 protected CommonOpenOpHelperBase {
4513 public:
4514 explicit CommonOpenOpHelper(typename Cursor<CursorType>::OpenOp& aOp)
4515 : CursorOpBaseHelperBase<CursorType>{aOp} {}
4516
4517 protected:
4518 using CursorOpBaseHelperBase<CursorType>::GetCursor;
4519 using CursorOpBaseHelperBase<CursorType>::PopulateExtraResponses;
4520 using CursorOpBaseHelperBase<CursorType>::PopulateResponseFromStatement;
4521 using CursorOpBaseHelperBase<CursorType>::SetResponse;
4522
4523 const Maybe<SerializedKeyRange>& GetOptionalKeyRange() const {
4524 // This downcast is safe, since we initialized mOp from an OpenOp in the
4525 // ctor.
4526 return static_cast<typename Cursor<CursorType>::OpenOp&>(this->mOp)
4527 .mOptionalKeyRange;
4528 }
4529
4530 nsresult ProcessStatementSteps(mozIStorageStatement* aStmt);
4531};
4532
4533template <IDBCursorType CursorType>
4534class ObjectStoreOpenOpHelper : protected CommonOpenOpHelper<CursorType> {
4535 public:
4536 using CommonOpenOpHelper<CursorType>::CommonOpenOpHelper;
4537
4538 protected:
4539 using CommonOpenOpHelper<CursorType>::GetCursor;
4540 using CommonOpenOpHelper<CursorType>::GetOptionalKeyRange;
4541 using CommonOpenOpHelper<CursorType>::AppendConditionClause;
4542
4543 void PrepareKeyConditionClauses(const nsACString& aDirectionClause,
4544 const nsACString& aQueryStart);
4545};
4546
4547template <IDBCursorType CursorType>
4548class IndexOpenOpHelper : protected CommonOpenOpHelper<CursorType> {
4549 public:
4550 using CommonOpenOpHelper<CursorType>::CommonOpenOpHelper;
4551
4552 protected:
4553 using CommonOpenOpHelper<CursorType>::GetCursor;
4554 using CommonOpenOpHelper<CursorType>::GetOptionalKeyRange;
4555 using CommonOpenOpHelper<CursorType>::AppendConditionClause;
4556
4557 void PrepareIndexKeyConditionClause(
4558 const nsACString& aDirectionClause,
4559 const nsLiteralCString& aObjectDataKeyPrefix, nsAutoCString aQueryStart);
4560};
4561
4562template <>
4563class OpenOpHelper<IDBCursorType::ObjectStore>
4564 : public ObjectStoreOpenOpHelper<IDBCursorType::ObjectStore> {
4565 public:
4566 using ObjectStoreOpenOpHelper<
4567 IDBCursorType::ObjectStore>::ObjectStoreOpenOpHelper;
4568
4569 nsresult DoDatabaseWork(DatabaseConnection* aConnection);
4570};
4571
4572template <>
4573class OpenOpHelper<IDBCursorType::ObjectStoreKey>
4574 : public ObjectStoreOpenOpHelper<IDBCursorType::ObjectStoreKey> {
4575 public:
4576 using ObjectStoreOpenOpHelper<
4577 IDBCursorType::ObjectStoreKey>::ObjectStoreOpenOpHelper;
4578
4579 nsresult DoDatabaseWork(DatabaseConnection* aConnection);
4580};
4581
4582template <>
4583class OpenOpHelper<IDBCursorType::Index>
4584 : IndexOpenOpHelper<IDBCursorType::Index> {
4585 private:
4586 void PrepareKeyConditionClauses(const nsACString& aDirectionClause,
4587 nsAutoCString aQueryStart) {
4588 PrepareIndexKeyConditionClause(aDirectionClause, "index_table."_ns,
4589 std::move(aQueryStart));
4590 }
4591
4592 public:
4593 using IndexOpenOpHelper<IDBCursorType::Index>::IndexOpenOpHelper;
4594
4595 nsresult DoDatabaseWork(DatabaseConnection* aConnection);
4596};
4597
4598template <>
4599class OpenOpHelper<IDBCursorType::IndexKey>
4600 : IndexOpenOpHelper<IDBCursorType::IndexKey> {
4601 private:
4602 void PrepareKeyConditionClauses(const nsACString& aDirectionClause,
4603 nsAutoCString aQueryStart) {
4604 PrepareIndexKeyConditionClause(aDirectionClause, ""_ns,
4605 std::move(aQueryStart));
4606 }
4607
4608 public:
4609 using IndexOpenOpHelper<IDBCursorType::IndexKey>::IndexOpenOpHelper;
4610
4611 nsresult DoDatabaseWork(DatabaseConnection* aConnection);
4612};
4613
4614template <IDBCursorType CursorType>
4615class Cursor<CursorType>::OpenOp final : public CursorOpBase {
4616 friend class Cursor<CursorType>;
4617 friend class CommonOpenOpHelper<CursorType>;
4618
4619 const Maybe<SerializedKeyRange> mOptionalKeyRange;
4620
4621 using CursorOpBase::mCursor;
4622 using CursorOpBase::mResponse;
4623
4624 // Only created by Cursor.
4625 OpenOp(Cursor* const aCursor, const int64_t aRequestId,
4626 const Maybe<SerializedKeyRange>& aOptionalKeyRange)
4627 : CursorOpBase(aCursor, aRequestId),
4628 mOptionalKeyRange(aOptionalKeyRange) {}
4629
4630 // Reference counted.
4631 ~OpenOp() override = default;
4632
4633 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
4634};
4635
4636template <IDBCursorType CursorType>
4637class Cursor<CursorType>::ContinueOp final
4638 : public Cursor<CursorType>::CursorOpBase {
4639 friend class Cursor<CursorType>;
4640
4641 using CursorOpBase::mCursor;
4642 using CursorOpBase::mResponse;
4643 const CursorRequestParams mParams;
4644
4645 // Only created by Cursor.
4646 ContinueOp(Cursor* const aCursor, int64_t aRequestId,
4647 CursorRequestParams aParams, CursorPosition<CursorType> aPosition)
4648 : CursorOpBase(aCursor, aRequestId),
4649 mParams(std::move(aParams)),
4650 mCurrentPosition{std::move(aPosition)} {
4651 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"
, 4651); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mParams.type() != CursorRequestParams::T__None"
")"); do { *((volatile int*)__null) = 4651; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4652 }
4653
4654 // Reference counted.
4655 ~ContinueOp() override = default;
4656
4657 nsresult DoDatabaseWork(DatabaseConnection* aConnection) override;
4658
4659 const CursorPosition<CursorType> mCurrentPosition;
4660};
4661
4662class Utils final : public PBackgroundIndexedDBUtilsParent {
4663#ifdef DEBUG1
4664 bool mActorDestroyed;
4665#endif
4666
4667 public:
4668 Utils();
4669
4670 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"
, 4670); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { *((volatile int*)__null) =
4670; __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"
, 4670); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { *((volatile int*)__null) = 4670
; __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:
4671
4672 private:
4673 // Reference counted.
4674 ~Utils() override;
4675
4676 // IPDL methods are only called by IPDL.
4677 void ActorDestroy(ActorDestroyReason aWhy) override;
4678
4679 mozilla::ipc::IPCResult RecvDeleteMe() override;
4680
4681 mozilla::ipc::IPCResult RecvGetFileReferences(
4682 const PersistenceType& aPersistenceType, const nsACString& aOrigin,
4683 const nsAString& aDatabaseName, const int64_t& aFileId, int32_t* aRefCnt,
4684 int32_t* aDBRefCnt, bool* aResult) override;
4685
4686 mozilla::ipc::IPCResult RecvDoMaintenance(
4687 DoMaintenanceResolver&& aResolver) override;
4688};
4689
4690/*******************************************************************************
4691 * Other class declarations
4692 ******************************************************************************/
4693
4694struct DatabaseActorInfo final {
4695 friend class mozilla::DefaultDelete<DatabaseActorInfo>;
4696
4697 SafeRefPtr<FullDatabaseMetadata> mMetadata;
4698 nsTArray<NotNull<CheckedUnsafePtr<Database>>> mLiveDatabases;
4699 RefPtr<FactoryOp> mWaitingFactoryOp;
4700
4701 DatabaseActorInfo(SafeRefPtr<FullDatabaseMetadata> aMetadata,
4702 NotNull<Database*> aDatabase)
4703 : mMetadata(std::move(aMetadata)) {
4704 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)
;
4705
4706 mLiveDatabases.AppendElement(aDatabase);
4707 }
4708
4709 private:
4710 ~DatabaseActorInfo() {
4711 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"
, 4711); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLiveDatabases.IsEmpty()"
")"); do { *((volatile int*)__null) = 4711; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4712 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"
, 4712); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mWaitingFactoryOp || !mWaitingFactoryOp->HasBlockedDatabases()"
")"); do { *((volatile int*)__null) = 4712; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4713
4714 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)
;
4715 }
4716};
4717
4718class DatabaseLoggingInfo final {
4719#ifdef DEBUG1
4720 // Just for potential warnings.
4721 friend class Factory;
4722#endif
4723
4724 LoggingInfo mLoggingInfo;
4725
4726 public:
4727 explicit DatabaseLoggingInfo(const LoggingInfo& aLoggingInfo)
4728 : mLoggingInfo(aLoggingInfo) {
4729 AssertIsOnBackgroundThread();
4730 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"
, 4730); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLoggingInfo.nextTransactionSerialNumber()"
")"); do { *((volatile int*)__null) = 4730; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4731 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"
, 4731); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLoggingInfo.nextVersionChangeTransactionSerialNumber()"
")"); do { *((volatile int*)__null) = 4731; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4732 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"
, 4732); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLoggingInfo.nextRequestSerialNumber()"
")"); do { *((volatile int*)__null) = 4732; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4733 }
4734
4735 const nsID& Id() const {
4736 AssertIsOnBackgroundThread();
4737
4738 return mLoggingInfo.backgroundChildLoggingId();
4739 }
4740
4741 int64_t NextTransactionSN(IDBTransaction::Mode aMode) {
4742 AssertIsOnBackgroundThread();
4743 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"
, 4743); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingInfo.nextTransactionSerialNumber() < (9223372036854775807L)"
")"); do { *((volatile int*)__null) = 4743; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4744 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"
, 4745); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingInfo.nextVersionChangeTransactionSerialNumber() > (-9223372036854775807L-1)"
")"); do { *((volatile int*)__null) = 4745; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
4745 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"
, 4745); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingInfo.nextVersionChangeTransactionSerialNumber() > (-9223372036854775807L-1)"
")"); do { *((volatile int*)__null) = 4745; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4746
4747 if (aMode == IDBTransaction::Mode::VersionChange) {
4748 return mLoggingInfo.nextVersionChangeTransactionSerialNumber()--;
4749 }
4750
4751 return mLoggingInfo.nextTransactionSerialNumber()++;
4752 }
4753
4754 uint64_t NextRequestSN() {
4755 AssertIsOnBackgroundThread();
4756 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"
, 4756); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingInfo.nextRequestSerialNumber() < (18446744073709551615UL)"
")"); do { *((volatile int*)__null) = 4756; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4757
4758 return mLoggingInfo.nextRequestSerialNumber()++;
4759 }
4760
4761 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"
, 4761); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { *((volatile int*)__null) =
4761; __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"
, 4761); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { *((volatile int*)__null) = 4761
; __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:
4762
4763 private:
4764 ~DatabaseLoggingInfo();
4765};
4766
4767class QuotaClient final : public mozilla::dom::quota::Client {
4768 friend class GetDatabasesOp;
4769
4770 static QuotaClient* sInstance;
4771
4772 nsCOMPtr<nsIEventTarget> mBackgroundThread;
4773 nsCOMPtr<nsITimer> mDeleteTimer;
4774 nsTArray<RefPtr<Maintenance>> mMaintenanceQueue;
4775 RefPtr<Maintenance> mCurrentMaintenance;
4776 RefPtr<nsThreadPool> mMaintenanceThreadPool;
4777 nsClassHashtable<nsRefPtrHashKey<DatabaseFileManager>, nsTArray<int64_t>>
4778 mPendingDeleteInfos;
4779
4780 public:
4781 QuotaClient();
4782
4783 static QuotaClient* GetInstance() {
4784 AssertIsOnBackgroundThread();
4785
4786 return sInstance;
4787 }
4788
4789 nsIEventTarget* BackgroundThread() const {
4790 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"
, 4790); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mBackgroundThread"
")"); do { *((volatile int*)__null) = 4790; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4791 return mBackgroundThread;
4792 }
4793
4794 nsresult AsyncDeleteFile(DatabaseFileManager* aFileManager, int64_t aFileId);
4795
4796 nsresult FlushPendingFileDeletions();
4797
4798 RefPtr<BoolPromise> DoMaintenance();
4799
4800 RefPtr<Maintenance> GetCurrentMaintenance() const {
4801 return mCurrentMaintenance;
4802 }
4803
4804 void NoteFinishedMaintenance(Maintenance* aMaintenance) {
4805 AssertIsOnBackgroundThread();
4806 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"
, 4806); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMaintenance"
")"); do { *((volatile int*)__null) = 4806; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4807 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"
, 4807); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCurrentMaintenance == aMaintenance"
")"); do { *((volatile int*)__null) = 4807; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4808
4809 mCurrentMaintenance = nullptr;
4810
4811 QuotaManager::MaybeRecordQuotaClientShutdownStep(quota::Client::IDB,
4812 "Maintenance finished"_ns);
4813
4814 ProcessMaintenanceQueue();
4815 }
4816
4817 nsThreadPool* GetOrCreateThreadPool();
4818
4819 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"
, 4820); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { *((volatile int*)__null) =
4820; __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"
, 4820); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { *((volatile int*)__null) = 4820
; __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:
4820 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"
, 4820); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { *((volatile int*)__null) =
4820; __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"
, 4820); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { *((volatile int*)__null) = 4820
; __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:
4821
4822 mozilla::dom::quota::Client::Type GetType() override;
4823
4824 nsresult UpgradeStorageFrom1_0To2_0(nsIFile* aDirectory) override;
4825
4826 nsresult UpgradeStorageFrom2_1To2_2(nsIFile* aDirectory) override;
4827
4828 Result<UsageInfo, nsresult> InitOrigin(PersistenceType aPersistenceType,
4829 const OriginMetadata& aOriginMetadata,
4830 const AtomicBool& aCanceled) override;
4831
4832 nsresult InitOriginWithoutTracking(PersistenceType aPersistenceType,
4833 const OriginMetadata& aOriginMetadata,
4834 const AtomicBool& aCanceled) override;
4835
4836 Result<UsageInfo, nsresult> GetUsageForOrigin(
4837 PersistenceType aPersistenceType, const OriginMetadata& aOriginMetadata,
4838 const AtomicBool& aCanceled) override;
4839
4840 void OnOriginClearCompleted(PersistenceType aPersistenceType,
4841 const nsACString& aOrigin) override;
4842
4843 void OnRepositoryClearCompleted(PersistenceType aPersistenceType) override;
4844
4845 void ReleaseIOThreadObjects() override;
4846
4847 void AbortOperationsForLocks(
4848 const DirectoryLockIdTable& aDirectoryLockIds) override;
4849
4850 void AbortOperationsForProcess(ContentParentId aContentParentId) override;
4851
4852 void AbortAllOperations() override;
4853
4854 void StartIdleMaintenance() override;
4855
4856 void StopIdleMaintenance() override;
4857
4858 private:
4859 ~QuotaClient() override;
4860
4861 void InitiateShutdown() override;
4862 bool IsShutdownCompleted() const override;
4863 nsCString GetShutdownStatus() const override;
4864 void ForceKillActors() override;
4865 void FinalizeShutdown() override;
4866
4867 static void DeleteTimerCallback(nsITimer* aTimer, void* aClosure);
4868
4869 void AbortAllMaintenances();
4870
4871 Result<nsCOMPtr<nsIFile>, nsresult> GetDirectory(
4872 const OriginMetadata& aOriginMetadata);
4873
4874 struct SubdirectoriesToProcessAndDatabaseFilenames {
4875 AutoTArray<nsString, 20> subdirsToProcess;
4876 nsTHashSet<nsString> databaseFilenames{20};
4877 };
4878
4879 struct SubdirectoriesToProcessAndDatabaseFilenamesAndObsoleteFilenames {
4880 AutoTArray<nsString, 20> subdirsToProcess;
4881 nsTHashSet<nsString> databaseFilenames{20};
4882 nsTHashSet<nsString> obsoleteFilenames{20};
4883 };
4884
4885 enum class ObsoleteFilenamesHandling { Include, Omit };
4886
4887 template <ObsoleteFilenamesHandling ObsoleteFilenames>
4888 using GetDatabaseFilenamesResult = std::conditional_t<
4889 ObsoleteFilenames == ObsoleteFilenamesHandling::Include,
4890 SubdirectoriesToProcessAndDatabaseFilenamesAndObsoleteFilenames,
4891 SubdirectoriesToProcessAndDatabaseFilenames>;
4892
4893 // Returns a two-part or three-part structure:
4894 //
4895 // The first part is an array of subdirectories to process.
4896 //
4897 // The second part is a hashtable of database filenames.
4898 //
4899 // When ObsoleteFilenames is ObsoleteFilenamesHandling::Include, will also
4900 // collect files based on the marker files. For now,
4901 // GetUsageForOriginInternal() is the only consumer of this result because it
4902 // checks those unfinished deletion and clean them up after that.
4903 template <ObsoleteFilenamesHandling ObsoleteFilenames =
4904 ObsoleteFilenamesHandling::Omit>
4905 Result<GetDatabaseFilenamesResult<ObsoleteFilenames>,
4906 nsresult> static GetDatabaseFilenames(nsIFile& aDirectory,
4907 const AtomicBool& aCanceled);
4908
4909 nsresult GetUsageForOriginInternal(PersistenceType aPersistenceType,
4910 const OriginMetadata& aOriginMetadata,
4911 const AtomicBool& aCanceled,
4912 bool aInitializing, UsageInfo* aUsageInfo);
4913
4914 // Runs on the PBackground thread. Checks to see if there's a queued
4915 // Maintenance to run.
4916 void ProcessMaintenanceQueue();
4917};
4918
4919class DeleteFilesRunnable final : public Runnable {
4920 using DirectoryLock = mozilla::dom::quota::DirectoryLock;
4921
4922 enum State {
4923 // Just created on the PBackground thread. Next step is
4924 // State_DirectoryOpenPending.
4925 State_Initial,
4926
4927 // Waiting for directory open allowed on the main thread. The next step is
4928 // State_DatabaseWorkOpen.
4929 State_DirectoryOpenPending,
4930
4931 // Waiting to do/doing work on the QuotaManager IO thread. The next step is
4932 // State_UnblockingOpen.
4933 State_DatabaseWorkOpen,
4934
4935 // Notifying the QuotaManager that it can proceed to the next operation on
4936 // the main thread. Next step is State_Completed.
4937 State_UnblockingOpen,
4938
4939 // All done.
4940 State_Completed
4941 };
4942
4943 nsCOMPtr<nsIEventTarget> mOwningEventTarget;
4944 SafeRefPtr<DatabaseFileManager> mFileManager;
4945 RefPtr<DirectoryLock> mDirectoryLock;
4946 nsTArray<int64_t> mFileIds;
4947 State mState;
4948 DEBUGONLY(bool mDEBUGCountsAsPending = false)bool mDEBUGCountsAsPending = false;
4949
4950 static uint64_t sPendingRunnables;
4951
4952 public:
4953 DeleteFilesRunnable(SafeRefPtr<DatabaseFileManager> aFileManager,
4954 nsTArray<int64_t>&& aFileIds);
4955
4956 void RunImmediately();
4957
4958 static bool IsDeletionPending() { return sPendingRunnables > 0; }
4959
4960 private:
4961#ifdef DEBUG1
4962 ~DeleteFilesRunnable();
4963#else
4964 ~DeleteFilesRunnable() = default;
4965#endif
4966
4967 void Open();
4968
4969 void DoDatabaseWork();
4970
4971 void Finish();
4972
4973 void UnblockOpen();
4974
4975 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
4976
4977 void DirectoryLockAcquired(DirectoryLock* aLock);
4978
4979 void DirectoryLockFailed();
4980};
4981
4982class Maintenance final : public Runnable {
4983 struct DirectoryInfo final {
4984 InitializedOnce<const OriginMetadata> mOriginMetadata;
4985 InitializedOnce<const nsTArray<nsString>> mDatabasePaths;
4986 const PersistenceType mPersistenceType;
4987
4988 DirectoryInfo(PersistenceType aPersistenceType,
4989 OriginMetadata aOriginMetadata,
4990 nsTArray<nsString>&& aDatabasePaths);
4991
4992 DirectoryInfo(const DirectoryInfo& aOther) = delete;
4993 DirectoryInfo(DirectoryInfo&& aOther) = delete;
4994
4995 ~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)
; }
4996 };
4997
4998 enum class State {
4999 // Newly created on the PBackground thread. Will proceed immediately or be
5000 // added to the maintenance queue. The next step is either
5001 // DirectoryOpenPending if IndexedDatabaseManager is running, or
5002 // CreateIndexedDatabaseManager if not.
5003 Initial = 0,
5004
5005 // Create IndexedDatabaseManager on the main thread. The next step is either
5006 // Finishing if IndexedDatabaseManager initialization fails, or
5007 // IndexedDatabaseManagerOpen if initialization succeeds.
5008 CreateIndexedDatabaseManager,
5009
5010 // Call OpenDirectory() on the PBackground thread. The next step is
5011 // DirectoryOpenPending.
5012 IndexedDatabaseManagerOpen,
5013
5014 // Waiting for directory open allowed on the PBackground thread. The next
5015 // step is either Finishing if directory lock failed to acquire, or
5016 // DirectoryWorkOpen if directory lock is acquired.
5017 DirectoryOpenPending,
5018
5019 // Waiting to do/doing work on the QuotaManager IO thread. The next step is
5020 // BeginDatabaseMaintenance.
5021 DirectoryWorkOpen,
5022
5023 // Dispatching a runnable for each database on the PBackground thread. The
5024 // next state is either WaitingForDatabaseMaintenancesToComplete if at least
5025 // one runnable has been dispatched, or Finishing otherwise.
5026 BeginDatabaseMaintenance,
5027
5028 // Waiting for DatabaseMaintenance to finish on maintenance thread pool.
5029 // The next state is Finishing if the last runnable has finished.
5030 WaitingForDatabaseMaintenancesToComplete,
5031
5032 // Waiting to finish/finishing on the PBackground thread. The next step is
5033 // Completed.
5034 Finishing,
5035
5036 // All done.
5037 Complete
5038 };
5039
5040 RefPtr<QuotaClient> mQuotaClient;
5041 MozPromiseHolder<BoolPromise> mPromiseHolder;
5042 PRTime mStartTime;
5043 RefPtr<UniversalDirectoryLock> mPendingDirectoryLock;
5044 // The directory lock is normally dropped by BeginDatabaseMaintenance, but if
5045 // something fails (in any method), the Finish method will do the cleanup.
5046 RefPtr<UniversalDirectoryLock> mDirectoryLock;
5047 nsTArray<nsCOMPtr<nsIRunnable>> mCompleteCallbacks;
5048 nsTArray<DirectoryInfo> mDirectoryInfos;
5049 nsTHashMap<nsStringHashKey, DatabaseMaintenance*> mDatabaseMaintenances;
5050 nsresult mResultCode;
5051 Atomic<bool> mAborted;
5052 State mState;
5053
5054 public:
5055 explicit Maintenance(QuotaClient* aQuotaClient)
5056 : Runnable("dom::indexedDB::Maintenance"),
5057 mQuotaClient(aQuotaClient),
5058 mStartTime(PR_Now()),
5059 mResultCode(NS_OK),
5060 mAborted(false),
5061 mState(State::Initial) {
5062 AssertIsOnBackgroundThread();
5063 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"
, 5063); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aQuotaClient"
")"); do { *((volatile int*)__null) = 5063; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5064 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"
, 5064); AnnotateMozCrashReason("MOZ_ASSERT" "(" "QuotaClient::GetInstance() == aQuotaClient"
")"); do { *((volatile int*)__null) = 5064; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5065 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"
, 5065); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mStartTime"
")"); do { *((volatile int*)__null) = 5065; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5066 }
5067
5068 nsIEventTarget* BackgroundThread() const {
5069 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"
, 5069); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mQuotaClient"
")"); do { *((volatile int*)__null) = 5069; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5070 return mQuotaClient->BackgroundThread();
5071 }
5072
5073 PRTime StartTime() const { return mStartTime; }
5074
5075 bool IsAborted() const { return mAborted; }
5076
5077 void RunImmediately() {
5078 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"
, 5078); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial"
")"); do { *((volatile int*)__null) = 5078; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5079
5080 Unused << this->Run();
5081 }
5082
5083 RefPtr<BoolPromise> OnResults() {
5084 AssertIsOnBackgroundThread();
5085
5086 return mPromiseHolder.Ensure(__func__);
5087 }
5088
5089 void Abort();
5090
5091 void RegisterDatabaseMaintenance(DatabaseMaintenance* aDatabaseMaintenance);
5092
5093 void UnregisterDatabaseMaintenance(DatabaseMaintenance* aDatabaseMaintenance);
5094
5095 bool HasDatabaseMaintenances() const { return mDatabaseMaintenances.Count(); }
5096
5097 RefPtr<DatabaseMaintenance> GetDatabaseMaintenance(
5098 const nsAString& aDatabasePath) const {
5099 AssertIsOnBackgroundThread();
5100
5101 return mDatabaseMaintenances.Get(aDatabasePath);
5102 }
5103
5104 void WaitForCompletion(nsIRunnable* aCallback) {
5105 AssertIsOnBackgroundThread();
5106 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"
, 5106); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseMaintenances.Count()"
")"); do { *((volatile int*)__null) = 5106; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5107
5108 mCompleteCallbacks.AppendElement(aCallback);
5109 }
5110
5111 void Stringify(nsACString& aResult) const;
5112
5113 private:
5114 ~Maintenance() override {
5115 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"
, 5115); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Complete"
")"); do { *((volatile int*)__null) = 5115; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5116 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"
, 5116); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseMaintenances.Count()"
")"); do { *((volatile int*)__null) = 5116; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5117 }
5118
5119 // Runs on the PBackground thread. Checks if IndexedDatabaseManager is
5120 // running. Calls OpenDirectory() or dispatches to the main thread on which
5121 // CreateIndexedDatabaseManager() is called.
5122 nsresult Start();
5123
5124 // Runs on the main thread. Once IndexedDatabaseManager is created it will
5125 // dispatch to the PBackground thread on which OpenDirectory() is called.
5126 nsresult CreateIndexedDatabaseManager();
5127
5128 // Runs on the PBackground thread. Once QuotaManager has given a lock it will
5129 // call DirectoryOpen().
5130 nsresult OpenDirectory();
5131
5132 // Runs on the PBackground thread. Dispatches to the QuotaManager I/O thread.
5133 nsresult DirectoryOpen();
5134
5135 // Runs on the QuotaManager I/O thread. Once it finds databases it will
5136 // dispatch to the PBackground thread on which BeginDatabaseMaintenance()
5137 // is called.
5138 nsresult DirectoryWork();
5139
5140 // Runs on the PBackground thread. It dispatches a runnable for each database.
5141 nsresult BeginDatabaseMaintenance();
5142
5143 // Runs on the PBackground thread. Called when the maintenance is finished or
5144 // if any of above methods fails.
5145 void Finish();
5146
5147 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
5148
5149 void DirectoryLockAcquired(DirectoryLock* aLock);
5150
5151 void DirectoryLockFailed();
5152};
5153
5154Maintenance::DirectoryInfo::DirectoryInfo(PersistenceType aPersistenceType,
5155 OriginMetadata aOriginMetadata,
5156 nsTArray<nsString>&& aDatabasePaths)
5157 : mOriginMetadata(std::move(aOriginMetadata)),
5158 mDatabasePaths(std::move(aDatabasePaths)),
5159 mPersistenceType(aPersistenceType) {
5160 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"
, 5160); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aPersistenceType != PERSISTENCE_TYPE_INVALID"
")"); do { *((volatile int*)__null) = 5160; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5161 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"
, 5161); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOriginMetadata->mGroup.IsEmpty()"
")"); do { *((volatile int*)__null) = 5161; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5162 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"
, 5162); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOriginMetadata->mOrigin.IsEmpty()"
")"); do { *((volatile int*)__null) = 5162; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5163#ifdef DEBUG1
5164 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"
, 5164); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabasePaths->IsEmpty()"
")"); do { *((volatile int*)__null) = 5164; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5165 for (const nsAString& databasePath : *mDatabasePaths) {
5166 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"
, 5166); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePath.IsEmpty()"
")"); do { *((volatile int*)__null) = 5166; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5167 }
5168#endif
5169
5170 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)
;
5171}
5172
5173class DatabaseMaintenance final : public Runnable {
5174 // The minimum amount of time that has passed since the last vacuum before we
5175 // will attempt to analyze the database for fragmentation.
5176 static const PRTime kMinVacuumAge =
5177 PRTime(PR_USEC_PER_SEC1000000L) * 60 * 60 * 24 * 7;
5178
5179 // If the percent of database pages that are not in contiguous order is higher
5180 // than this percentage we will attempt a vacuum.
5181 static const int32_t kPercentUnorderedThreshold = 30;
5182
5183 // If the percent of file size growth since the last vacuum is higher than
5184 // this percentage we will attempt a vacuum.
5185 static const int32_t kPercentFileSizeGrowthThreshold = 10;
5186
5187 // The number of freelist pages beyond which we will favor an incremental
5188 // vacuum over a full vacuum.
5189 static const int32_t kMaxFreelistThreshold = 5;
5190
5191 // If the percent of unused file bytes in the database exceeds this percentage
5192 // then we will attempt a full vacuum.
5193 static const int32_t kPercentUnusedThreshold = 20;
5194
5195 enum class MaintenanceAction { Nothing = 0, IncrementalVacuum, FullVacuum };
5196
5197 RefPtr<Maintenance> mMaintenance;
5198 // The directory lock is dropped in RunOnOwningThread which serves as a
5199 // cleanup method and is always called.
5200 RefPtr<DirectoryLock> mDirectoryLock;
5201 const OriginMetadata mOriginMetadata;
5202 const nsString mDatabasePath;
5203 int64_t mDirectoryLockId;
5204 nsCOMPtr<nsIRunnable> mCompleteCallback;
5205 const PersistenceType mPersistenceType;
5206 const Maybe<CipherKey> mMaybeKey;
5207 Atomic<bool> mAborted;
5208 DataMutex<nsCOMPtr<mozIStorageConnection>> mSharedStorageConnection;
5209
5210 public:
5211 DatabaseMaintenance(Maintenance* aMaintenance,
5212 RefPtr<DirectoryLock> aDirectoryLock,
5213 PersistenceType aPersistenceType,
5214 const OriginMetadata& aOriginMetadata,
5215 const nsAString& aDatabasePath,
5216 const Maybe<CipherKey>& aMaybeKey)
5217 : Runnable("dom::indexedDB::DatabaseMaintenance"),
5218 mMaintenance(aMaintenance),
5219 mDirectoryLock(std::move(aDirectoryLock)),
5220 mOriginMetadata(aOriginMetadata),
5221 mDatabasePath(aDatabasePath),
5222 mPersistenceType(aPersistenceType),
5223 mMaybeKey{aMaybeKey},
5224 mAborted(false),
5225 mSharedStorageConnection("sharedStorageConnection") {
5226 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"
, 5226); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock"
")"); do { *((volatile int*)__null) = 5226; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5227
5228 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"
, 5228); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock->Id() >= 0"
")"); do { *((volatile int*)__null) = 5228; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5229 mDirectoryLockId = mDirectoryLock->Id();
5230 }
5231
5232 const nsAString& DatabasePath() const { return mDatabasePath; }
5233
5234 void WaitForCompletion(nsIRunnable* aCallback) {
5235 AssertIsOnBackgroundThread();
5236 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"
, 5236); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCompleteCallback"
")"); do { *((volatile int*)__null) = 5236; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5237
5238 mCompleteCallback = aCallback;
5239 }
5240
5241 void Stringify(nsACString& aResult) const;
5242
5243 nsresult Abort();
5244
5245 private:
5246 ~DatabaseMaintenance() override = default;
5247
5248 // Runs on maintenance thread pool. Does maintenance on the database.
5249 void PerformMaintenanceOnDatabase();
5250
5251 // Runs on maintenance thread pool as part of PerformMaintenanceOnDatabase.
5252 nsresult CheckIntegrity(mozIStorageConnection& aConnection, bool* aOk);
5253
5254 // Runs on maintenance thread pool as part of PerformMaintenanceOnDatabase.
5255 nsresult DetermineMaintenanceAction(mozIStorageConnection& aConnection,
5256 nsIFile* aDatabaseFile,
5257 MaintenanceAction* aMaintenanceAction);
5258
5259 // Runs on maintenance thread pool as part of PerformMaintenanceOnDatabase.
5260 void IncrementalVacuum(mozIStorageConnection& aConnection);
5261
5262 // Runs on maintenance thread pool as part of PerformMaintenanceOnDatabase.
5263 void FullVacuum(mozIStorageConnection& aConnection, nsIFile* aDatabaseFile);
5264
5265 // Runs on the PBackground thread. It dispatches a complete callback and
5266 // unregisters from Maintenance.
5267 void RunOnOwningThread();
5268
5269 // Runs on maintenance thread pool. Once it performs database maintenance
5270 // it will dispatch to the PBackground thread on which RunOnOwningThread()
5271 // is called.
5272 void RunOnConnectionThread();
5273
5274 // TODO: Could QuotaClient::IsShuttingDownOnNonBackgroundThread() call
5275 // be part of mMaintenance::IsAborted() ?
5276 inline bool IsAborted() const {
5277 return mMaintenance->IsAborted() || mAborted ||
5278 NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread
(), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5278)
;
5279 }
5280
5281 NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override;
5282};
5283
5284#ifdef DEBUG1
5285
5286class DEBUGThreadSlower final : public nsIThreadObserver {
5287 public:
5288 DEBUGThreadSlower() {
5289 AssertIsOnBackgroundThread();
5290 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"
, 5290); AnnotateMozCrashReason("MOZ_ASSERT" "(" "kDEBUGThreadSleepMS"
")"); do { *((volatile int*)__null) = 5290; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5291 }
5292
5293 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:
5294
5295 private:
5296 ~DEBUGThreadSlower() { AssertIsOnBackgroundThread(); }
5297
5298 NS_DECL_NSITHREADOBSERVERvirtual nsresult OnDispatchedEvent(void) override; virtual nsresult
OnProcessNextEvent(nsIThreadInternal *thread, bool mayWait) override
; virtual nsresult AfterProcessNextEvent(nsIThreadInternal *thread
, bool eventWasProcessed) override;
5299};
5300
5301#endif // DEBUG
5302
5303/*******************************************************************************
5304 * Helper classes
5305 ******************************************************************************/
5306
5307// XXX Get rid of FileHelper and move the functions into DatabaseFileManager.
5308// Then, DatabaseFileManager::Get(Journal)Directory and
5309// DatabaseFileManager::GetFileForId might eventually be made private.
5310class MOZ_STACK_CLASS FileHelper final {
5311 const SafeRefPtr<DatabaseFileManager> mFileManager;
5312
5313 LazyInitializedOnce<const NotNull<nsCOMPtr<nsIFile>>> mFileDirectory;
5314 LazyInitializedOnce<const NotNull<nsCOMPtr<nsIFile>>> mJournalDirectory;
5315
5316 class ReadCallback;
5317 LazyInitializedOnce<const NotNull<RefPtr<ReadCallback>>> mReadCallback;
5318
5319 public:
5320 explicit FileHelper(SafeRefPtr<DatabaseFileManager>&& aFileManager)
5321 : mFileManager(std::move(aFileManager)) {
5322 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"
, 5322); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileManager"
")"); do { *((volatile int*)__null) = 5322; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5323 }
5324
5325 nsresult Init();
5326
5327 [[nodiscard]] nsCOMPtr<nsIFile> GetFile(const DatabaseFileInfo& aFileInfo);
5328
5329 [[nodiscard]] nsCOMPtr<nsIFile> GetJournalFile(
5330 const DatabaseFileInfo& aFileInfo);
5331
5332 nsresult CreateFileFromStream(nsIFile& aFile, nsIFile& aJournalFile,
5333 nsIInputStream& aInputStream, bool aCompress,
5334 const Maybe<CipherKey>& aMaybeKey);
5335
5336 private:
5337 nsresult SyncCopy(nsIInputStream& aInputStream,
5338 nsIOutputStream& aOutputStream, char* aBuffer,
5339 uint32_t aBufferSize);
5340
5341 nsresult SyncRead(nsIInputStream& aInputStream, char* aBuffer,
5342 uint32_t aBufferSize, uint32_t* aRead);
5343};
5344
5345/*******************************************************************************
5346 * Helper Functions
5347 ******************************************************************************/
5348
5349bool GetFilenameBase(const nsAString& aFilename, const nsAString& aSuffix,
5350 nsDependentSubstring& aFilenameBase) {
5351 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"
, 5351); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aFilename.IsEmpty()"
")"); do { *((volatile int*)__null) = 5351; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5352 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"
, 5352); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFilenameBase.IsEmpty()"
")"); do { *((volatile int*)__null) = 5352; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5353
5354 if (!StringEndsWith(aFilename, aSuffix) ||
5355 aFilename.Length() == aSuffix.Length()) {
5356 return false;
5357 }
5358
5359 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"
, 5359); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFilename.Length() > aSuffix.Length()"
")"); do { *((volatile int*)__null) = 5359; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5360
5361 aFilenameBase.Rebind(aFilename, 0, aFilename.Length() - aSuffix.Length());
5362 return true;
5363}
5364
5365class EncryptedFileBlobImpl final : public FileBlobImpl {
5366 public:
5367 EncryptedFileBlobImpl(const nsCOMPtr<nsIFile>& aNativeFile,
5368 const DatabaseFileInfo::IdType aId,
5369 const CipherKey& aKey)
5370 : FileBlobImpl{aNativeFile}, mKey{aKey} {
5371 SetFileId(aId);
5372 }
5373
5374 uint64_t GetSize(ErrorResult& aRv) override {
5375 nsCOMPtr<nsIInputStream> inputStream;
5376 CreateInputStream(getter_AddRefs(inputStream), aRv);
5377
5378 if (aRv.Failed()) {
5379 return 0;
5380 }
5381
5382 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"
, 5382); AnnotateMozCrashReason("MOZ_ASSERT" "(" "inputStream"
")"); do { *((volatile int*)__null) = 5382; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5383
5384 QM_TRY_RETURN(MOZ_TO_RESULT_INVOKE_MEMBER(inputStream, Available), 0,{auto tryResult848 = (::mozilla::ToResultInvokeMember( (inputStream
), &::mozilla::detail::DerefedType<decltype(inputStream
)>::Available)); if ((__builtin_expect(!!(tryResult848.isErr
()), 0))) { auto tryTempError = tryResult848.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"
, 5385, 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 tryResult848.unwrap();}
5385 [&aRv](const nsresult rv) { aRv = rv; }){auto tryResult848 = (::mozilla::ToResultInvokeMember( (inputStream
), &::mozilla::detail::DerefedType<decltype(inputStream
)>::Available)); if ((__builtin_expect(!!(tryResult848.isErr
()), 0))) { auto tryTempError = tryResult848.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"
, 5385, 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 tryResult848.unwrap();}
;
5386 }
5387
5388 void CreateInputStream(nsIInputStream** aInputStream,
5389 ErrorResult& aRv) const override {
5390 nsCOMPtr<nsIInputStream> baseInputStream;
5391 FileBlobImpl::CreateInputStream(getter_AddRefs(baseInputStream), aRv);
5392 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"
, 5392)
) {
5393 return;
5394 }
5395
5396 *aInputStream =
5397 MakeAndAddRef<DecryptingInputStream<IndexedDBCipherStrategy>>(
5398 WrapNotNull(std::move(baseInputStream)), kEncryptedStreamBlockSize,
5399 mKey)
5400 .take();
5401 }
5402
5403 void GetBlobImplType(nsAString& aBlobImplType) const override {
5404 aBlobImplType = u"EncryptedFileBlobImpl"_ns;
5405 }
5406
5407 already_AddRefed<BlobImpl> CreateSlice(uint64_t aStart, uint64_t aLength,
5408 const nsAString& aContentType,
5409 ErrorResult& aRv) const override {
5410 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"
, 5410); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable."
")"); do { *((volatile int*)__null) = 5410; __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
5411 }
5412
5413 private:
5414 const CipherKey mKey;
5415};
5416
5417RefPtr<BlobImpl> CreateFileBlobImpl(const Database& aDatabase,
5418 const nsCOMPtr<nsIFile>& aNativeFile,
5419 const DatabaseFileInfo::IdType aId) {
5420 if (aDatabase.IsInPrivateBrowsing()) {
5421 nsCString keyId;
5422 keyId.AppendInt(aId);
5423
5424 const auto& key =
5425 aDatabase.GetFileManager().MutableCipherKeyManagerRef().Get(keyId);
5426
5427 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"
, 5427); AnnotateMozCrashReason("MOZ_RELEASE_ASSERT" "(" "key.isSome()"
")"); do { *((volatile int*)__null) = 5427; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5428 return MakeRefPtr<EncryptedFileBlobImpl>(aNativeFile, aId, *key);
5429 }
5430
5431 auto impl = MakeRefPtr<FileBlobImpl>(aNativeFile);
5432 impl->SetFileId(aId);
5433
5434 return impl;
5435}
5436
5437Result<nsTArray<SerializedStructuredCloneFile>, nsresult>
5438SerializeStructuredCloneFiles(const SafeRefPtr<Database>& aDatabase,
5439 const nsTArray<StructuredCloneFileParent>& aFiles,
5440 bool aForPreprocess) {
5441 AssertIsOnBackgroundThread();
5442 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"
, 5442); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabase" ")"
); do { *((volatile int*)__null) = 5442; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5443
5444 if (aFiles.IsEmpty()) {
5445 return nsTArray<SerializedStructuredCloneFile>{};
5446 }
5447
5448 const nsCOMPtr<nsIFile> directory =
5449 aDatabase->GetFileManager().GetCheckedDirectory();
5450 QM_TRY(OkIf(directory), Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR),{auto tryResult849 = (OkIf(directory)); static_assert(std::is_empty_v
<typename decltype(tryResult849)::ok_type>); if ((__builtin_expect
(!!(tryResult849.isErr()), 0))) { auto tryTempError = tryResult849
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(directory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5451, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5451, "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)); }}
5451 IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult849 = (OkIf(directory)); static_assert(std::is_empty_v
<typename decltype(tryResult849)::ok_type>); if ((__builtin_expect
(!!(tryResult849.isErr()), 0))) { auto tryTempError = tryResult849
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(directory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5451, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5451, "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)); }}
;
5452
5453 nsTArray<SerializedStructuredCloneFile> serializedStructuredCloneFiles;
5454 QM_TRY(OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(),{auto tryResult850 = (OkIf(serializedStructuredCloneFiles.SetCapacity
(aFiles.Length(), fallible))); static_assert(std::is_empty_v<
typename decltype(tryResult850)::ok_type>); if ((__builtin_expect
(!!(tryResult850.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult850.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5456, 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)); }}
5455 fallible)),{auto tryResult850 = (OkIf(serializedStructuredCloneFiles.SetCapacity
(aFiles.Length(), fallible))); static_assert(std::is_empty_v<
typename decltype(tryResult850)::ok_type>); if ((__builtin_expect
(!!(tryResult850.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult850.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5456, 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)); }}
5456 Err(NS_ERROR_OUT_OF_MEMORY)){auto tryResult850 = (OkIf(serializedStructuredCloneFiles.SetCapacity
(aFiles.Length(), fallible))); static_assert(std::is_empty_v<
typename decltype(tryResult850)::ok_type>); if ((__builtin_expect
(!!(tryResult850.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult850.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5456, 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)); }}
;
5457
5458 QM_TRY(TransformIfAbortOnErr({auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5459 aFiles, MakeBackInserter(serializedStructuredCloneFiles),{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5460 [aForPreprocess](const auto& file) {{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5461 return !aForPreprocess ||{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5462 file.Type() == StructuredCloneFileBase::eStructuredClone;{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5463 },{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5464 [&directory, &aDatabase, aForPreprocess]({auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5465 const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> {{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5466 const int64_t fileId = file.FileInfo().Id();{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5467 MOZ_ASSERT(fileId > 0);{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5468
5469 const nsCOMPtr<nsIFile> nativeFile ={auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5470 mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId({auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5471 directory, fileId);{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5472 QM_TRY(OkIf(nativeFile), Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR),{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5473 IDB_REPORT_INTERNAL_ERR_LAMBDA);{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5474
5475 switch (file.Type()) {{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5476 case StructuredCloneFileBase::eStructuredClone:{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5477 if (!aForPreprocess) {{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5478 return SerializedStructuredCloneFile{{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5479 null_t(), StructuredCloneFileBase::eStructuredClone};{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5480 }{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5481
5482 [[fallthrough]];{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5483
5484 case StructuredCloneFileBase::eBlob: {{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5485 const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile,{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5486 file.FileInfo().Id());{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5487
5488 IPCBlob ipcBlob;{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5489
5490 // This can only fail if the child has crashed.{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5491 QM_TRY(MOZ_TO_RESULT(IPCBlobUtils::Serialize(impl, ipcBlob)),{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5492 Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR),{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5493 IDB_REPORT_INTERNAL_ERR_LAMBDA);{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5494
5495 aDatabase->MapBlob(ipcBlob, file.FileInfoPtr());{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5496
5497 return SerializedStructuredCloneFile{ipcBlob, file.Type()};{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5498 }{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5499
5500 case StructuredCloneFileBase::eMutableFile:{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5501 case StructuredCloneFileBase::eWasmBytecode:{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5502 case StructuredCloneFileBase::eWasmCompiled: {{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5503 // Set file() to null, support for storing WebAssembly.Modules has{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5504 // been removed in bug 1469395. Support for de-serialization of{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5505 // WebAssembly.Modules modules has been removed in bug 1561876.{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5506 // Support for MutableFile has been removed in bug 1500343. Full{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5507 // removal is tracked in bug 1487479.{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5508
5509 return SerializedStructuredCloneFile{null_t(), file.Type()};{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5510 }{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5511
5512 default:{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5513 MOZ_CRASH("Should never get here!");{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5514 }{auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
5515 })){auto tryResult853 = (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"
, 5467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0"
")"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); const nsCOMPtr
<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager
::GetCheckedFileForId( directory, fileId); {auto tryResult851
= (OkIf(nativeFile)); 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("OkIf(nativeFile)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5473, "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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl
, ipcBlob))); static_assert(std::is_empty_v<typename decltype
(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852
.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(
); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, mozilla::dom::quota::Severity::Error); [](const auto&
) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5493, "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"
, 5513); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); } })); static_assert
(std::is_empty_v<typename decltype(tryResult853)::ok_type>
); if ((__builtin_expect(!!(tryResult853.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\", 5467); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { *((volatile int*)__null) = 5467; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult851 = (OkIf(nativeFile)); 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(\"OkIf(nativeFile)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5473, \"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 tryResult852 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852.isErr()), 0))) { auto tryTempError = tryResult852.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5493, \"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\", 5513); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 5513; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })"
, tryResult853.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5515, mozilla::dom::quota::Severity::Error); return tryResult853
.propagateErr(); }}
;
5516
5517 return std::move(serializedStructuredCloneFiles);
5518}
5519
5520bool IsFileNotFoundError(const nsresult aRv) {
5521 return aRv == NS_ERROR_FILE_NOT_FOUND;
5522}
5523
5524enum struct Idempotency { Yes, No };
5525
5526// Delete a file, decreasing the quota usage as appropriate. If the file no
5527// longer exists but aIdempotency is Idempotency::Yes, success is returned,
5528// although quota usage can't be decreased. (With the assumption being that the
5529// file was already deleted prior to this logic running, and the non-existent
5530// file was no longer tracked by quota because it didn't exist at
5531// initialization time or a previous deletion call updated the usage.)
5532nsresult DeleteFile(nsIFile& aFile, QuotaManager* const aQuotaManager,
5533 const PersistenceType aPersistenceType,
5534 const OriginMetadata& aOriginMetadata,
5535 const Idempotency aIdempotency) {
5536 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"
, 5536); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { *((volatile int*)__null) = 5536; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5537 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"
, 5537); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 5537; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5538
5539 // Callers which pass Idempotency::Yes call this function without checking if
5540 // the file already exists (idempotent usage). QM_OR_ELSE_WARN_IF is not used
5541 // here since we just want to log NS_ERROR_FILE_NOT_FOUND results and not spam
5542 // the reports.
5543 // Theoretically, there should be no QM_OR_ELSE_(WARN|LOG_VERBOSE)_IF when a
5544 // caller passes Idempotency::No, but it's simpler when the predicate just
5545 // always returns false in that case.
5546
5547 const auto isIgnorableError = [&aIdempotency]() -> bool (*)(nsresult) {
5548 if (aIdempotency == Idempotency::Yes) {
5549 return IsFileNotFoundError;
5550 }
5551
5552 return [](const nsresult rv) { return false; };
5553 }();
5554
5555 QM_TRY_INSPECT(auto tryResult855 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult854 = (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"
, 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854
.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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5569, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult854.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"
, 5574); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult854 = (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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854.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\\\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult854.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5569, mozilla::dom::quota::Severity::Error); return tryResult854.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult854.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\", 5574); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult855.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5580, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const auto& fileSize = tryResult855.inspect
();
5556 const auto& fileSize,auto tryResult855 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult854 = (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"
, 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854
.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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5569, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult854.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"
, 5574); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult854 = (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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854.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\\\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult854.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5569, mozilla::dom::quota::Severity::Error); return tryResult854.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult854.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\", 5574); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult855.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5580, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const auto& fileSize = tryResult855.inspect
();
5557 ([aQuotaManager, &aFile,auto tryResult855 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult854 = (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"
, 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854
.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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5569, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult854.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"
, 5574); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult854 = (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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854.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\\\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult854.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5569, mozilla::dom::quota::Severity::Error); return tryResult854.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult854.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\", 5574); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult855.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5580, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const auto& fileSize = tryResult855.inspect
();
5558 isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> {auto tryResult855 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult854 = (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"
, 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854
.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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5569, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult854.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"
, 5574); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult854 = (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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854.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\\\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult854.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5569, mozilla::dom::quota::Severity::Error); return tryResult854.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult854.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\", 5574); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult855.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5580, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const auto& fileSize = tryResult855.inspect
();
5559 if (aQuotaManager) {auto tryResult855 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult854 = (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"
, 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854
.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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5569, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult854.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"
, 5574); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult854 = (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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854.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\\\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult854.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5569, mozilla::dom::quota::Severity::Error); return tryResult854.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult854.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\", 5574); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult855.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5580, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const auto& fileSize = tryResult855.inspect
();
5560 QM_TRY_INSPECT(auto tryResult855 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult854 = (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"
, 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854
.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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5569, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult854.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"
, 5574); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult854 = (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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854.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\\\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult854.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5569, mozilla::dom::quota::Severity::Error); return tryResult854.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult854.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\", 5574); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult855.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5580, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const auto& fileSize = tryResult855.inspect
();
5561 const Maybe<int64_t>& fileSize,auto tryResult855 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult854 = (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"
, 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854
.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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5569, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult854.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"
, 5574); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult854 = (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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854.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\\\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult854.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5569, mozilla::dom::quota::Severity::Error); return tryResult854.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult854.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\", 5574); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult855.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5580, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const auto& fileSize = tryResult855.inspect
();
5562 QM_OR_ELSE_LOG_VERBOSE_IF(auto tryResult855 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult854 = (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"
, 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854
.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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5569, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult854.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"
, 5574); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult854 = (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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854.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\\\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult854.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5569, mozilla::dom::quota::Severity::Error); return tryResult854.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult854.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\", 5574); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult855.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5580, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const auto& fileSize = tryResult855.inspect
();
5563 // Expression.auto tryResult855 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult854 = (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"
, 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854
.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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5569, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult854.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"
, 5574); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult854 = (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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854.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\\\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult854.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5569, mozilla::dom::quota::Severity::Error); return tryResult854.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult854.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\", 5574); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult855.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5580, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const auto& fileSize = tryResult855.inspect
();
5564 MOZ_TO_RESULT_INVOKE_MEMBER(aFile, GetFileSize)auto tryResult855 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult854 = (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"
, 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854
.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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5569, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult854.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"
, 5574); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult854 = (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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854.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\\\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult854.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5569, mozilla::dom::quota::Severity::Error); return tryResult854.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult854.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\", 5574); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult855.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5580, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const auto& fileSize = tryResult855.inspect
();
5565 .map([](const int64_t val) { return Some(val); }),auto tryResult855 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult854 = (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"
, 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854
.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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5569, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult854.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"
, 5574); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult854 = (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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854.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\\\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult854.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5569, mozilla::dom::quota::Severity::Error); return tryResult854.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult854.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\", 5574); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult855.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5580, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const auto& fileSize = tryResult855.inspect
();
5566 // Predicate.auto tryResult855 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult854 = (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"
, 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854
.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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5569, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult854.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"
, 5574); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult854 = (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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854.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\\\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult854.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5569, mozilla::dom::quota::Severity::Error); return tryResult854.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult854.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\", 5574); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult855.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5580, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const auto& fileSize = tryResult855.inspect
();
5567 isIgnorableError,auto tryResult855 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult854 = (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"
, 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854
.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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5569, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult854.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"
, 5574); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult854 = (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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854.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\\\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult854.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5569, mozilla::dom::quota::Severity::Error); return tryResult854.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult854.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\", 5574); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult855.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5580, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const auto& fileSize = tryResult855.inspect
();
5568 // Fallback.auto tryResult855 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult854 = (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"
, 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854
.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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5569, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult854.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"
, 5574); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult854 = (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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854.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\\\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult854.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5569, mozilla::dom::quota::Severity::Error); return tryResult854.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult854.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\", 5574); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult855.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5580, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const auto& fileSize = tryResult855.inspect
();
5569 ErrToDefaultOk<Maybe<int64_t>>));auto tryResult855 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult854 = (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"
, 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854
.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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5569, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult854.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"
, 5574); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult854 = (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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854.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\\\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult854.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5569, mozilla::dom::quota::Severity::Error); return tryResult854.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult854.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\", 5574); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult855.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5580, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const auto& fileSize = tryResult855.inspect
();
5570
5571 // XXX Can we really assert that the file size is not 0 ifauto tryResult855 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult854 = (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"
, 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854
.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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5569, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult854.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"
, 5574); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult854 = (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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854.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\\\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult854.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5569, mozilla::dom::quota::Severity::Error); return tryResult854.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult854.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\", 5574); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult855.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5580, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const auto& fileSize = tryResult855.inspect
();
5572 // it existed? This might be violated by externalauto tryResult855 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult854 = (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"
, 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854
.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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5569, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult854.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"
, 5574); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult854 = (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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854.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\\\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult854.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5569, mozilla::dom::quota::Severity::Error); return tryResult854.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult854.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\", 5574); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult855.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5580, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const auto& fileSize = tryResult855.inspect
();
5573 // influences.auto tryResult855 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult854 = (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"
, 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854
.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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5569, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult854.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"
, 5574); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult854 = (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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854.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\\\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult854.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5569, mozilla::dom::quota::Severity::Error); return tryResult854.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult854.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\", 5574); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult855.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5580, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const auto& fileSize = tryResult855.inspect
();
5574 MOZ_ASSERT(!fileSize || fileSize.value() >= 0);auto tryResult855 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult854 = (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"
, 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854
.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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5569, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult854.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"
, 5574); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult854 = (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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854.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\\\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult854.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5569, mozilla::dom::quota::Severity::Error); return tryResult854.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult854.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\", 5574); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult855.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5580, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const auto& fileSize = tryResult855.inspect
();
5575
5576 return fileSize;auto tryResult855 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult854 = (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"
, 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854
.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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5569, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult854.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"
, 5574); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult854 = (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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854.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\\\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult854.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5569, mozilla::dom::quota::Severity::Error); return tryResult854.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult854.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\", 5574); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult855.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5580, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const auto& fileSize = tryResult855.inspect
();
5577 }auto tryResult855 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult854 = (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"
, 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854
.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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5569, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult854.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"
, 5574); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult854 = (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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854.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\\\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult854.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5569, mozilla::dom::quota::Severity::Error); return tryResult854.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult854.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\", 5574); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult855.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5580, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const auto& fileSize = tryResult855.inspect
();
5578
5579 return Some(int64_t(0));auto tryResult855 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult854 = (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"
, 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854
.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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5569, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult854.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"
, 5574); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult854 = (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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854.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\\\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult854.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5569, mozilla::dom::quota::Severity::Error); return tryResult854.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult854.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\", 5574); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult855.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5580, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const auto& fileSize = tryResult855.inspect
();
5580 }()))auto tryResult855 = (([aQuotaManager, &aFile, isIgnorableError
]() -> Result<Maybe<int64_t>, nsresult> { if (
aQuotaManager) { auto tryResult854 = (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"
, 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854
.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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)"
, tryResult854.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5569, mozilla::dom::quota::Severity::Error); return tryResult854
.propagateErr(); } const Maybe<int64_t>& fileSize =
tryResult854.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"
, 5574); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0"
")"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); return fileSize
; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!(
tryResult855.isErr()), 0))) { mozilla::dom::quota::HandleError
("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult854 = (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\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult854.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\\\", 5569, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult854.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5569, mozilla::dom::quota::Severity::Error); return tryResult854.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult854.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\", 5574); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { *((volatile int*)__null) = 5574; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())"
, tryResult855.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5580, mozilla::dom::quota::Severity::Error); return tryResult855
.propagateErr(); } const auto& fileSize = tryResult855.inspect
();
;
5581
5582 if (!fileSize) {
5583 return NS_OK;
5584 }
5585
5586 QM_TRY_INSPECT(const auto& didExist,auto tryResult856 = (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"
, 5593, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult856
.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\", 5593, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult856.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5593, mozilla::dom::quota::Severity::Error); return tryResult856
.propagateErr(); } const auto& didExist = tryResult856.inspect
();
5587 QM_OR_ELSE_LOG_VERBOSE_IF(auto tryResult856 = (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"
, 5593, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult856
.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\", 5593, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult856.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5593, mozilla::dom::quota::Severity::Error); return tryResult856
.propagateErr(); } const auto& didExist = tryResult856.inspect
();
5588 // Expression.auto tryResult856 = (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"
, 5593, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult856
.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\", 5593, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult856.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5593, mozilla::dom::quota::Severity::Error); return tryResult856
.propagateErr(); } const auto& didExist = tryResult856.inspect
();
5589 MOZ_TO_RESULT(aFile.Remove(false)).map(Some<Ok>),auto tryResult856 = (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"
, 5593, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult856
.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\", 5593, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult856.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5593, mozilla::dom::quota::Severity::Error); return tryResult856
.propagateErr(); } const auto& didExist = tryResult856.inspect
();
5590 // Predicate.auto tryResult856 = (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"
, 5593, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult856
.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\", 5593, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult856.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5593, mozilla::dom::quota::Severity::Error); return tryResult856
.propagateErr(); } const auto& didExist = tryResult856.inspect
();
5591 isIgnorableError,auto tryResult856 = (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"
, 5593, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult856
.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\", 5593, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult856.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5593, mozilla::dom::quota::Severity::Error); return tryResult856
.propagateErr(); } const auto& didExist = tryResult856.inspect
();
5592 // Fallback.auto tryResult856 = (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"
, 5593, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult856
.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\", 5593, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult856.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5593, mozilla::dom::quota::Severity::Error); return tryResult856
.propagateErr(); } const auto& didExist = tryResult856.inspect
();
5593 ErrToDefaultOk<Maybe<Ok>>))auto tryResult856 = (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"
, 5593, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult856
.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\", 5593, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult856.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5593, mozilla::dom::quota::Severity::Error); return tryResult856
.propagateErr(); } const auto& didExist = tryResult856.inspect
();
;
5594
5595 if (!didExist) {
5596 // XXX If we get here, this means that the file still existed when we
5597 // queried its size, but no longer when we tried to remove it. Not sure if
5598 // this should really be silently accepted in idempotent mode.
5599 return NS_OK;
5600 }
5601
5602 if (fileSize.value() > 0) {
5603 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"
, 5603); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aQuotaManager"
")"); do { *((volatile int*)__null) = 5603; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5604
5605 aQuotaManager->DecreaseUsageForClient(
5606 ClientMetadata{aOriginMetadata, Client::IDB}, fileSize.value());
5607 }
5608
5609 return NS_OK;
5610}
5611
5612nsresult DeleteFile(nsIFile& aDirectory, const nsAString& aFilename,
5613 QuotaManager* const aQuotaManager,
5614 const PersistenceType aPersistenceType,
5615 const OriginMetadata& aOriginMetadata,
5616 const Idempotency aIdempotent) {
5617 AssertIsOnIOThread();
5618 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"
, 5618); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aFilename.IsEmpty()"
")"); do { *((volatile int*)__null) = 5618; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5619
5620 QM_TRY_INSPECT(const auto& file, CloneFileAndAppend(aDirectory, aFilename))auto tryResult857 = (CloneFileAndAppend(aDirectory, aFilename
)); if ((__builtin_expect(!!(tryResult857.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(aDirectory, aFilename)"
, tryResult857.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5620, mozilla::dom::quota::Severity::Error); return tryResult857
.propagateErr(); } const auto& file = tryResult857.inspect
();
;
5621
5622 return DeleteFile(*file, aQuotaManager, aPersistenceType, aOriginMetadata,
5623 aIdempotent);
5624}
5625
5626// Delete files in a directory that you think exists. If the directory doesn't
5627// exist, an error will not be returned, but warning telemetry will be
5628// generated! So only call this on directories that you know exist (idempotent
5629// usage, but it's not recommended).
5630nsresult DeleteFilesNoQuota(nsIFile& aFile) {
5631 AssertIsOnIOThread();
5632
5633 QM_TRY_INSPECT(const auto& didExist,auto tryResult858 = (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"
, 5640, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult858
.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\", 5640, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult858.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5640, mozilla::dom::quota::Severity::Error); return tryResult858
.propagateErr(); } const auto& didExist = tryResult858.inspect
();
5634 QM_OR_ELSE_WARN_IF(auto tryResult858 = (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"
, 5640, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult858
.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\", 5640, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult858.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5640, mozilla::dom::quota::Severity::Error); return tryResult858
.propagateErr(); } const auto& didExist = tryResult858.inspect
();
5635 // Expression.auto tryResult858 = (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"
, 5640, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult858
.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\", 5640, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult858.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5640, mozilla::dom::quota::Severity::Error); return tryResult858
.propagateErr(); } const auto& didExist = tryResult858.inspect
();
5636 MOZ_TO_RESULT(aFile.Remove(true)).map(Some<Ok>),auto tryResult858 = (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"
, 5640, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult858
.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\", 5640, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult858.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5640, mozilla::dom::quota::Severity::Error); return tryResult858
.propagateErr(); } const auto& didExist = tryResult858.inspect
();
5637 // Predicate.auto tryResult858 = (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"
, 5640, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult858
.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\", 5640, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult858.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5640, mozilla::dom::quota::Severity::Error); return tryResult858
.propagateErr(); } const auto& didExist = tryResult858.inspect
();
5638 IsFileNotFoundError,auto tryResult858 = (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"
, 5640, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult858
.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\", 5640, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult858.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5640, mozilla::dom::quota::Severity::Error); return tryResult858
.propagateErr(); } const auto& didExist = tryResult858.inspect
();
5639 // Fallback.auto tryResult858 = (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"
, 5640, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult858
.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\", 5640, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult858.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5640, mozilla::dom::quota::Severity::Error); return tryResult858
.propagateErr(); } const auto& didExist = tryResult858.inspect
();
5640 ErrToDefaultOk<Maybe<Ok>>))auto tryResult858 = (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"
, 5640, res ? mozilla::dom::quota::Severity::Warning : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult858
.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\", 5640, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)"
, tryResult858.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5640, mozilla::dom::quota::Severity::Error); return tryResult858
.propagateErr(); } const auto& didExist = tryResult858.inspect
();
;
5641
5642 Unused << didExist;
5643
5644 return NS_OK;
5645}
5646
5647nsresult DeleteFilesNoQuota(nsIFile* aDirectory, const nsAString& aFilename) {
5648 AssertIsOnIOThread();
5649 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"
, 5649); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory"
")"); do { *((volatile int*)__null) = 5649; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5650 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"
, 5650); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aFilename.IsEmpty()"
")"); do { *((volatile int*)__null) = 5650; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5651
5652 // The current using function hasn't initialized the origin, so in here we
5653 // don't update the size of origin. Adding this assertion for preventing from
5654 // misusing.
5655 DebugOnly<QuotaManager*> quotaManager = QuotaManager::Get();
5656 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"
, 5656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!quotaManager->IsTemporaryStorageInitializedInternal()"
")"); do { *((volatile int*)__null) = 5656; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5657
5658 QM_TRY_INSPECT(const auto& file, CloneFileAndAppend(*aDirectory, aFilename))auto tryResult859 = (CloneFileAndAppend(*aDirectory, aFilename
)); if ((__builtin_expect(!!(tryResult859.isErr()), 0))) { mozilla
::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, aFilename)"
, tryResult859.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5658, mozilla::dom::quota::Severity::Error); return tryResult859
.propagateErr(); } const auto& file = tryResult859.inspect
();
;
5659
5660 QM_TRY(MOZ_TO_RESULT(DeleteFilesNoQuota(*file))){auto tryResult860 = (ToResult(DeleteFilesNoQuota(*file))); static_assert
(std::is_empty_v<typename decltype(tryResult860)::ok_type>
); if ((__builtin_expect(!!(tryResult860.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(*file))"
, tryResult860.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5660, mozilla::dom::quota::Severity::Error); return tryResult860
.propagateErr(); }}
;
5661
5662 return NS_OK;
5663}
5664
5665// CreateMarkerFile and RemoveMarkerFile are a pair of functions to indicate
5666// whether having removed all the files successfully. The marker file should
5667// be checked before executing the next operation or initialization.
5668Result<nsCOMPtr<nsIFile>, nsresult> CreateMarkerFile(
5669 nsIFile& aBaseDirectory, const nsAString& aDatabaseNameBase) {
5670 AssertIsOnIOThread();
5671 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"
, 5671); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseNameBase.IsEmpty()"
")"); do { *((volatile int*)__null) = 5671; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5672
5673 QM_TRY_INSPECT(auto tryResult861 = (CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix
+ aDatabaseNameBase)); if ((__builtin_expect(!!(tryResult861
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix + aDatabaseNameBase)"
, tryResult861.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5676, mozilla::dom::quota::Severity::Error); return tryResult861
.propagateErr(); } const auto& markerFile = tryResult861.
inspect();
5674 const auto& markerFile,auto tryResult861 = (CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix
+ aDatabaseNameBase)); if ((__builtin_expect(!!(tryResult861
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix + aDatabaseNameBase)"
, tryResult861.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5676, mozilla::dom::quota::Severity::Error); return tryResult861
.propagateErr(); } const auto& markerFile = tryResult861.
inspect();
5675 CloneFileAndAppend(aBaseDirectory,auto tryResult861 = (CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix
+ aDatabaseNameBase)); if ((__builtin_expect(!!(tryResult861
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix + aDatabaseNameBase)"
, tryResult861.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5676, mozilla::dom::quota::Severity::Error); return tryResult861
.propagateErr(); } const auto& markerFile = tryResult861.
inspect();
5676 kIdbDeletionMarkerFilePrefix + aDatabaseNameBase))auto tryResult861 = (CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix
+ aDatabaseNameBase)); if ((__builtin_expect(!!(tryResult861
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix + aDatabaseNameBase)"
, tryResult861.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5676, mozilla::dom::quota::Severity::Error); return tryResult861
.propagateErr(); } const auto& markerFile = tryResult861.
inspect();
;
5677
5678 // Callers call this function without checking if the file already exists
5679 // (idempotent usage). QM_OR_ELSE_WARN_IF is not used here since we just want
5680 // to log NS_ERROR_FILE_ALREADY_EXISTS result and not spam the reports.
5681 //
5682 // TODO: In theory if this file exists, then RemoveDatabaseFilesAndDirectory
5683 // should have cleaned it up, but obviously we can crash and not clean it up,
5684 // which is the whole point of the marker file. In that case, we'll realize
5685 // the marker file exists in OpenDatabaseOp::DoDatabaseWork or
5686 // GetUsageForOriginInternal and resume the removal by calling
5687 // RemoveDatabaseFilesAndDirectory again, but we will also try to create the
5688 // marker file again, so if we see this marker file, it is part
5689 // of our standard operating procedure to redundantly try and create the
5690 // marker here. We currently treat this as idempotent usage, but we could
5691 // add an additional argument to RemoveDatabaseFilesAndDirectory which would
5692 // indicate that we are resuming an unfinished removal, so the marker already
5693 // exists and doesn't have to be created, and change
5694 // QM_OR_ELSE_LOG_VERBOSE_IF to QM_OR_ELSE_WARN_IF in the end.
5695 QM_TRY(QM_OR_ELSE_LOG_VERBOSE_IF({auto tryResult862 = (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"
, 5701, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult862)::ok_type>); if ((__builtin_expect(!!(tryResult862
.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\", 5701, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult862.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5701, mozilla::dom::quota::Severity::Error); return tryResult862
.propagateErr(); }}
5696 // Expression.{auto tryResult862 = (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"
, 5701, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult862)::ok_type>); if ((__builtin_expect(!!(tryResult862
.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\", 5701, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult862.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5701, mozilla::dom::quota::Severity::Error); return tryResult862
.propagateErr(); }}
5697 MOZ_TO_RESULT(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644)),{auto tryResult862 = (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"
, 5701, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult862)::ok_type>); if ((__builtin_expect(!!(tryResult862
.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\", 5701, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult862.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5701, mozilla::dom::quota::Severity::Error); return tryResult862
.propagateErr(); }}
5698 // Predicate.{auto tryResult862 = (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"
, 5701, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult862)::ok_type>); if ((__builtin_expect(!!(tryResult862
.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\", 5701, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult862.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5701, mozilla::dom::quota::Severity::Error); return tryResult862
.propagateErr(); }}
5699 IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS>,{auto tryResult862 = (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"
, 5701, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult862)::ok_type>); if ((__builtin_expect(!!(tryResult862
.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\", 5701, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult862.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5701, mozilla::dom::quota::Severity::Error); return tryResult862
.propagateErr(); }}
5700 // Fallback.{auto tryResult862 = (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"
, 5701, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult862)::ok_type>); if ((__builtin_expect(!!(tryResult862
.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\", 5701, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult862.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5701, mozilla::dom::quota::Severity::Error); return tryResult862
.propagateErr(); }}
5701 ErrToDefaultOk<>)){auto tryResult862 = (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"
, 5701, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult862)::ok_type>); if ((__builtin_expect(!!(tryResult862
.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\", 5701, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult862.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5701, mozilla::dom::quota::Severity::Error); return tryResult862
.propagateErr(); }}
;
5702
5703 return markerFile;
5704}
5705
5706nsresult RemoveMarkerFile(nsIFile* aMarkerFile) {
5707 AssertIsOnIOThread();
5708 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"
, 5708); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMarkerFile"
")"); do { *((volatile int*)__null) = 5708; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5709
5710 DebugOnly<bool> exists;
5711 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"
, 5711); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(aMarkerFile->Exists(&exists))), 1)))"
")"); do { *((volatile int*)__null) = 5711; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5712 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"
, 5712); AnnotateMozCrashReason("MOZ_ASSERT" "(" "exists" ")"
); do { *((volatile int*)__null) = 5712; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5713
5714 QM_TRY(MOZ_TO_RESULT(aMarkerFile->Remove(false))){auto tryResult863 = (ToResult(aMarkerFile->Remove(false))
); static_assert(std::is_empty_v<typename decltype(tryResult863
)::ok_type>); if ((__builtin_expect(!!(tryResult863.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(aMarkerFile->Remove(false))"
, tryResult863.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5714, mozilla::dom::quota::Severity::Error); return tryResult863
.propagateErr(); }}
;
5715
5716 return NS_OK;
5717}
5718
5719Result<Ok, nsresult> DeleteFileManagerDirectory(
5720 nsIFile& aFileManagerDirectory, QuotaManager* aQuotaManager,
5721 const PersistenceType aPersistenceType,
5722 const OriginMetadata& aOriginMetadata) {
5723 // XXX In theory, deleting can continue for other files in case of a failure,
5724 // leaving only those files behind that cause the problem actually. However,
5725 // the current architecture doesn't allow having more databases (for the same
5726 // name) on disk, so trying to delete as much as possible won't help much
5727 // because we need to delete entire .files directory in the end anyway.
5728 QM_TRY(DatabaseFileManager::TraverseFiles({auto tryResult868 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5735, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5741, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5749, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5754, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult868
)::ok_type>); if ((__builtin_expect(!!(tryResult868.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5735, mozilla::dom::quota::Severity::Error); } return tryResult864;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5741, mozilla::dom::quota::Severity::Error); } return tryResult865;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5749, mozilla::dom::quota::Severity::Error); } return tryResult866;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult867.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5754, mozilla::dom::quota::Severity::Error); } return tryResult867;}; })"
, tryResult868.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5755, mozilla::dom::quota::Severity::Error); return tryResult868
.propagateErr(); }}
5729 aFileManagerDirectory,{auto tryResult868 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5735, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5741, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5749, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5754, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult868
)::ok_type>); if ((__builtin_expect(!!(tryResult868.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5735, mozilla::dom::quota::Severity::Error); } return tryResult864;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5741, mozilla::dom::quota::Severity::Error); } return tryResult865;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5749, mozilla::dom::quota::Severity::Error); } return tryResult866;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult867.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5754, mozilla::dom::quota::Severity::Error); } return tryResult867;}; })"
, tryResult868.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5755, mozilla::dom::quota::Severity::Error); return tryResult868
.propagateErr(); }}
5730 // KnownDirEntryOp{auto tryResult868 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5735, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5741, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5749, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5754, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult868
)::ok_type>); if ((__builtin_expect(!!(tryResult868.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5735, mozilla::dom::quota::Severity::Error); } return tryResult864;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5741, mozilla::dom::quota::Severity::Error); } return tryResult865;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5749, mozilla::dom::quota::Severity::Error); } return tryResult866;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult867.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5754, mozilla::dom::quota::Severity::Error); } return tryResult867;}; })"
, tryResult868.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5755, mozilla::dom::quota::Severity::Error); return tryResult868
.propagateErr(); }}
5731 [&aQuotaManager, aPersistenceType, &aOriginMetadata]({auto tryResult868 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5735, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5741, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5749, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5754, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult868
)::ok_type>); if ((__builtin_expect(!!(tryResult868.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5735, mozilla::dom::quota::Severity::Error); } return tryResult864;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5741, mozilla::dom::quota::Severity::Error); } return tryResult865;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5749, mozilla::dom::quota::Severity::Error); } return tryResult866;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult867.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5754, mozilla::dom::quota::Severity::Error); } return tryResult867;}; })"
, tryResult868.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5755, mozilla::dom::quota::Severity::Error); return tryResult868
.propagateErr(); }}
5732 nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> {{auto tryResult868 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5735, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5741, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5749, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5754, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult868
)::ok_type>); if ((__builtin_expect(!!(tryResult868.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5735, mozilla::dom::quota::Severity::Error); } return tryResult864;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5741, mozilla::dom::quota::Severity::Error); } return tryResult865;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5749, mozilla::dom::quota::Severity::Error); } return tryResult866;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult867.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5754, mozilla::dom::quota::Severity::Error); } return tryResult867;}; })"
, tryResult868.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5755, mozilla::dom::quota::Severity::Error); return tryResult868
.propagateErr(); }}
5733 if (isDirectory) {{auto tryResult868 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5735, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5741, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5749, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5754, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult868
)::ok_type>); if ((__builtin_expect(!!(tryResult868.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5735, mozilla::dom::quota::Severity::Error); } return tryResult864;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5741, mozilla::dom::quota::Severity::Error); } return tryResult865;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5749, mozilla::dom::quota::Severity::Error); } return tryResult866;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult867.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5754, mozilla::dom::quota::Severity::Error); } return tryResult867;}; })"
, tryResult868.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5755, mozilla::dom::quota::Severity::Error); return tryResult868
.propagateErr(); }}
5734 // The journal directory doesn't count towards quota.{auto tryResult868 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5735, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5741, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5749, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5754, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult868
)::ok_type>); if ((__builtin_expect(!!(tryResult868.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5735, mozilla::dom::quota::Severity::Error); } return tryResult864;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5741, mozilla::dom::quota::Severity::Error); } return tryResult865;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5749, mozilla::dom::quota::Severity::Error); } return tryResult866;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult867.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5754, mozilla::dom::quota::Severity::Error); } return tryResult867;}; })"
, tryResult868.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5755, mozilla::dom::quota::Severity::Error); return tryResult868
.propagateErr(); }}
5735 QM_TRY_RETURN(MOZ_TO_RESULT(DeleteFilesNoQuota(file)));{auto tryResult868 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5735, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5741, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5749, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5754, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult868
)::ok_type>); if ((__builtin_expect(!!(tryResult868.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5735, mozilla::dom::quota::Severity::Error); } return tryResult864;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5741, mozilla::dom::quota::Severity::Error); } return tryResult865;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5749, mozilla::dom::quota::Severity::Error); } return tryResult866;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult867.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5754, mozilla::dom::quota::Severity::Error); } return tryResult867;}; })"
, tryResult868.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5755, mozilla::dom::quota::Severity::Error); return tryResult868
.propagateErr(); }}
5736 }{auto tryResult868 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5735, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5741, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5749, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5754, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult868
)::ok_type>); if ((__builtin_expect(!!(tryResult868.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5735, mozilla::dom::quota::Severity::Error); } return tryResult864;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5741, mozilla::dom::quota::Severity::Error); } return tryResult865;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5749, mozilla::dom::quota::Severity::Error); } return tryResult866;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult867.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5754, mozilla::dom::quota::Severity::Error); } return tryResult867;}; })"
, tryResult868.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5755, mozilla::dom::quota::Severity::Error); return tryResult868
.propagateErr(); }}
5737
5738 // Stored files do count towards quota.{auto tryResult868 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5735, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5741, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5749, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5754, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult868
)::ok_type>); if ((__builtin_expect(!!(tryResult868.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5735, mozilla::dom::quota::Severity::Error); } return tryResult864;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5741, mozilla::dom::quota::Severity::Error); } return tryResult865;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5749, mozilla::dom::quota::Severity::Error); } return tryResult866;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult867.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5754, mozilla::dom::quota::Severity::Error); } return tryResult867;}; })"
, tryResult868.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5755, mozilla::dom::quota::Severity::Error); return tryResult868
.propagateErr(); }}
5739 QM_TRY_RETURN({auto tryResult868 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5735, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5741, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5749, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5754, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult868
)::ok_type>); if ((__builtin_expect(!!(tryResult868.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5735, mozilla::dom::quota::Severity::Error); } return tryResult864;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5741, mozilla::dom::quota::Severity::Error); } return tryResult865;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5749, mozilla::dom::quota::Severity::Error); } return tryResult866;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult867.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5754, mozilla::dom::quota::Severity::Error); } return tryResult867;}; })"
, tryResult868.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5755, mozilla::dom::quota::Severity::Error); return tryResult868
.propagateErr(); }}
5740 MOZ_TO_RESULT(DeleteFile(file, aQuotaManager, aPersistenceType,{auto tryResult868 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5735, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5741, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5749, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5754, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult868
)::ok_type>); if ((__builtin_expect(!!(tryResult868.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5735, mozilla::dom::quota::Severity::Error); } return tryResult864;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5741, mozilla::dom::quota::Severity::Error); } return tryResult865;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5749, mozilla::dom::quota::Severity::Error); } return tryResult866;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult867.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5754, mozilla::dom::quota::Severity::Error); } return tryResult867;}; })"
, tryResult868.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5755, mozilla::dom::quota::Severity::Error); return tryResult868
.propagateErr(); }}
5741 aOriginMetadata, Idempotency::Yes)));{auto tryResult868 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5735, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5741, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5749, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5754, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult868
)::ok_type>); if ((__builtin_expect(!!(tryResult868.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5735, mozilla::dom::quota::Severity::Error); } return tryResult864;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5741, mozilla::dom::quota::Severity::Error); } return tryResult865;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5749, mozilla::dom::quota::Severity::Error); } return tryResult866;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult867.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5754, mozilla::dom::quota::Severity::Error); } return tryResult867;}; })"
, tryResult868.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5755, mozilla::dom::quota::Severity::Error); return tryResult868
.propagateErr(); }}
5742 },{auto tryResult868 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5735, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5741, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5749, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5754, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult868
)::ok_type>); if ((__builtin_expect(!!(tryResult868.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5735, mozilla::dom::quota::Severity::Error); } return tryResult864;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5741, mozilla::dom::quota::Severity::Error); } return tryResult865;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5749, mozilla::dom::quota::Severity::Error); } return tryResult866;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult867.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5754, mozilla::dom::quota::Severity::Error); } return tryResult867;}; })"
, tryResult868.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5755, mozilla::dom::quota::Severity::Error); return tryResult868
.propagateErr(); }}
5743 // UnknownDirEntryOp{auto tryResult868 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5735, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5741, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5749, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5754, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult868
)::ok_type>); if ((__builtin_expect(!!(tryResult868.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5735, mozilla::dom::quota::Severity::Error); } return tryResult864;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5741, mozilla::dom::quota::Severity::Error); } return tryResult865;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5749, mozilla::dom::quota::Severity::Error); } return tryResult866;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult867.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5754, mozilla::dom::quota::Severity::Error); } return tryResult867;}; })"
, tryResult868.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5755, mozilla::dom::quota::Severity::Error); return tryResult868
.propagateErr(); }}
5744 [aPersistenceType, &aOriginMetadata]({auto tryResult868 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5735, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5741, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5749, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5754, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult868
)::ok_type>); if ((__builtin_expect(!!(tryResult868.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5735, mozilla::dom::quota::Severity::Error); } return tryResult864;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5741, mozilla::dom::quota::Severity::Error); } return tryResult865;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5749, mozilla::dom::quota::Severity::Error); } return tryResult866;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult867.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5754, mozilla::dom::quota::Severity::Error); } return tryResult867;}; })"
, tryResult868.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5755, mozilla::dom::quota::Severity::Error); return tryResult868
.propagateErr(); }}
5745 nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> {{auto tryResult868 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5735, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5741, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5749, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5754, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult868
)::ok_type>); if ((__builtin_expect(!!(tryResult868.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5735, mozilla::dom::quota::Severity::Error); } return tryResult864;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5741, mozilla::dom::quota::Severity::Error); } return tryResult865;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5749, mozilla::dom::quota::Severity::Error); } return tryResult866;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult867.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5754, mozilla::dom::quota::Severity::Error); } return tryResult867;}; })"
, tryResult868.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5755, mozilla::dom::quota::Severity::Error); return tryResult868
.propagateErr(); }}
5746 // Unknown files and directories don't count towards quota.{auto tryResult868 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5735, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5741, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5749, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5754, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult868
)::ok_type>); if ((__builtin_expect(!!(tryResult868.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5735, mozilla::dom::quota::Severity::Error); } return tryResult864;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5741, mozilla::dom::quota::Severity::Error); } return tryResult865;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5749, mozilla::dom::quota::Severity::Error); } return tryResult866;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult867.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5754, mozilla::dom::quota::Severity::Error); } return tryResult867;}; })"
, tryResult868.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5755, mozilla::dom::quota::Severity::Error); return tryResult868
.propagateErr(); }}
5747
5748 if (isDirectory) {{auto tryResult868 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5735, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5741, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5749, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5754, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult868
)::ok_type>); if ((__builtin_expect(!!(tryResult868.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5735, mozilla::dom::quota::Severity::Error); } return tryResult864;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5741, mozilla::dom::quota::Severity::Error); } return tryResult865;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5749, mozilla::dom::quota::Severity::Error); } return tryResult866;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult867.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5754, mozilla::dom::quota::Severity::Error); } return tryResult867;}; })"
, tryResult868.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5755, mozilla::dom::quota::Severity::Error); return tryResult868
.propagateErr(); }}
5749 QM_TRY_RETURN(MOZ_TO_RESULT(DeleteFilesNoQuota(file)));{auto tryResult868 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5735, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5741, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5749, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5754, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult868
)::ok_type>); if ((__builtin_expect(!!(tryResult868.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5735, mozilla::dom::quota::Severity::Error); } return tryResult864;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5741, mozilla::dom::quota::Severity::Error); } return tryResult865;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5749, mozilla::dom::quota::Severity::Error); } return tryResult866;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult867.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5754, mozilla::dom::quota::Severity::Error); } return tryResult867;}; })"
, tryResult868.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5755, mozilla::dom::quota::Severity::Error); return tryResult868
.propagateErr(); }}
5750 }{auto tryResult868 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5735, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5741, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5749, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5754, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult868
)::ok_type>); if ((__builtin_expect(!!(tryResult868.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5735, mozilla::dom::quota::Severity::Error); } return tryResult864;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5741, mozilla::dom::quota::Severity::Error); } return tryResult865;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5749, mozilla::dom::quota::Severity::Error); } return tryResult866;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult867.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5754, mozilla::dom::quota::Severity::Error); } return tryResult867;}; })"
, tryResult868.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5755, mozilla::dom::quota::Severity::Error); return tryResult868
.propagateErr(); }}
5751
5752 QM_TRY_RETURN(MOZ_TO_RESULT({auto tryResult868 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5735, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5741, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5749, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5754, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult868
)::ok_type>); if ((__builtin_expect(!!(tryResult868.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5735, mozilla::dom::quota::Severity::Error); } return tryResult864;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5741, mozilla::dom::quota::Severity::Error); } return tryResult865;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5749, mozilla::dom::quota::Severity::Error); } return tryResult866;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult867.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5754, mozilla::dom::quota::Severity::Error); } return tryResult867;}; })"
, tryResult868.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5755, mozilla::dom::quota::Severity::Error); return tryResult868
.propagateErr(); }}
5753 DeleteFile(file, /* doesn't count */ nullptr, aPersistenceType,{auto tryResult868 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5735, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5741, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5749, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5754, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult868
)::ok_type>); if ((__builtin_expect(!!(tryResult868.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5735, mozilla::dom::quota::Severity::Error); } return tryResult864;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5741, mozilla::dom::quota::Severity::Error); } return tryResult865;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5749, mozilla::dom::quota::Severity::Error); } return tryResult866;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult867.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5754, mozilla::dom::quota::Severity::Error); } return tryResult867;}; })"
, tryResult868.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5755, mozilla::dom::quota::Severity::Error); return tryResult868
.propagateErr(); }}
5754 aOriginMetadata, Idempotency::Yes)));{auto tryResult868 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5735, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5741, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5749, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5754, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult868
)::ok_type>); if ((__builtin_expect(!!(tryResult868.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5735, mozilla::dom::quota::Severity::Error); } return tryResult864;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5741, mozilla::dom::quota::Severity::Error); } return tryResult865;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5749, mozilla::dom::quota::Severity::Error); } return tryResult866;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult867.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5754, mozilla::dom::quota::Severity::Error); } return tryResult867;}; })"
, tryResult868.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5755, mozilla::dom::quota::Severity::Error); return tryResult868
.propagateErr(); }}
5755 })){auto tryResult868 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory
, [&aQuotaManager, aPersistenceType, &aOriginMetadata
]( nsIFile& file, const bool isDirectory) -> Result<
Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult
(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult864.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5735, mozilla::dom::quota::Severity::Error); } return tryResult864
;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult865.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5741, mozilla::dom::quota::Severity::Error); } return tryResult865
;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile&
file, const bool isDirectory) -> Result<Ok, nsresult>
{ if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota
(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))
) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))"
, tryResult866.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5749, mozilla::dom::quota::Severity::Error); } return tryResult866
;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr
, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if (
(__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom
::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult867.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5754, mozilla::dom::quota::Severity::Error); } return tryResult867
;}; })); static_assert(std::is_empty_v<typename decltype(tryResult868
)::ok_type>); if ((__builtin_expect(!!(tryResult868.isErr(
)), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult864 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult864.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5735, mozilla::dom::quota::Severity::Error); } return tryResult864;}; } {auto tryResult865 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult865.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult865.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5741, mozilla::dom::quota::Severity::Error); } return tryResult865;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult866 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult866.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult866.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5749, mozilla::dom::quota::Severity::Error); } return tryResult866;}; } {auto tryResult867 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult867.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult867.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 5754, mozilla::dom::quota::Severity::Error); } return tryResult867;}; })"
, tryResult868.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5755, mozilla::dom::quota::Severity::Error); return tryResult868
.propagateErr(); }}
;
5756
5757 QM_TRY_RETURN(MOZ_TO_RESULT(aFileManagerDirectory.Remove(false))){auto tryResult869 = (ToResult(aFileManagerDirectory.Remove(false
))); if ((__builtin_expect(!!(tryResult869.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aFileManagerDirectory.Remove(false))"
, tryResult869.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5757, mozilla::dom::quota::Severity::Error); } return tryResult869
;}
;
5758}
5759
5760// Idempotently delete all the parts of an IndexedDB database including its
5761// SQLite database file, its WAL journal, it's shared-memory file, and its
5762// Blob/Files sub-directory. A marker file is created prior to performing the
5763// deletion so that in the event we crash or fail to successfully delete the
5764// database and its files, we will re-attempt the deletion the next time the
5765// origin is initialized using this method. Because this means the method may be
5766// called on a partially deleted database, this method uses DeleteFile which
5767// succeeds when the file we ask it to delete does not actually exist. The
5768// marker file is removed once deletion has successfully completed.
5769nsresult RemoveDatabaseFilesAndDirectory(nsIFile& aBaseDirectory,
5770 const nsAString& aDatabaseFilenameBase,
5771 QuotaManager* aQuotaManager,
5772 const PersistenceType aPersistenceType,
5773 const OriginMetadata& aOriginMetadata,
5774 const nsAString& aDatabaseName) {
5775 AssertIsOnIOThread();
5776 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"
, 5776); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseFilenameBase.IsEmpty()"
")"); do { *((volatile int*)__null) = 5776; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5777
5778 AUTO_PROFILER_LABEL("RemoveDatabaseFilesAndDirectory", DOM)mozilla::AutoProfilerLabel raiiObject5778( "RemoveDatabaseFilesAndDirectory"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
5779
5780 QM_TRY_UNWRAP(auto markerFile,auto tryResult870 = (CreateMarkerFile(aBaseDirectory, aDatabaseFilenameBase
)); if ((__builtin_expect(!!(tryResult870.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateMarkerFile(aBaseDirectory, aDatabaseFilenameBase)"
, tryResult870.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5781, mozilla::dom::quota::Severity::Error); return tryResult870
.propagateErr(); } auto markerFile = tryResult870.unwrap();
5781 CreateMarkerFile(aBaseDirectory, aDatabaseFilenameBase))auto tryResult870 = (CreateMarkerFile(aBaseDirectory, aDatabaseFilenameBase
)); if ((__builtin_expect(!!(tryResult870.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateMarkerFile(aBaseDirectory, aDatabaseFilenameBase)"
, tryResult870.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5781, mozilla::dom::quota::Severity::Error); return tryResult870
.propagateErr(); } auto markerFile = tryResult870.unwrap();
;
5782
5783 // The database file counts towards quota.
5784 QM_TRY(MOZ_TO_RESULT(DeleteFile({auto tryResult871 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteSuffix, aQuotaManager, 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 + kSQLiteSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult871.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5786, mozilla::dom::quota::Severity::Error); return tryResult871
.propagateErr(); }}
5785 aBaseDirectory, aDatabaseFilenameBase + kSQLiteSuffix, aQuotaManager,{auto tryResult871 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteSuffix, aQuotaManager, 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 + kSQLiteSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult871.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5786, mozilla::dom::quota::Severity::Error); return tryResult871
.propagateErr(); }}
5786 aPersistenceType, aOriginMetadata, Idempotency::Yes))){auto tryResult871 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteSuffix, aQuotaManager, 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 + kSQLiteSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult871.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5786, mozilla::dom::quota::Severity::Error); return tryResult871
.propagateErr(); }}
;
5787
5788 // .sqlite-journal files don't count towards quota.
5789 QM_TRY(MOZ_TO_RESULT(DeleteFile(aBaseDirectory,{auto tryResult872 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteJournalSuffix, 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 + kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult872.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5792, mozilla::dom::quota::Severity::Error); return tryResult872
.propagateErr(); }}
5790 aDatabaseFilenameBase + kSQLiteJournalSuffix,{auto tryResult872 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteJournalSuffix, 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 + kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult872.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5792, mozilla::dom::quota::Severity::Error); return tryResult872
.propagateErr(); }}
5791 /* doesn't count */ nullptr, aPersistenceType,{auto tryResult872 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteJournalSuffix, 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 + kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult872.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5792, mozilla::dom::quota::Severity::Error); return tryResult872
.propagateErr(); }}
5792 aOriginMetadata, Idempotency::Yes))){auto tryResult872 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteJournalSuffix, 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 + kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult872.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5792, mozilla::dom::quota::Severity::Error); return tryResult872
.propagateErr(); }}
;
5793
5794 // .sqlite-shm files don't count towards quota.
5795 QM_TRY(MOZ_TO_RESULT(DeleteFile(aBaseDirectory,{auto tryResult873 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteSHMSuffix, nullptr, 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 + kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult873.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5798, mozilla::dom::quota::Severity::Error); return tryResult873
.propagateErr(); }}
5796 aDatabaseFilenameBase + kSQLiteSHMSuffix,{auto tryResult873 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteSHMSuffix, nullptr, 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 + kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult873.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5798, mozilla::dom::quota::Severity::Error); return tryResult873
.propagateErr(); }}
5797 /* doesn't count */ nullptr, aPersistenceType,{auto tryResult873 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteSHMSuffix, nullptr, 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 + kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult873.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5798, mozilla::dom::quota::Severity::Error); return tryResult873
.propagateErr(); }}
5798 aOriginMetadata, Idempotency::Yes))){auto tryResult873 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteSHMSuffix, nullptr, 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 + kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult873.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5798, mozilla::dom::quota::Severity::Error); return tryResult873
.propagateErr(); }}
;
5799
5800 // .sqlite-wal files do count towards quota.
5801 QM_TRY(MOZ_TO_RESULT(DeleteFile({auto tryResult874 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult874)::ok_type>); if ((__builtin_expect(
!!(tryResult874.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult874.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5803, mozilla::dom::quota::Severity::Error); return tryResult874
.propagateErr(); }}
5802 aBaseDirectory, aDatabaseFilenameBase + kSQLiteWALSuffix, aQuotaManager,{auto tryResult874 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult874)::ok_type>); if ((__builtin_expect(
!!(tryResult874.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult874.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5803, mozilla::dom::quota::Severity::Error); return tryResult874
.propagateErr(); }}
5803 aPersistenceType, aOriginMetadata, Idempotency::Yes))){auto tryResult874 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase
+ kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata
, Idempotency::Yes))); static_assert(std::is_empty_v<typename
decltype(tryResult874)::ok_type>); if ((__builtin_expect(
!!(tryResult874.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))"
, tryResult874.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5803, mozilla::dom::quota::Severity::Error); return tryResult874
.propagateErr(); }}
;
5804
5805 // The files directory counts towards quota.
5806 QM_TRY_INSPECT(auto tryResult875 = (CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult875.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)"
, tryResult875.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5809, mozilla::dom::quota::Severity::Error); return tryResult875
.propagateErr(); } const auto& fmDirectory = tryResult875
.inspect();
5807 const auto& fmDirectory,auto tryResult875 = (CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult875.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)"
, tryResult875.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5809, mozilla::dom::quota::Severity::Error); return tryResult875
.propagateErr(); } const auto& fmDirectory = tryResult875
.inspect();
5808 CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase +auto tryResult875 = (CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult875.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)"
, tryResult875.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5809, mozilla::dom::quota::Severity::Error); return tryResult875
.propagateErr(); } const auto& fmDirectory = tryResult875
.inspect();
5809 kFileManagerDirectoryNameSuffix))auto tryResult875 = (CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult875.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)"
, tryResult875.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5809, mozilla::dom::quota::Severity::Error); return tryResult875
.propagateErr(); } const auto& fmDirectory = tryResult875
.inspect();
;
5810
5811 QM_TRY_INSPECT(const bool& exists,auto tryResult876 = (::mozilla::ToResultInvokeMember( (fmDirectory
), &::mozilla::detail::DerefedType<decltype(fmDirectory
)>::Exists)); if ((__builtin_expect(!!(tryResult876.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (fmDirectory), &::mozilla::detail::DerefedType<decltype(fmDirectory)>::Exists)"
, tryResult876.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5812, mozilla::dom::quota::Severity::Error); return tryResult876
.propagateErr(); } const bool& exists = tryResult876.inspect
();
5812 MOZ_TO_RESULT_INVOKE_MEMBER(fmDirectory, Exists))auto tryResult876 = (::mozilla::ToResultInvokeMember( (fmDirectory
), &::mozilla::detail::DerefedType<decltype(fmDirectory
)>::Exists)); if ((__builtin_expect(!!(tryResult876.isErr(
)), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (fmDirectory), &::mozilla::detail::DerefedType<decltype(fmDirectory)>::Exists)"
, tryResult876.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5812, mozilla::dom::quota::Severity::Error); return tryResult876
.propagateErr(); } const bool& exists = tryResult876.inspect
();
;
5813
5814 if (exists) {
5815 QM_TRY_INSPECT(const bool& isDirectory,auto tryResult877 = (::mozilla::ToResultInvokeMember( (fmDirectory
), &::mozilla::detail::DerefedType<decltype(fmDirectory
)>::IsDirectory)); if ((__builtin_expect(!!(tryResult877.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (fmDirectory), &::mozilla::detail::DerefedType<decltype(fmDirectory)>::IsDirectory)"
, tryResult877.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5816, mozilla::dom::quota::Severity::Error); return tryResult877
.propagateErr(); } const bool& isDirectory = tryResult877
.inspect();
5816 MOZ_TO_RESULT_INVOKE_MEMBER(fmDirectory, IsDirectory))auto tryResult877 = (::mozilla::ToResultInvokeMember( (fmDirectory
), &::mozilla::detail::DerefedType<decltype(fmDirectory
)>::IsDirectory)); if ((__builtin_expect(!!(tryResult877.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (fmDirectory), &::mozilla::detail::DerefedType<decltype(fmDirectory)>::IsDirectory)"
, tryResult877.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5816, mozilla::dom::quota::Severity::Error); return tryResult877
.propagateErr(); } const bool& isDirectory = tryResult877
.inspect();
;
5817
5818 QM_TRY(OkIf(isDirectory), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR){auto tryResult878 = (OkIf(isDirectory)); static_assert(std::
is_empty_v<typename decltype(tryResult878)::ok_type>); if
((__builtin_expect(!!(tryResult878.isErr()), 0))) { auto tryTempError
__attribute__((__unused__)) = tryResult878.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(isDirectory)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5818, 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); }}
;
5819
5820 QM_TRY(DeleteFileManagerDirectory(*fmDirectory, aQuotaManager,{auto tryResult879 = (DeleteFileManagerDirectory(*fmDirectory
, aQuotaManager, aPersistenceType, aOriginMetadata)); static_assert
(std::is_empty_v<typename decltype(tryResult879)::ok_type>
); if ((__builtin_expect(!!(tryResult879.isErr()), 0))) { mozilla
::dom::quota::HandleError("DeleteFileManagerDirectory(*fmDirectory, aQuotaManager, aPersistenceType, aOriginMetadata)"
, tryResult879.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5821, mozilla::dom::quota::Severity::Error); return tryResult879
.propagateErr(); }}
5821 aPersistenceType, aOriginMetadata)){auto tryResult879 = (DeleteFileManagerDirectory(*fmDirectory
, aQuotaManager, aPersistenceType, aOriginMetadata)); static_assert
(std::is_empty_v<typename decltype(tryResult879)::ok_type>
); if ((__builtin_expect(!!(tryResult879.isErr()), 0))) { mozilla
::dom::quota::HandleError("DeleteFileManagerDirectory(*fmDirectory, aQuotaManager, aPersistenceType, aOriginMetadata)"
, tryResult879.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5821, mozilla::dom::quota::Severity::Error); return tryResult879
.propagateErr(); }}
;
5822 }
5823
5824 IndexedDatabaseManager* mgr = IndexedDatabaseManager::Get();
5825 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"
, 5825); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mgr" ")"); do
{ *((volatile int*)__null) = 5825; __attribute__((nomerge)) ::
abort(); } while (false); } } while (false); } } while (false
)
;
5826
5827 if (mgr) {
5828 mgr->InvalidateFileManager(aPersistenceType, aOriginMetadata.mOrigin,
5829 aDatabaseName);
5830 }
5831
5832 QM_TRY(MOZ_TO_RESULT(RemoveMarkerFile(markerFile))){auto tryResult880 = (ToResult(RemoveMarkerFile(markerFile)))
; static_assert(std::is_empty_v<typename decltype(tryResult880
)::ok_type>); if ((__builtin_expect(!!(tryResult880.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveMarkerFile(markerFile))"
, tryResult880.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5832, mozilla::dom::quota::Severity::Error); return tryResult880
.propagateErr(); }}
;
5833
5834 return NS_OK;
5835}
5836
5837/*******************************************************************************
5838 * Globals
5839 ******************************************************************************/
5840
5841// Counts the number of "live" Factory, FactoryOp and Database instances.
5842uint64_t gBusyCount = 0;
5843
5844using FactoryOpArray = nsTArray<CheckedUnsafePtr<FactoryOp>>;
5845
5846StaticAutoPtr<FactoryOpArray> gFactoryOps;
5847
5848// Maps a database id to information about live database actors.
5849using DatabaseActorHashtable =
5850 nsClassHashtable<nsCStringHashKey, DatabaseActorInfo>;
5851
5852StaticAutoPtr<DatabaseActorHashtable> gLiveDatabaseHashtable;
5853
5854StaticRefPtr<ConnectionPool> gConnectionPool;
5855
5856using DatabaseLoggingInfoHashtable =
5857 nsTHashMap<nsIDHashKey, DatabaseLoggingInfo*>;
5858
5859StaticAutoPtr<DatabaseLoggingInfoHashtable> gLoggingInfoHashtable;
5860
5861using TelemetryIdHashtable = nsTHashMap<nsUint32HashKey, uint32_t>;
5862
5863StaticAutoPtr<TelemetryIdHashtable> gTelemetryIdHashtable;
5864
5865// Protects all reads and writes to gTelemetryIdHashtable.
5866StaticAutoPtr<Mutex> gTelemetryIdMutex;
5867
5868// For private browsing, maps the raw database names provided by content to a
5869// replacement UUID in order to avoid exposing the name of the database on
5870// disk or a directly derived value, such as the non-private-browsing
5871// representation. This mapping will be the same for all databases with the
5872// same name across all storage keys/origins for the lifetime of the IDB
5873// QuotaClient. In tests, the QuotaClient may be created and destroyed multiple
5874// times, but for normal browser use the QuotaClient will last until the
5875// browser shuts down. Bug 1831835 will improve this implementation to avoid
5876// using the same mapping across storage keys and to deal with the resulting
5877// lifecycle issues of the additional memory use.
5878using StorageDatabaseNameHashtable = nsTHashMap<nsString, nsString>;
5879
5880StaticAutoPtr<StorageDatabaseNameHashtable> gStorageDatabaseNameHashtable;
5881
5882// Protects all reads and writes to gStorageDatabaseNameHashtable.
5883StaticAutoPtr<Mutex> gStorageDatabaseNameMutex;
5884
5885#ifdef DEBUG1
5886
5887StaticRefPtr<DEBUGThreadSlower> gDEBUGThreadSlower;
5888
5889#endif // DEBUG
5890
5891void IncreaseBusyCount() {
5892 AssertIsOnBackgroundThread();
5893
5894 // If this is the first instance then we need to do some initialization.
5895 if (!gBusyCount) {
5896 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"
, 5896); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gFactoryOps"
")"); do { *((volatile int*)__null) = 5896; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5897 gFactoryOps = new FactoryOpArray();
5898
5899 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"
, 5899); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gLiveDatabaseHashtable"
")"); do { *((volatile int*)__null) = 5899; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5900 gLiveDatabaseHashtable = new DatabaseActorHashtable();
5901
5902 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"
, 5902); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gLoggingInfoHashtable"
")"); do { *((volatile int*)__null) = 5902; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5903 gLoggingInfoHashtable = new DatabaseLoggingInfoHashtable();
5904
5905#ifdef DEBUG1
5906 if (kDEBUGThreadPriority != nsISupportsPriority::PRIORITY_NORMAL) {
5907 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"
, 5909)
5908 "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"
, 5909)
5909 "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"
, 5909)
;
5910 nsCOMPtr<nsISupportsPriority> thread =
5911 do_QueryInterface(NS_GetCurrentThread());
5912 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"
, 5912); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thread" ")"
); do { *((volatile int*)__null) = 5912; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5913
5914 MOZ_ALWAYS_SUCCEEDS(thread->SetPriority(kDEBUGThreadPriority))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(thread->SetPriority(kDEBUGThreadPriority))), 1)))), 1))) {
} else { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(thread->SetPriority(kDEBUGThreadPriority))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5914); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(thread->SetPriority(kDEBUGThreadPriority))"
")"); do { *((volatile int*)__null) = 5914; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
5915 }
5916
5917 if (kDEBUGThreadSleepMS) {
5918 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"
, 5920)
5919 "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"
, 5920)
5920 "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"
, 5920)
;
5921 nsCOMPtr<nsIThreadInternal> thread =
5922 do_QueryInterface(NS_GetCurrentThread());
5923 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"
, 5923); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thread" ")"
); do { *((volatile int*)__null) = 5923; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5924
5925 gDEBUGThreadSlower = new DEBUGThreadSlower();
5926
5927 MOZ_ALWAYS_SUCCEEDS(thread->AddObserver(gDEBUGThreadSlower))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(thread->AddObserver(gDEBUGThreadSlower))), 1)))), 1))) { }
else { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(thread->AddObserver(gDEBUGThreadSlower))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5927); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(thread->AddObserver(gDEBUGThreadSlower))"
")"); do { *((volatile int*)__null) = 5927; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
5928 }
5929#endif // DEBUG
5930 }
5931
5932 gBusyCount++;
5933}
5934
5935void DecreaseBusyCount() {
5936 AssertIsOnBackgroundThread();
5937 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"
, 5937); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gBusyCount"
")"); do { *((volatile int*)__null) = 5937; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5938
5939 // Clean up if there are no more instances.
5940 if (--gBusyCount == 0) {
5941 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"
, 5941); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gLoggingInfoHashtable"
")"); do { *((volatile int*)__null) = 5941; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5942 gLoggingInfoHashtable = nullptr;
5943
5944 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"
, 5944); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gLiveDatabaseHashtable"
")"); do { *((volatile int*)__null) = 5944; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5945 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"
, 5945); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gLiveDatabaseHashtable->Count()"
")"); do { *((volatile int*)__null) = 5945; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5946 gLiveDatabaseHashtable = nullptr;
5947
5948 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"
, 5948); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gFactoryOps"
")"); do { *((volatile int*)__null) = 5948; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5949 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"
, 5949); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gFactoryOps->IsEmpty()"
")"); do { *((volatile int*)__null) = 5949; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5950 gFactoryOps = nullptr;
5951
5952#ifdef DEBUG1
5953 if (kDEBUGThreadPriority != nsISupportsPriority::PRIORITY_NORMAL) {
5954 nsCOMPtr<nsISupportsPriority> thread =
5955 do_QueryInterface(NS_GetCurrentThread());
5956 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"
, 5956); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thread" ")"
); do { *((volatile int*)__null) = 5956; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5957
5958 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(thread->SetPriority(nsISupportsPriority::PRIORITY_NORMAL)
)), 1)))), 1))) { } else { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(thread->SetPriority(nsISupportsPriority::PRIORITY_NORMAL))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5959); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(thread->SetPriority(nsISupportsPriority::PRIORITY_NORMAL))"
")"); do { *((volatile int*)__null) = 5959; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
5959 thread->SetPriority(nsISupportsPriority::PRIORITY_NORMAL))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(thread->SetPriority(nsISupportsPriority::PRIORITY_NORMAL)
)), 1)))), 1))) { } else { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(thread->SetPriority(nsISupportsPriority::PRIORITY_NORMAL))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5959); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(thread->SetPriority(nsISupportsPriority::PRIORITY_NORMAL))"
")"); do { *((volatile int*)__null) = 5959; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
5960 }
5961
5962 if (kDEBUGThreadSleepMS) {
5963 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"
, 5963); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gDEBUGThreadSlower"
")"); do { *((volatile int*)__null) = 5963; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5964
5965 nsCOMPtr<nsIThreadInternal> thread =
5966 do_QueryInterface(NS_GetCurrentThread());
5967 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"
, 5967); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thread" ")"
); do { *((volatile int*)__null) = 5967; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
5968
5969 MOZ_ALWAYS_SUCCEEDS(thread->RemoveObserver(gDEBUGThreadSlower))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(thread->RemoveObserver(gDEBUGThreadSlower))), 1)))), 1)))
{ } else { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(thread->RemoveObserver(gDEBUGThreadSlower))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 5969); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(thread->RemoveObserver(gDEBUGThreadSlower))"
")"); do { *((volatile int*)__null) = 5969; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
5970
5971 gDEBUGThreadSlower = nullptr;
5972 }
5973#endif // DEBUG
5974 }
5975}
5976
5977template <typename Condition>
5978void InvalidateLiveDatabasesMatching(const Condition& aCondition) {
5979 AssertIsOnBackgroundThread();
5980
5981 if (!gLiveDatabaseHashtable) {
5982 return;
5983 }
5984
5985 // Invalidating a Database will cause it to be removed from the
5986 // gLiveDatabaseHashtable entries' mLiveDatabases, and, if it was the last
5987 // element in mLiveDatabases, to remove the whole hashtable entry. Therefore,
5988 // we need to make a temporary list of the databases to invalidate to avoid
5989 // iterator invalidation.
5990
5991 nsTArray<SafeRefPtr<Database>> databases;
5992
5993 for (const auto& liveDatabasesEntry : gLiveDatabaseHashtable->Values()) {
5994 for (const auto& database : liveDatabasesEntry->mLiveDatabases) {
5995 if (aCondition(*database)) {
5996 databases.AppendElement(
5997 SafeRefPtr{database.get(), AcquireStrongRefFromRawPtr{}});
5998 }
5999 }
6000 }
6001
6002 for (const auto& database : databases) {
6003 database->Invalidate();
6004 }
6005}
6006
6007uint32_t TelemetryIdForFile(nsIFile* aFile) {
6008 // May be called on any thread!
6009
6010 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"
, 6010); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFile" ")")
; do { *((volatile int*)__null) = 6010; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6011 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"
, 6011); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gTelemetryIdMutex"
")"); do { *((volatile int*)__null) = 6011; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6012
6013 // The storage directory is structured like this:
6014 //
6015 // <profile>/storage/<persistence>/<origin>/idb/<filename>.sqlite
6016 //
6017 // For the purposes of this function we're only concerned with the
6018 // <persistence>, <origin>, and <filename> pieces.
6019
6020 nsString filename;
6021 MOZ_ALWAYS_SUCCEEDS(aFile->GetLeafName(filename))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aFile->GetLeafName(filename))), 1)))), 1))) { } else { do
{ static_assert( mozilla::detail::AssertionConditionType<
decltype(false)>::isValid, "invalid assertion condition");
if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while (
false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(aFile->GetLeafName(filename))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6021); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(aFile->GetLeafName(filename))" ")"); do
{ *((volatile int*)__null) = 6021; __attribute__((nomerge)) ::
abort(); } while (false); } } while (false); } } while (false
)
;
6022
6023 // Make sure we were given a database file.
6024 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"
, 6024); AnnotateMozCrashReason("MOZ_ASSERT" "(" "StringEndsWith(filename, kSQLiteSuffix)"
")"); do { *((volatile int*)__null) = 6024; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6025
6026 filename.Truncate(filename.Length() - kSQLiteSuffix.Length());
6027
6028 // Get the "idb" directory.
6029 nsCOMPtr<nsIFile> idbDirectory;
6030 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 { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(aFile->GetParent(getter_AddRefs(idbDirectory)))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6030); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(aFile->GetParent(getter_AddRefs(idbDirectory)))"
")"); do { *((volatile int*)__null) = 6030; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
6031
6032 DebugOnly<nsString> idbLeafName;
6033 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"
, 6033); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(idbDirectory->GetLeafName(idbLeafName))), 1)))"
")"); do { *((volatile int*)__null) = 6033; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6034 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"
, 6034); AnnotateMozCrashReason("MOZ_ASSERT" "(" "static_cast<nsString&>(idbLeafName).EqualsLiteral(\"idb\")"
")"); do { *((volatile int*)__null) = 6034; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6035
6036 // Get the <origin> directory.
6037 nsCOMPtr<nsIFile> originDirectory;
6038 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 { static_assert( mozilla::detail
::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(idbDirectory->GetParent(getter_AddRefs(originDirectory)))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6038); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(idbDirectory->GetParent(getter_AddRefs(originDirectory)))"
")"); do { *((volatile int*)__null) = 6038; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
6039
6040 nsString origin;
6041 MOZ_ALWAYS_SUCCEEDS(originDirectory->GetLeafName(origin))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(originDirectory->GetLeafName(origin))), 1)))), 1))) { } else
{ do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(originDirectory->GetLeafName(origin))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6041); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(originDirectory->GetLeafName(origin))"
")"); do { *((volatile int*)__null) = 6041; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
6042
6043 // Any databases in these directories are owned by the application and should
6044 // not have their filenames masked. Hopefully they also appear in the
6045 // Telemetry.cpp whitelist.
6046 if (origin.EqualsLiteral("chrome") ||
6047 origin.EqualsLiteral("moz-safe-about+home")) {
6048 return 0;
6049 }
6050
6051 // Get the <persistence> directory.
6052 nsCOMPtr<nsIFile> persistenceDirectory;
6053 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(originDirectory->GetParent(getter_AddRefs(persistenceDirectory
)))), 1)))), 1))) { } else { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(originDirectory->GetParent(getter_AddRefs(persistenceDirectory)))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6054); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(originDirectory->GetParent(getter_AddRefs(persistenceDirectory)))"
")"); do { *((volatile int*)__null) = 6054; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
6054 originDirectory->GetParent(getter_AddRefs(persistenceDirectory)))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(originDirectory->GetParent(getter_AddRefs(persistenceDirectory
)))), 1)))), 1))) { } else { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(originDirectory->GetParent(getter_AddRefs(persistenceDirectory)))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6054); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(originDirectory->GetParent(getter_AddRefs(persistenceDirectory)))"
")"); do { *((volatile int*)__null) = 6054; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
6055
6056 nsString persistence;
6057 MOZ_ALWAYS_SUCCEEDS(persistenceDirectory->GetLeafName(persistence))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(persistenceDirectory->GetLeafName(persistence))), 1)))), 1
))) { } else { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(persistenceDirectory->GetLeafName(persistence))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6057); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(persistenceDirectory->GetLeafName(persistence))"
")"); do { *((volatile int*)__null) = 6057; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
6058
6059 constexpr auto separator = u"*"_ns;
6060
6061 uint32_t hashValue =
6062 HashString(persistence + separator + origin + separator + filename);
6063
6064 MutexAutoLock lock(*gTelemetryIdMutex);
6065
6066 if (!gTelemetryIdHashtable) {
6067 gTelemetryIdHashtable = new TelemetryIdHashtable();
6068 }
6069
6070 return gTelemetryIdHashtable->LookupOrInsertWith(hashValue, [] {
6071 static uint32_t sNextId = 1;
6072
6073 // We're locked, no need for atomics.
6074 return sNextId++;
6075 });
6076}
6077
6078nsAutoString GetDatabaseFilenameBase(const nsAString& aDatabaseName,
6079 bool aIsPrivate) {
6080 nsAutoString databaseFilenameBase;
6081
6082 if (aIsPrivate) {
6083 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"
, 6083); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "gStorageDatabaseNameMutex"
")"); do { *((volatile int*)__null) = 6083; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6084
6085 MutexAutoLock lock(*gStorageDatabaseNameMutex);
6086
6087 if (!gStorageDatabaseNameHashtable) {
6088 gStorageDatabaseNameHashtable = new StorageDatabaseNameHashtable();
6089 }
6090
6091 databaseFilenameBase.Append(
6092 gStorageDatabaseNameHashtable->LookupOrInsertWith(aDatabaseName, []() {
6093 return NSID_TrimBracketsUTF16(nsID::GenerateUUID());
6094 }));
6095
6096 return databaseFilenameBase;
6097 }
6098
6099 // WARNING: do not change this hash function. See the comment in HashName()
6100 // for details.
6101 databaseFilenameBase.AppendInt(HashName(aDatabaseName));
6102
6103 nsAutoCString escapedName;
6104 if (!NS_Escape(NS_ConvertUTF16toUTF8(aDatabaseName), escapedName,
6105 url_XPAlphas)) {
6106 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"
, 6106); AnnotateMozCrashReason("MOZ_CRASH(" "Can't escape database name!"
")"); do { *((volatile int*)__null) = 6106; __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
6107 }
6108
6109 const char* forwardIter = escapedName.BeginReading();
6110 const char* backwardIter = escapedName.EndReading() - 1;
6111
6112 nsAutoCString substring;
6113 while (forwardIter <= backwardIter && substring.Length() < 21) {
6114 if (substring.Length() % 2) {
6115 substring.Append(*backwardIter--);
6116 } else {
6117 substring.Append(*forwardIter++);
6118 }
6119 }
6120
6121 databaseFilenameBase.AppendASCII(substring.get(), substring.Length());
6122
6123 return databaseFilenameBase;
6124}
6125
6126const CommonIndexOpenCursorParams& GetCommonIndexOpenCursorParams(
6127 const OpenCursorParams& aParams) {
6128 switch (aParams.type()) {
6129 case OpenCursorParams::TIndexOpenCursorParams:
6130 return aParams.get_IndexOpenCursorParams().commonIndexParams();
6131 case OpenCursorParams::TIndexOpenKeyCursorParams:
6132 return aParams.get_IndexOpenKeyCursorParams().commonIndexParams();
6133 default:
6134 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"
, 6134); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 6134; __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
6135 }
6136}
6137
6138const CommonOpenCursorParams& GetCommonOpenCursorParams(
6139 const OpenCursorParams& aParams) {
6140 switch (aParams.type()) {
6141 case OpenCursorParams::TObjectStoreOpenCursorParams:
6142 return aParams.get_ObjectStoreOpenCursorParams().commonParams();
6143 case OpenCursorParams::TObjectStoreOpenKeyCursorParams:
6144 return aParams.get_ObjectStoreOpenKeyCursorParams().commonParams();
6145 case OpenCursorParams::TIndexOpenCursorParams:
6146 case OpenCursorParams::TIndexOpenKeyCursorParams:
6147 return GetCommonIndexOpenCursorParams(aParams).commonParams();
6148 default:
6149 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"
, 6149); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 6149; __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
6150 }
6151}
6152
6153// TODO: Using nsCString as a return type here seems to lead to a dependency on
6154// some temporaries, which I did not expect. Is it a good idea that the default
6155// operator+ behaviour constructs such strings? It is certainly useful as an
6156// optimization, but this should be better done via an appropriately named
6157// function rather than an operator.
6158nsAutoCString MakeColumnPairSelectionList(
6159 const nsLiteralCString& aPlainColumnName,
6160 const nsLiteralCString& aLocaleAwareColumnName,
6161 const nsLiteralCString& aSortColumnAlias, const bool aIsLocaleAware) {
6162 return aPlainColumnName +
6163 (aIsLocaleAware ? EmptyCString() : " as "_ns + aSortColumnAlias) +
6164 ", "_ns + aLocaleAwareColumnName +
6165 (aIsLocaleAware ? " as "_ns + aSortColumnAlias : EmptyCString());
6166}
6167
6168constexpr bool IsIncreasingOrder(const IDBCursorDirection aDirection) {
6169 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"
, 6172); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
")"); do { *((volatile int*)__null) = 6172; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
6170 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"
, 6172); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
")"); do { *((volatile int*)__null) = 6172; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
6171 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"
, 6172); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
")"); do { *((volatile int*)__null) = 6172; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
6172 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"
, 6172); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
")"); do { *((volatile int*)__null) = 6172; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6173
6174 return aDirection == IDBCursorDirection::Next ||
6175 aDirection == IDBCursorDirection::Nextunique;
6176}
6177
6178constexpr bool IsUnique(const IDBCursorDirection aDirection) {
6179 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"
, 6182); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
")"); do { *((volatile int*)__null) = 6182; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
6180 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"
, 6182); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
")"); do { *((volatile int*)__null) = 6182; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
6181 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"
, 6182); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
")"); do { *((volatile int*)__null) = 6182; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
6182 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"
, 6182); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique"
")"); do { *((volatile int*)__null) = 6182; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6183
6184 return aDirection == IDBCursorDirection::Nextunique ||
6185 aDirection == IDBCursorDirection::Prevunique;
6186}
6187
6188// TODO: In principle, this could be constexpr, if operator+(nsLiteralCString,
6189// nsLiteralCString) were constexpr and returned a literal type.
6190nsAutoCString MakeDirectionClause(const IDBCursorDirection aDirection) {
6191 return " ORDER BY "_ns + kColumnNameKey +
6192 (IsIncreasingOrder(aDirection) ? " ASC"_ns : " DESC"_ns);
6193}
6194
6195enum struct ComparisonOperator {
6196 LessThan,
6197 LessOrEquals,
6198 Equals,
6199 GreaterThan,
6200 GreaterOrEquals,
6201};
6202
6203constexpr nsLiteralCString GetComparisonOperatorString(
6204 const ComparisonOperator aComparisonOperator) {
6205 switch (aComparisonOperator) {
6206 case ComparisonOperator::LessThan:
6207 return "<"_ns;
6208 case ComparisonOperator::LessOrEquals:
6209 return "<="_ns;
6210 case ComparisonOperator::Equals:
6211 return "=="_ns;
6212 case ComparisonOperator::GreaterThan:
6213 return ">"_ns;
6214 case ComparisonOperator::GreaterOrEquals:
6215 return ">="_ns;
6216 }
6217
6218 // TODO: This is just to silence the "control reaches end of non-void
6219 // function" warning. Cannot use MOZ_CRASH in a constexpr function,
6220 // unfortunately.
6221 return ""_ns;
6222}
6223
6224nsAutoCString GetKeyClause(const nsACString& aColumnName,
6225 const ComparisonOperator aComparisonOperator,
6226 const nsLiteralCString& aStmtParamName) {
6227 return aColumnName + " "_ns +
6228 GetComparisonOperatorString(aComparisonOperator) + " :"_ns +
6229 aStmtParamName;
6230}
6231
6232nsAutoCString GetSortKeyClause(const ComparisonOperator aComparisonOperator,
6233 const nsLiteralCString& aStmtParamName) {
6234 return GetKeyClause(kColumnNameAliasSortKey, aComparisonOperator,
6235 aStmtParamName);
6236}
6237
6238template <IDBCursorType CursorType>
6239struct PopulateResponseHelper;
6240
6241struct CommonPopulateResponseHelper {
6242 explicit CommonPopulateResponseHelper(
6243 const TransactionDatabaseOperationBase& aOp)
6244 : mOp{aOp} {}
6245
6246 nsresult GetKeys(mozIStorageStatement* const aStmt,
6247 Key* const aOptOutSortKey) {
6248 QM_TRY(MOZ_TO_RESULT(GetCommonKeys(aStmt))){auto tryResult881 = (ToResult(GetCommonKeys(aStmt))); static_assert
(std::is_empty_v<typename decltype(tryResult881)::ok_type>
); if ((__builtin_expect(!!(tryResult881.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(GetCommonKeys(aStmt))", tryResult881
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6248, mozilla::dom::quota::Severity::Error); return tryResult881
.propagateErr(); }}
;
6249
6250 if (aOptOutSortKey) {
6251 *aOptOutSortKey = mPosition;
6252 }
6253
6254 return NS_OK;
6255 }
6256
6257 nsresult GetCommonKeys(mozIStorageStatement* const aStmt) {
6258 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"
, 6258); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mPosition.IsUnset()"
")"); do { *((volatile int*)__null) = 6258; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6259
6260 QM_TRY(MOZ_TO_RESULT(mPosition.SetFromStatement(aStmt, 0))){auto tryResult882 = (ToResult(mPosition.SetFromStatement(aStmt
, 0))); static_assert(std::is_empty_v<typename decltype(tryResult882
)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(mPosition.SetFromStatement(aStmt, 0))"
, tryResult882.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6260, mozilla::dom::quota::Severity::Error); return tryResult882
.propagateErr(); }}
;
6261
6262 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())
6263 "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())
6264 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())
6265 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())
6266 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())
;
6267
6268 return NS_OK;
6269 }
6270
6271 template <typename Response>
6272 void FillKeys(Response& aResponse) {
6273 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"
, 6273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mPosition.IsUnset()"
")"); do { *((volatile int*)__null) = 6273; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6274 aResponse.key() = std::move(mPosition);
6275 }
6276
6277 template <typename Response>
6278 static size_t GetKeySize(const Response& aResponse) {
6279 return aResponse.key().GetBuffer().Length();
6280 }
6281
6282 protected:
6283 const Key& GetPosition() const { return mPosition; }
6284
6285 private:
6286 const TransactionDatabaseOperationBase& mOp;
6287 Key mPosition;
6288};
6289
6290struct IndexPopulateResponseHelper : CommonPopulateResponseHelper {
6291 using CommonPopulateResponseHelper::CommonPopulateResponseHelper;
6292
6293 nsresult GetKeys(mozIStorageStatement* const aStmt,
6294 Key* const aOptOutSortKey) {
6295 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"
, 6295); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLocaleAwarePosition.IsUnset()"
")"); do { *((volatile int*)__null) = 6295; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6296 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"
, 6296); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mObjectStorePosition.IsUnset()"
")"); do { *((volatile int*)__null) = 6296; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6297
6298 QM_TRY(MOZ_TO_RESULT(CommonPopulateResponseHelper::GetCommonKeys(aStmt))){auto tryResult883 = (ToResult(CommonPopulateResponseHelper::
GetCommonKeys(aStmt))); static_assert(std::is_empty_v<typename
decltype(tryResult883)::ok_type>); if ((__builtin_expect(
!!(tryResult883.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(CommonPopulateResponseHelper::GetCommonKeys(aStmt))"
, tryResult883.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6298, mozilla::dom::quota::Severity::Error); return tryResult883
.propagateErr(); }}
;
6299
6300 QM_TRY(MOZ_TO_RESULT(mLocaleAwarePosition.SetFromStatement(aStmt, 1))){auto tryResult884 = (ToResult(mLocaleAwarePosition.SetFromStatement
(aStmt, 1))); static_assert(std::is_empty_v<typename decltype
(tryResult884)::ok_type>); if ((__builtin_expect(!!(tryResult884
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(mLocaleAwarePosition.SetFromStatement(aStmt, 1))"
, tryResult884.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6300, mozilla::dom::quota::Severity::Error); return tryResult884
.propagateErr(); }}
;
6301
6302 QM_TRY(MOZ_TO_RESULT(mObjectStorePosition.SetFromStatement(aStmt, 2))){auto tryResult885 = (ToResult(mObjectStorePosition.SetFromStatement
(aStmt, 2))); static_assert(std::is_empty_v<typename decltype
(tryResult885)::ok_type>); if ((__builtin_expect(!!(tryResult885
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(mObjectStorePosition.SetFromStatement(aStmt, 2))"
, tryResult885.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6302, mozilla::dom::quota::Severity::Error); return tryResult885
.propagateErr(); }}
;
6303
6304 if (aOptOutSortKey) {
6305 *aOptOutSortKey =
6306 mLocaleAwarePosition.IsUnset() ? GetPosition() : mLocaleAwarePosition;
6307 }
6308
6309 return NS_OK;
6310 }
6311
6312 template <typename Response>
6313 void FillKeys(Response& aResponse) {
6314 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"
, 6314); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mLocaleAwarePosition.IsUnset()"
")"); do { *((volatile int*)__null) = 6314; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6315 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"
, 6315); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mObjectStorePosition.IsUnset()"
")"); do { *((volatile int*)__null) = 6315; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6316
6317 CommonPopulateResponseHelper::FillKeys(aResponse);
6318 aResponse.sortKey() = std::move(mLocaleAwarePosition);
6319 aResponse.objectKey() = std::move(mObjectStorePosition);
6320 }
6321
6322 template <typename Response>
6323 static size_t GetKeySize(Response& aResponse) {
6324 return CommonPopulateResponseHelper::GetKeySize(aResponse) +
6325 aResponse.sortKey().GetBuffer().Length() +
6326 aResponse.objectKey().GetBuffer().Length();
6327 }
6328
6329 private:
6330 Key mLocaleAwarePosition, mObjectStorePosition;
6331};
6332
6333struct KeyPopulateResponseHelper {
6334 static constexpr nsresult MaybeGetCloneInfo(
6335 mozIStorageStatement* const /*aStmt*/, const CursorBase& /*aCursor*/) {
6336 return NS_OK;
6337 }
6338
6339 template <typename Response>
6340 static constexpr void MaybeFillCloneInfo(Response& /*aResponse*/,
6341 FilesArray* const /*aFiles*/) {}
6342
6343 template <typename Response>
6344 static constexpr size_t MaybeGetCloneInfoSize(const Response& /*aResponse*/) {
6345 return 0;
6346 }
6347};
6348
6349template <bool StatementHasIndexKeyBindings>
6350struct ValuePopulateResponseHelper {
6351 nsresult MaybeGetCloneInfo(mozIStorageStatement* const aStmt,
6352 const ValueCursorBase& aCursor) {
6353 constexpr auto offset = StatementHasIndexKeyBindings ? 2 : 0;
6354
6355 QM_TRY_UNWRAP(auto cloneInfo,auto tryResult886 = (GetStructuredCloneReadInfoFromStatement(
aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)); if (
(__builtin_expect(!!(tryResult886.isErr()), 0))) { mozilla::dom
::quota::HandleError("GetStructuredCloneReadInfoFromStatement( aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)"
, tryResult886.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6357, mozilla::dom::quota::Severity::Error); return tryResult886
.propagateErr(); } auto cloneInfo = tryResult886.unwrap();
6356 GetStructuredCloneReadInfoFromStatement(auto tryResult886 = (GetStructuredCloneReadInfoFromStatement(
aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)); if (
(__builtin_expect(!!(tryResult886.isErr()), 0))) { mozilla::dom
::quota::HandleError("GetStructuredCloneReadInfoFromStatement( aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)"
, tryResult886.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6357, mozilla::dom::quota::Severity::Error); return tryResult886
.propagateErr(); } auto cloneInfo = tryResult886.unwrap();
6357 aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager))auto tryResult886 = (GetStructuredCloneReadInfoFromStatement(
aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)); if (
(__builtin_expect(!!(tryResult886.isErr()), 0))) { mozilla::dom
::quota::HandleError("GetStructuredCloneReadInfoFromStatement( aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)"
, tryResult886.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6357, mozilla::dom::quota::Severity::Error); return tryResult886
.propagateErr(); } auto cloneInfo = tryResult886.unwrap();
;
6358
6359 mCloneInfo.init(std::move(cloneInfo));
6360
6361 if (mCloneInfo->HasPreprocessInfo()) {
6362 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"
, 6362, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6362); } while (0)
;
6363 return NS_ERROR_NOT_IMPLEMENTED;
6364 }
6365
6366 return NS_OK;
6367 }
6368
6369 template <typename Response>
6370 void MaybeFillCloneInfo(Response& aResponse, FilesArray* const aFiles) {
6371 auto cloneInfo = mCloneInfo.release();
6372 aResponse.cloneInfo().data().data = cloneInfo.ReleaseData();
6373 aFiles->AppendElement(cloneInfo.ReleaseFiles());
6374 }
6375
6376 template <typename Response>
6377 static size_t MaybeGetCloneInfoSize(const Response& aResponse) {
6378 return aResponse.cloneInfo().data().data.Size();
6379 }
6380
6381 private:
6382 LazyInitializedOnceEarlyDestructible<const StructuredCloneReadInfoParent>
6383 mCloneInfo;
6384};
6385
6386template <>
6387struct PopulateResponseHelper<IDBCursorType::ObjectStore>
6388 : ValuePopulateResponseHelper<false>, CommonPopulateResponseHelper {
6389 using CommonPopulateResponseHelper::CommonPopulateResponseHelper;
6390
6391 static auto& GetTypedResponse(CursorResponse* const aResponse) {
6392 return aResponse->get_ArrayOfObjectStoreCursorResponse();
6393 }
6394};
6395
6396template <>
6397struct PopulateResponseHelper<IDBCursorType::ObjectStoreKey>
6398 : KeyPopulateResponseHelper, CommonPopulateResponseHelper {
6399 using CommonPopulateResponseHelper::CommonPopulateResponseHelper;
6400
6401 static auto& GetTypedResponse(CursorResponse* const aResponse) {
6402 return aResponse->get_ArrayOfObjectStoreKeyCursorResponse();
6403 }
6404};
6405
6406template <>
6407struct PopulateResponseHelper<IDBCursorType::Index>
6408 : ValuePopulateResponseHelper<true>, IndexPopulateResponseHelper {
6409 using IndexPopulateResponseHelper::IndexPopulateResponseHelper;
6410
6411 static auto& GetTypedResponse(CursorResponse* const aResponse) {
6412 return aResponse->get_ArrayOfIndexCursorResponse();
6413 }
6414};
6415
6416template <>
6417struct PopulateResponseHelper<IDBCursorType::IndexKey>
6418 : KeyPopulateResponseHelper, IndexPopulateResponseHelper {
6419 using IndexPopulateResponseHelper::IndexPopulateResponseHelper;
6420
6421 static auto& GetTypedResponse(CursorResponse* const aResponse) {
6422 return aResponse->get_ArrayOfIndexKeyCursorResponse();
6423 }
6424};
6425
6426nsresult DispatchAndReturnFileReferences(
6427 PersistenceType aPersistenceType, const nsACString& aOrigin,
6428 const nsAString& aDatabaseName, const int64_t aFileId,
6429 int32_t* const aMemRefCnt, int32_t* const aDBRefCnt, bool* const aResult) {
6430 AssertIsOnBackgroundThread();
6431 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"
, 6431); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMemRefCnt"
")"); do { *((volatile int*)__null) = 6431; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6432 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"
, 6432); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDBRefCnt" ")"
); do { *((volatile int*)__null) = 6432; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6433 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"
, 6433); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResult" ")"
); do { *((volatile int*)__null) = 6433; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6434
6435 *aResult = false;
6436 *aMemRefCnt = -1;
6437 *aDBRefCnt = -1;
6438
6439 mozilla::Monitor monitor MOZ_ANNOTATED(__func__);
6440 bool waiting = true;
6441
6442 auto lambda = [&] {
6443 AssertIsOnIOThread();
6444
6445 {
6446 IndexedDatabaseManager* const mgr = IndexedDatabaseManager::Get();
6447 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"
, 6447); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mgr" ")"); do
{ *((volatile int*)__null) = 6447; __attribute__((nomerge)) ::
abort(); } while (false); } } while (false)
;
6448
6449 const SafeRefPtr<DatabaseFileManager> fileManager =
6450 mgr->GetFileManager(aPersistenceType, aOrigin, aDatabaseName);
6451
6452 if (fileManager) {
6453 const SafeRefPtr<DatabaseFileInfo> fileInfo =
6454 fileManager->GetFileInfo(aFileId);
6455
6456 if (fileInfo) {
6457 fileInfo->GetReferences(aMemRefCnt, aDBRefCnt);
6458
6459 if (*aMemRefCnt != -1) {
6460 // We added an extra temp ref, so account for that accordingly.
6461 (*aMemRefCnt)--;
6462 }
6463
6464 *aResult = true;
6465 }
6466 }
6467 }
6468
6469 mozilla::MonitorAutoLock lock(monitor);
6470 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"
, 6470); AnnotateMozCrashReason("MOZ_ASSERT" "(" "waiting" ")"
); do { *((volatile int*)__null) = 6470; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6471
6472 waiting = false;
6473 lock.Notify();
6474 };
6475
6476 QuotaManager* const quotaManager = QuotaManager::Get();
6477 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"
, 6477); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { *((volatile int*)__null) = 6477; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6478
6479 // XXX can't we simply use NS_DispatchAndSpinEventLoopUntilComplete instead of
6480 // using a monitor?
6481 QM_TRY(MOZ_TO_RESULT(quotaManager->IOThread()->Dispatch({auto tryResult887 = (ToResult(quotaManager->IOThread()->
Dispatch( NS_NewRunnableFunction("GetFileReferences", std::move
(lambda)), nsIEventTarget::DISPATCH_NORMAL))); static_assert(
std::is_empty_v<typename decltype(tryResult887)::ok_type>
); if ((__builtin_expect(!!(tryResult887.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch( NS_NewRunnableFunction(\"GetFileReferences\", std::move(lambda)), nsIEventTarget::DISPATCH_NORMAL))"
, tryResult887.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6483, mozilla::dom::quota::Severity::Error); return tryResult887
.propagateErr(); }}
6482 NS_NewRunnableFunction("GetFileReferences", std::move(lambda)),{auto tryResult887 = (ToResult(quotaManager->IOThread()->
Dispatch( NS_NewRunnableFunction("GetFileReferences", std::move
(lambda)), nsIEventTarget::DISPATCH_NORMAL))); static_assert(
std::is_empty_v<typename decltype(tryResult887)::ok_type>
); if ((__builtin_expect(!!(tryResult887.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch( NS_NewRunnableFunction(\"GetFileReferences\", std::move(lambda)), nsIEventTarget::DISPATCH_NORMAL))"
, tryResult887.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6483, mozilla::dom::quota::Severity::Error); return tryResult887
.propagateErr(); }}
6483 NS_DISPATCH_NORMAL))){auto tryResult887 = (ToResult(quotaManager->IOThread()->
Dispatch( NS_NewRunnableFunction("GetFileReferences", std::move
(lambda)), nsIEventTarget::DISPATCH_NORMAL))); static_assert(
std::is_empty_v<typename decltype(tryResult887)::ok_type>
); if ((__builtin_expect(!!(tryResult887.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch( NS_NewRunnableFunction(\"GetFileReferences\", std::move(lambda)), nsIEventTarget::DISPATCH_NORMAL))"
, tryResult887.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6483, mozilla::dom::quota::Severity::Error); return tryResult887
.propagateErr(); }}
;
6484
6485 mozilla::MonitorAutoLock autolock(monitor);
6486 while (waiting) {
6487 autolock.Wait();
6488 }
6489
6490 return NS_OK;
6491}
6492
6493class DeserializeIndexValueHelper final : public Runnable {
6494 public:
6495 DeserializeIndexValueHelper(int64_t aIndexID, const KeyPath& aKeyPath,
6496 bool aMultiEntry, const nsACString& aLocale,
6497 StructuredCloneReadInfoParent& aCloneReadInfo,
6498 nsTArray<IndexUpdateInfo>& aUpdateInfoArray)
6499 : Runnable("DeserializeIndexValueHelper"),
6500 mMonitor("DeserializeIndexValueHelper::mMonitor"),
6501 mIndexID(aIndexID),
6502 mKeyPath(aKeyPath),
6503 mMultiEntry(aMultiEntry),
6504 mLocale(aLocale),
6505 mCloneReadInfo(aCloneReadInfo),
6506 mUpdateInfoArray(aUpdateInfoArray),
6507 mStatus(NS_ERROR_FAILURE) {}
6508
6509 nsresult DispatchAndWait() {
6510 // FIXME(Bug 1637530) Re-enable optimization using a non-system-principaled
6511 // JS context
6512#if 0
6513 // We don't need to go to the main-thread and use the sandbox. Let's create
6514 // the updateInfo data here.
6515 if (!mCloneReadInfo.Data().Size()) {
6516 AutoJSAPI jsapi;
6517 jsapi.Init();
6518
6519 JS::Rooted<JS::Value> value(jsapi.cx());
6520 value.setUndefined();
6521
6522 ErrorResult rv;
6523 IDBObjectStore::AppendIndexUpdateInfo(
6524 mIndexID, mKeyPath, mMultiEntry, &mUpdateInfoArray,
6525 /* aAutoIncrementedObjectStoreKeyPath */ VoidString(), &rv);
6526 return rv.Failed() ? rv.StealNSResult() : NS_OK;
6527 }
6528#endif
6529
6530 // The operation will continue on the main-thread.
6531
6532 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"
, 6532); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!(mCloneReadInfo.Data().Size() % sizeof(uint64_t))"
")"); do { *((volatile int*)__null) = 6532; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6533
6534 MonitorAutoLock lock(mMonitor);
6535
6536 RefPtr<Runnable> self = this;
6537 QM_TRY(MOZ_TO_RESULT(SchedulerGroup::Dispatch(self.forget()))){auto tryResult888 = (ToResult(SchedulerGroup::Dispatch(self.
forget()))); static_assert(std::is_empty_v<typename decltype
(tryResult888)::ok_type>); if ((__builtin_expect(!!(tryResult888
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(SchedulerGroup::Dispatch(self.forget()))"
, tryResult888.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6537, mozilla::dom::quota::Severity::Error); return tryResult888
.propagateErr(); }}
;
6538
6539 lock.Wait();
6540 return mStatus;
6541 }
6542
6543 NS_IMETHODvirtual nsresult
6544 Run() override {
6545 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"
, 6545); AnnotateMozCrashReason("MOZ_ASSERT" "(" "NS_IsMainThread()"
")"); do { *((volatile int*)__null) = 6545; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6546
6547 AutoJSAPI jsapi;
6548 jsapi.Init();
6549 JSContext* const cx = jsapi.cx();
6550
6551 JS::Rooted<JSObject*> global(cx, GetSandbox(cx));
6552
6553 QM_TRY(OkIf(global), NS_OK,{auto tryResult889 = (OkIf(global)); 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("OkIf(global)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6554, 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); }}
6554 [this](const NotOk) { OperationCompleted(NS_ERROR_FAILURE); }){auto tryResult889 = (OkIf(global)); 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("OkIf(global)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6554, 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); }}
;
6555
6556 const JSAutoRealm ar(cx, global);
6557
6558 JS::Rooted<JS::Value> value(cx);
6559 QM_TRY(MOZ_TO_RESULT(DeserializeIndexValue(cx, &value)), NS_OK,{auto tryResult890 = (ToResult(DeserializeIndexValue(cx, &
value))); 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("ToResult(DeserializeIndexValue(cx, &value))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6560, 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); }}
6560 [this](const nsresult rv) { OperationCompleted(rv); }){auto tryResult890 = (ToResult(DeserializeIndexValue(cx, &
value))); 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("ToResult(DeserializeIndexValue(cx, &value))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6560, 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); }}
;
6561
6562 ErrorResult errorResult;
6563 IDBObjectStore::AppendIndexUpdateInfo(
6564 mIndexID, mKeyPath, mMultiEntry, mLocale, cx, value, &mUpdateInfoArray,
6565 /* aAutoIncrementedObjectStoreKeyPath */ VoidString(), &errorResult);
6566 QM_TRY(OkIf(!errorResult.Failed()), NS_OK,{auto tryResult891 = (OkIf(!errorResult.Failed())); static_assert
(std::is_empty_v<typename decltype(tryResult891)::ok_type>
); if ((__builtin_expect(!!(tryResult891.isErr()), 0))) { auto
tryTempError = tryResult891.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(!errorResult.Failed())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6569, 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); }
}
6567 ([this, &errorResult](const NotOk) {{auto tryResult891 = (OkIf(!errorResult.Failed())); static_assert
(std::is_empty_v<typename decltype(tryResult891)::ok_type>
); if ((__builtin_expect(!!(tryResult891.isErr()), 0))) { auto
tryTempError = tryResult891.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(!errorResult.Failed())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6569, 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); }
}
6568 OperationCompleted(errorResult.StealNSResult());{auto tryResult891 = (OkIf(!errorResult.Failed())); static_assert
(std::is_empty_v<typename decltype(tryResult891)::ok_type>
); if ((__builtin_expect(!!(tryResult891.isErr()), 0))) { auto
tryTempError = tryResult891.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(!errorResult.Failed())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6569, 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); }
}
6569 })){auto tryResult891 = (OkIf(!errorResult.Failed())); static_assert
(std::is_empty_v<typename decltype(tryResult891)::ok_type>
); if ((__builtin_expect(!!(tryResult891.isErr()), 0))) { auto
tryTempError = tryResult891.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(!errorResult.Failed())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6569, 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); }
}
;
6570
6571 OperationCompleted(NS_OK);
6572 return NS_OK;
6573 }
6574
6575 private:
6576 nsresult DeserializeIndexValue(JSContext* aCx,
6577 JS::MutableHandle<JS::Value> aValue) {
6578 static const JSStructuredCloneCallbacks callbacks = {
6579 StructuredCloneReadCallback<StructuredCloneReadInfoParent>,
6580 nullptr,
6581 nullptr,
6582 nullptr,
6583 nullptr,
6584 nullptr,
6585 nullptr,
6586 nullptr};
6587
6588 if (!JS_ReadStructuredClone(
6589 aCx, mCloneReadInfo.Data(), JS_STRUCTURED_CLONE_VERSION8,
6590 JS::StructuredCloneScope::DifferentProcessForIndexedDB, aValue,
6591 JS::CloneDataPolicy(), &callbacks, &mCloneReadInfo)) {
6592 return NS_ERROR_DOM_DATA_CLONE_ERR;
6593 }
6594
6595 return NS_OK;
6596 }
6597
6598 void OperationCompleted(nsresult aStatus) {
6599 mStatus = aStatus;
6600
6601 MonitorAutoLock lock(mMonitor);
6602 lock.Notify();
6603 }
6604
6605 Monitor mMonitor MOZ_UNANNOTATED;
6606
6607 const int64_t mIndexID;
6608 const KeyPath& mKeyPath;
6609 const bool mMultiEntry;
6610 const nsCString mLocale;
6611 StructuredCloneReadInfoParent& mCloneReadInfo;
6612 nsTArray<IndexUpdateInfo>& mUpdateInfoArray;
6613 nsresult mStatus;
6614};
6615
6616auto DeserializeIndexValueToUpdateInfos(
6617 int64_t aIndexID, const KeyPath& aKeyPath, bool aMultiEntry,
6618 const nsACString& aLocale, StructuredCloneReadInfoParent& aCloneReadInfo) {
6619 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"
, 6619); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { *((volatile int*)__null) = 6619; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6620
6621 using ArrayType = AutoTArray<IndexUpdateInfo, 32>;
6622 using ResultType = Result<ArrayType, nsresult>;
6623
6624 ArrayType updateInfoArray;
6625 const auto helper = MakeRefPtr<DeserializeIndexValueHelper>(
6626 aIndexID, aKeyPath, aMultiEntry, aLocale, aCloneReadInfo,
6627 updateInfoArray);
6628 const nsresult rv = helper->DispatchAndWait();
6629 return NS_FAILED(rv)((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0))) ? Err(rv) : ResultType{std::move(updateInfoArray)};
6630}
6631
6632bool IsSome(
6633 const Maybe<CachingDatabaseConnection::BorrowedStatement>& aMaybeStmt) {
6634 return aMaybeStmt.isSome();
6635}
6636
6637already_AddRefed<nsIThreadPool> MakeConnectionIOTarget() {
6638 nsCOMPtr<nsIThreadPool> threadPool = new nsThreadPool();
6639
6640 MOZ_ALWAYS_SUCCEEDS(threadPool->SetThreadLimit(kMaxConnectionThreadCount))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(threadPool->SetThreadLimit(kMaxConnectionThreadCount))), 1
)))), 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(threadPool->SetThreadLimit(kMaxConnectionThreadCount))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6640); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(threadPool->SetThreadLimit(kMaxConnectionThreadCount))"
")"); do { *((volatile int*)__null) = 6640; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
6641
6642 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(threadPool->SetIdleThreadLimit(kMaxIdleConnectionThreadCount
))), 1)))), 1))) { } else { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(threadPool->SetIdleThreadLimit(kMaxIdleConnectionThreadCount))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6643); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(threadPool->SetIdleThreadLimit(kMaxIdleConnectionThreadCount))"
")"); do { *((volatile int*)__null) = 6643; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
6643 threadPool->SetIdleThreadLimit(kMaxIdleConnectionThreadCount))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(threadPool->SetIdleThreadLimit(kMaxIdleConnectionThreadCount
))), 1)))), 1))) { } else { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(threadPool->SetIdleThreadLimit(kMaxIdleConnectionThreadCount))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6643); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(threadPool->SetIdleThreadLimit(kMaxIdleConnectionThreadCount))"
")"); do { *((volatile int*)__null) = 6643; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
6644
6645 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(threadPool->SetIdleThreadMaximumTimeout(kConnectionThreadMaxIdleMS
))), 1)))), 1))) { } else { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(kConnectionThreadMaxIdleMS))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6646); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(kConnectionThreadMaxIdleMS))"
")"); do { *((volatile int*)__null) = 6646; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
6646 threadPool->SetIdleThreadMaximumTimeout(kConnectionThreadMaxIdleMS))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(threadPool->SetIdleThreadMaximumTimeout(kConnectionThreadMaxIdleMS
))), 1)))), 1))) { } else { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(kConnectionThreadMaxIdleMS))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6646); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(kConnectionThreadMaxIdleMS))"
")"); do { *((volatile int*)__null) = 6646; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
6647
6648 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(threadPool->SetIdleThreadGraceTimeout(kConnectionThreadGraceIdleMS
))), 1)))), 1))) { } else { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(threadPool->SetIdleThreadGraceTimeout(kConnectionThreadGraceIdleMS))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6649); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(threadPool->SetIdleThreadGraceTimeout(kConnectionThreadGraceIdleMS))"
")"); do { *((volatile int*)__null) = 6649; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
6649 threadPool->SetIdleThreadGraceTimeout(kConnectionThreadGraceIdleMS))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(threadPool->SetIdleThreadGraceTimeout(kConnectionThreadGraceIdleMS
))), 1)))), 1))) { } else { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(threadPool->SetIdleThreadGraceTimeout(kConnectionThreadGraceIdleMS))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6649); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(threadPool->SetIdleThreadGraceTimeout(kConnectionThreadGraceIdleMS))"
")"); do { *((volatile int*)__null) = 6649; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
6650
6651 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 { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(threadPool->SetName(\"IndexedDB IO\"_ns))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6651); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(threadPool->SetName(\"IndexedDB IO\"_ns))"
")"); do { *((volatile int*)__null) = 6651; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
6652
6653 return threadPool.forget();
6654}
6655
6656} // namespace
6657
6658/*******************************************************************************
6659 * Exported functions
6660 ******************************************************************************/
6661
6662already_AddRefed<PBackgroundIDBFactoryParent> AllocPBackgroundIDBFactoryParent(
6663 const LoggingInfo& aLoggingInfo, const nsACString& aSystemLocale) {
6664 AssertIsOnBackgroundThread();
6665
6666 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"
, 6666)
) {
6667 return nullptr;
6668 }
6669
6670 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"
, 6670); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!aLoggingInfo.nextTransactionSerialNumber()" ")"); do { *((
volatile int*)__null) = 6670; __attribute__((nomerge)) ::abort
(); } while (false); } } while (false); } return aCond; }((!aLoggingInfo
.nextTransactionSerialNumber()))
||
6671 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"
, 6672); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!aLoggingInfo.nextVersionChangeTransactionSerialNumber()" ")"
); do { *((volatile int*)__null) = 6672; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((!aLoggingInfo.nextVersionChangeTransactionSerialNumber()
))
6672 !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"
, 6672); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!aLoggingInfo.nextVersionChangeTransactionSerialNumber()" ")"
); do { *((volatile int*)__null) = 6672; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((!aLoggingInfo.nextVersionChangeTransactionSerialNumber()
))
||
6673 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"
, 6673); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!aLoggingInfo.nextRequestSerialNumber()" ")"); do { *((volatile
int*)__null) = 6673; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); } return aCond; }((!aLoggingInfo
.nextRequestSerialNumber()))
) {
6674 return nullptr;
6675 }
6676
6677 SafeRefPtr<Factory> actor = Factory::Create(aLoggingInfo, aSystemLocale);
6678 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"
, 6678); AnnotateMozCrashReason("MOZ_ASSERT" "(" "actor" ")")
; do { *((volatile int*)__null) = 6678; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6679
6680 return actor.forget();
6681}
6682
6683bool RecvPBackgroundIDBFactoryConstructor(
6684 PBackgroundIDBFactoryParent* aActor, const LoggingInfo& /* aLoggingInfo */,
6685 const nsACString& /* aSystemLocale */) {
6686 AssertIsOnBackgroundThread();
6687 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"
, 6687); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { *((volatile int*)__null) = 6687; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6688 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"
, 6688); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!QuotaClient::IsShuttingDownOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 6688; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6689
6690 return true;
6691}
6692
6693PBackgroundIndexedDBUtilsParent* AllocPBackgroundIndexedDBUtilsParent() {
6694 AssertIsOnBackgroundThread();
6695
6696 RefPtr<Utils> actor = new Utils();
6697
6698 return actor.forget().take();
6699}
6700
6701bool DeallocPBackgroundIndexedDBUtilsParent(
6702 PBackgroundIndexedDBUtilsParent* aActor) {
6703 AssertIsOnBackgroundThread();
6704 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"
, 6704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { *((volatile int*)__null) = 6704; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6705
6706 RefPtr<Utils> actor = dont_AddRef(static_cast<Utils*>(aActor));
6707 return true;
6708}
6709
6710bool RecvFlushPendingFileDeletions() {
6711 AssertIsOnBackgroundThread();
6712
6713 if (QuotaClient* quotaClient = QuotaClient::GetInstance()) {
6714 QM_WARNONLY_TRY(QM_TO_RESULT(quotaClient->FlushPendingFileDeletions())){auto tryResult892 = (ToResult<QMResult>(quotaClient->
FlushPendingFileDeletions())); static_assert(std::is_empty_v<
typename decltype(tryResult892)::ok_type>); if ((__builtin_expect
(!!(tryResult892.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult<QMResult>(quotaClient->FlushPendingFileDeletions())"
, tryResult892.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6714, mozilla::dom::quota::Severity::Warning); }}
;
6715 }
6716
6717 return true;
6718}
6719
6720RefPtr<mozilla::dom::quota::Client> CreateQuotaClient() {
6721 AssertIsOnBackgroundThread();
6722
6723 return MakeRefPtr<QuotaClient>();
6724}
6725
6726nsresult DatabaseFileManager::AsyncDeleteFile(int64_t aFileId) {
6727 AssertIsOnBackgroundThread();
6728 MOZ_ASSERT(!mFileInfos.Contains(aFileId))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mFileInfos.Contains(aFileId))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mFileInfos.Contains(aFileId
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!mFileInfos.Contains(aFileId)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6728); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileInfos.Contains(aFileId)"
")"); do { *((volatile int*)__null) = 6728; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6729
6730 QuotaClient* quotaClient = QuotaClient::GetInstance();
6731 if (quotaClient) {
6732 QM_TRY(MOZ_TO_RESULT(quotaClient->AsyncDeleteFile(this, aFileId))){auto tryResult893 = (ToResult(quotaClient->AsyncDeleteFile
(this, aFileId))); static_assert(std::is_empty_v<typename decltype
(tryResult893)::ok_type>); if ((__builtin_expect(!!(tryResult893
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(quotaClient->AsyncDeleteFile(this, aFileId))"
, tryResult893.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6732, mozilla::dom::quota::Severity::Error); return tryResult893
.propagateErr(); }}
;
6733 }
6734
6735 return NS_OK;
6736}
6737
6738/*******************************************************************************
6739 * DatabaseConnection implementation
6740 ******************************************************************************/
6741
6742DatabaseConnection::DatabaseConnection(
6743 MovingNotNull<nsCOMPtr<mozIStorageConnection>> aStorageConnection,
6744 MovingNotNull<SafeRefPtr<DatabaseFileManager>> aFileManager)
6745 : CachingDatabaseConnection(std::move(aStorageConnection)),
6746 mFileManager(std::move(aFileManager)),
6747 mLastDurability(IDBTransaction::Durability::Default),
6748 mInReadTransaction(false),
6749 mInWriteTransaction(false)
6750#ifdef DEBUG1
6751 ,
6752 mDEBUGSavepointCount(0)
6753#endif
6754{
6755 AssertIsOnConnectionThread();
6756 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"
, 6756); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileManager"
")"); do { *((volatile int*)__null) = 6756; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6757}
6758
6759DatabaseConnection::~DatabaseConnection() {
6760 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"
, 6760); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileManager"
")"); do { *((volatile int*)__null) = 6760; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6761 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"
, 6761); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mUpdateRefcountFunction"
")"); do { *((volatile int*)__null) = 6761; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6762 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"
, 6762); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "!mInWriteTransaction"
")"); do { *((volatile int*)__null) = 6762; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6763 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"
, 6763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDEBUGSavepointCount"
")"); do { *((volatile int*)__null) = 6763; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6764}
6765
6766nsresult DatabaseConnection::Init() {
6767 AssertIsOnConnectionThread();
6768 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"
, 6768); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction"
")"); do { *((volatile int*)__null) = 6768; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6769 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"
, 6769); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction"
")"); do { *((volatile int*)__null) = 6769; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6770
6771 QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("BEGIN;"_ns))){auto tryResult894 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns
))); static_assert(std::is_empty_v<typename decltype(tryResult894
)::ok_type>); if ((__builtin_expect(!!(tryResult894.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns))"
, tryResult894.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6771, mozilla::dom::quota::Severity::Error); return tryResult894
.propagateErr(); }}
;
6772
6773 mInReadTransaction = true;
6774
6775 return NS_OK;
6776}
6777
6778nsresult DatabaseConnection::BeginWriteTransaction(
6779 const IDBTransaction::Durability aDurability) {
6780 AssertIsOnConnectionThread();
6781 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"
, 6781); AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()"
")"); do { *((volatile int*)__null) = 6781; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6782 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"
, 6782); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInReadTransaction"
")"); do { *((volatile int*)__null) = 6782; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6783 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"
, 6783); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction"
")"); do { *((volatile int*)__null) = 6783; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6784
6785 AUTO_PROFILER_LABEL("DatabaseConnection::BeginWriteTransaction", DOM)mozilla::AutoProfilerLabel raiiObject6785( "DatabaseConnection::BeginWriteTransaction"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
6786
6787 // Release our read locks.
6788 QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("ROLLBACK;"_ns))){auto tryResult895 = (ToResult(ExecuteCachedStatement("ROLLBACK;"_ns
))); static_assert(std::is_empty_v<typename decltype(tryResult895
)::ok_type>); if ((__builtin_expect(!!(tryResult895.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"ROLLBACK;\"_ns))"
, tryResult895.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6788, mozilla::dom::quota::Severity::Error); return tryResult895
.propagateErr(); }}
;
6789
6790 mInReadTransaction = false;
6791
6792 if (mLastDurability != aDurability) {
6793 auto synchronousMode = [aDurability]() -> nsLiteralCString {
6794 switch (aDurability) {
6795 case IDBTransaction::Durability::Default:
6796 return GetDefaultSynchronousMode();
6797
6798 case IDBTransaction::Durability::Strict:
6799 return "EXTRA"_ns;
6800
6801 case IDBTransaction::Durability::Relaxed:
6802 return "OFF"_ns;
6803
6804 default:
6805 MOZ_CRASH("Unknown CheckpointMode!")do { do { } while (false); MOZ_ReportCrash("" "Unknown CheckpointMode!"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6805); AnnotateMozCrashReason("MOZ_CRASH(" "Unknown CheckpointMode!"
")"); do { *((volatile int*)__null) = 6805; __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
6806 }
6807 }();
6808
6809 QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("PRAGMA synchronous = "_ns +{auto tryResult896 = (ToResult(ExecuteCachedStatement("PRAGMA synchronous = "_ns
+ synchronousMode + ";"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult896)::ok_type>); if ((__builtin_expect
(!!(tryResult896.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ExecuteCachedStatement(\"PRAGMA synchronous = \"_ns + synchronousMode + \";\"_ns))"
, tryResult896.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6810, mozilla::dom::quota::Severity::Error); return tryResult896
.propagateErr(); }}
6810 synchronousMode + ";"_ns))){auto tryResult896 = (ToResult(ExecuteCachedStatement("PRAGMA synchronous = "_ns
+ synchronousMode + ";"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult896)::ok_type>); if ((__builtin_expect
(!!(tryResult896.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ExecuteCachedStatement(\"PRAGMA synchronous = \"_ns + synchronousMode + \";\"_ns))"
, tryResult896.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6810, mozilla::dom::quota::Severity::Error); return tryResult896
.propagateErr(); }}
;
6811
6812 mLastDurability = aDurability;
6813 }
6814
6815 if (!mUpdateRefcountFunction) {
6816 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"
, 6816); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileManager"
")"); do { *((volatile int*)__null) = 6816; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6817
6818 RefPtr<UpdateRefcountFunction> function =
6819 new UpdateRefcountFunction(this, **mFileManager);
6820
6821 QM_TRY(MOZ_TO_RESULT(MutableStorageConnection().CreateFunction({auto tryResult897 = (ToResult(MutableStorageConnection().CreateFunction
( "update_refcount"_ns, 2, function))); static_assert(std::is_empty_v
<typename decltype(tryResult897)::ok_type>); if ((__builtin_expect
(!!(tryResult897.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(MutableStorageConnection().CreateFunction( \"update_refcount\"_ns, 2, function))"
, tryResult897.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6823, mozilla::dom::quota::Severity::Error); return tryResult897
.propagateErr(); }}
6822 "update_refcount"_ns,{auto tryResult897 = (ToResult(MutableStorageConnection().CreateFunction
( "update_refcount"_ns, 2, function))); static_assert(std::is_empty_v
<typename decltype(tryResult897)::ok_type>); if ((__builtin_expect
(!!(tryResult897.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(MutableStorageConnection().CreateFunction( \"update_refcount\"_ns, 2, function))"
, tryResult897.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6823, mozilla::dom::quota::Severity::Error); return tryResult897
.propagateErr(); }}
6823 /* aNumArguments */ 2, function))){auto tryResult897 = (ToResult(MutableStorageConnection().CreateFunction
( "update_refcount"_ns, 2, function))); static_assert(std::is_empty_v
<typename decltype(tryResult897)::ok_type>); if ((__builtin_expect
(!!(tryResult897.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(MutableStorageConnection().CreateFunction( \"update_refcount\"_ns, 2, function))"
, tryResult897.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6823, mozilla::dom::quota::Severity::Error); return tryResult897
.propagateErr(); }}
;
6824
6825 mUpdateRefcountFunction = std::move(function);
6826 }
6827
6828 // This one cannot obviously use ExecuteCachedStatement because of the custom
6829 // error handling for Execute only. If only Execute can produce
6830 // NS_ERROR_STORAGE_BUSY, we could actually use ExecuteCachedStatement and
6831 // simplify this.
6832 QM_TRY_INSPECT(const auto& beginStmt,auto tryResult898 = (BorrowCachedStatement("BEGIN IMMEDIATE;"_ns
)); if ((__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"BEGIN IMMEDIATE;\"_ns)"
, tryResult898.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6833, mozilla::dom::quota::Severity::Error); return tryResult898
.propagateErr(); } const auto& beginStmt = tryResult898.inspect
();
6833 BorrowCachedStatement("BEGIN IMMEDIATE;"_ns))auto tryResult898 = (BorrowCachedStatement("BEGIN IMMEDIATE;"_ns
)); if ((__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"BEGIN IMMEDIATE;\"_ns)"
, tryResult898.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6833, mozilla::dom::quota::Severity::Error); return tryResult898
.propagateErr(); } const auto& beginStmt = tryResult898.inspect
();
;
6834
6835 QM_TRY(QM_OR_ELSE_WARN_IF({auto tryResult899 = (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"
, 6861, 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"
, 6844); 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(tryResult899)::ok_type>); if ((__builtin_expect
(!!(tryResult899.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\", 6861, 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\", 6844); 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); }))"
, tryResult899.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6861, mozilla::dom::quota::Severity::Error); return tryResult899
.propagateErr(); }}
6836 // Expression.{auto tryResult899 = (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"
, 6861, 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"
, 6844); 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(tryResult899)::ok_type>); if ((__builtin_expect
(!!(tryResult899.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\", 6861, 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\", 6844); 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); }))"
, tryResult899.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6861, mozilla::dom::quota::Severity::Error); return tryResult899
.propagateErr(); }}
6837 MOZ_TO_RESULT(beginStmt->Execute()),{auto tryResult899 = (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"
, 6861, 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"
, 6844); 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(tryResult899)::ok_type>); if ((__builtin_expect
(!!(tryResult899.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\", 6861, 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\", 6844); 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); }))"
, tryResult899.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6861, mozilla::dom::quota::Severity::Error); return tryResult899
.propagateErr(); }}
6838 // Predicate.{auto tryResult899 = (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"
, 6861, 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"
, 6844); 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(tryResult899)::ok_type>); if ((__builtin_expect
(!!(tryResult899.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\", 6861, 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\", 6844); 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); }))"
, tryResult899.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6861, mozilla::dom::quota::Severity::Error); return tryResult899
.propagateErr(); }}
6839 IsSpecificError<NS_ERROR_STORAGE_BUSY>,{auto tryResult899 = (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"
, 6861, 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"
, 6844); 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(tryResult899)::ok_type>); if ((__builtin_expect
(!!(tryResult899.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\", 6861, 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\", 6844); 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); }))"
, tryResult899.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6861, mozilla::dom::quota::Severity::Error); return tryResult899
.propagateErr(); }}
6840 // Fallback.{auto tryResult899 = (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"
, 6861, 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"
, 6844); 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(tryResult899)::ok_type>); if ((__builtin_expect
(!!(tryResult899.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\", 6861, 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\", 6844); 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); }))"
, tryResult899.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6861, mozilla::dom::quota::Severity::Error); return tryResult899
.propagateErr(); }}
6841 ([&beginStmt](nsresult rv) {{auto tryResult899 = (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"
, 6861, 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"
, 6844); 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(tryResult899)::ok_type>); if ((__builtin_expect
(!!(tryResult899.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\", 6861, 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\", 6844); 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); }))"
, tryResult899.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6861, mozilla::dom::quota::Severity::Error); return tryResult899
.propagateErr(); }}
6842 NS_WARNING({auto tryResult899 = (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"
, 6861, 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"
, 6844); 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(tryResult899)::ok_type>); if ((__builtin_expect
(!!(tryResult899.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\", 6861, 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\", 6844); 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); }))"
, tryResult899.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6861, mozilla::dom::quota::Severity::Error); return tryResult899
.propagateErr(); }}
6843 "Received NS_ERROR_STORAGE_BUSY when attempting to start write "{auto tryResult899 = (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"
, 6861, 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"
, 6844); 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(tryResult899)::ok_type>); if ((__builtin_expect
(!!(tryResult899.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\", 6861, 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\", 6844); 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); }))"
, tryResult899.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6861, mozilla::dom::quota::Severity::Error); return tryResult899
.propagateErr(); }}
6844 "transaction, retrying for up to 10 seconds");{auto tryResult899 = (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"
, 6861, 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"
, 6844); 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(tryResult899)::ok_type>); if ((__builtin_expect
(!!(tryResult899.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\", 6861, 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\", 6844); 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); }))"
, tryResult899.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6861, mozilla::dom::quota::Severity::Error); return tryResult899
.propagateErr(); }}
6845
6846 // Another thread must be using the database. Wait up to 10 seconds{auto tryResult899 = (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"
, 6861, 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"
, 6844); 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(tryResult899)::ok_type>); if ((__builtin_expect
(!!(tryResult899.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\", 6861, 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\", 6844); 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); }))"
, tryResult899.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6861, mozilla::dom::quota::Severity::Error); return tryResult899
.propagateErr(); }}
6847 // for that to complete.{auto tryResult899 = (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"
, 6861, 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"
, 6844); 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(tryResult899)::ok_type>); if ((__builtin_expect
(!!(tryResult899.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\", 6861, 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\", 6844); 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); }))"
, tryResult899.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6861, mozilla::dom::quota::Severity::Error); return tryResult899
.propagateErr(); }}
6848 const TimeStamp start = TimeStamp::NowLoRes();{auto tryResult899 = (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"
, 6861, 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"
, 6844); 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(tryResult899)::ok_type>); if ((__builtin_expect
(!!(tryResult899.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\", 6861, 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\", 6844); 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); }))"
, tryResult899.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6861, mozilla::dom::quota::Severity::Error); return tryResult899
.propagateErr(); }}
6849
6850 while (true) {{auto tryResult899 = (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"
, 6861, 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"
, 6844); 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(tryResult899)::ok_type>); if ((__builtin_expect
(!!(tryResult899.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\", 6861, 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\", 6844); 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); }))"
, tryResult899.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6861, mozilla::dom::quota::Severity::Error); return tryResult899
.propagateErr(); }}
6851 PR_Sleep(PR_MillisecondsToInterval(100));{auto tryResult899 = (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"
, 6861, 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"
, 6844); 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(tryResult899)::ok_type>); if ((__builtin_expect
(!!(tryResult899.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\", 6861, 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\", 6844); 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); }))"
, tryResult899.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6861, mozilla::dom::quota::Severity::Error); return tryResult899
.propagateErr(); }}
6852
6853 rv = beginStmt->Execute();{auto tryResult899 = (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"
, 6861, 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"
, 6844); 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(tryResult899)::ok_type>); if ((__builtin_expect
(!!(tryResult899.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\", 6861, 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\", 6844); 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); }))"
, tryResult899.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6861, mozilla::dom::quota::Severity::Error); return tryResult899
.propagateErr(); }}
6854 if (rv != NS_ERROR_STORAGE_BUSY ||{auto tryResult899 = (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"
, 6861, 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"
, 6844); 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(tryResult899)::ok_type>); if ((__builtin_expect
(!!(tryResult899.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\", 6861, 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\", 6844); 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); }))"
, tryResult899.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6861, mozilla::dom::quota::Severity::Error); return tryResult899
.propagateErr(); }}
6855 TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) {{auto tryResult899 = (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"
, 6861, 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"
, 6844); 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(tryResult899)::ok_type>); if ((__builtin_expect
(!!(tryResult899.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\", 6861, 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\", 6844); 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); }))"
, tryResult899.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6861, mozilla::dom::quota::Severity::Error); return tryResult899
.propagateErr(); }}
6856 break;{auto tryResult899 = (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"
, 6861, 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"
, 6844); 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(tryResult899)::ok_type>); if ((__builtin_expect
(!!(tryResult899.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\", 6861, 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\", 6844); 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); }))"
, tryResult899.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6861, mozilla::dom::quota::Severity::Error); return tryResult899
.propagateErr(); }}
6857 }{auto tryResult899 = (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"
, 6861, 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"
, 6844); 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(tryResult899)::ok_type>); if ((__builtin_expect
(!!(tryResult899.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\", 6861, 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\", 6844); 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); }))"
, tryResult899.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6861, mozilla::dom::quota::Severity::Error); return tryResult899
.propagateErr(); }}
6858 }{auto tryResult899 = (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"
, 6861, 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"
, 6844); 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(tryResult899)::ok_type>); if ((__builtin_expect
(!!(tryResult899.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\", 6861, 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\", 6844); 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); }))"
, tryResult899.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6861, mozilla::dom::quota::Severity::Error); return tryResult899
.propagateErr(); }}
6859
6860 return MOZ_TO_RESULT(rv);{auto tryResult899 = (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"
, 6861, 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"
, 6844); 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(tryResult899)::ok_type>); if ((__builtin_expect
(!!(tryResult899.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\", 6861, 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\", 6844); 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); }))"
, tryResult899.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6861, mozilla::dom::quota::Severity::Error); return tryResult899
.propagateErr(); }}
6861 }))){auto tryResult899 = (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"
, 6861, 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"
, 6844); 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(tryResult899)::ok_type>); if ((__builtin_expect
(!!(tryResult899.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\", 6861, 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\", 6844); 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); }))"
, tryResult899.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6861, mozilla::dom::quota::Severity::Error); return tryResult899
.propagateErr(); }}
;
6862
6863 mInWriteTransaction = true;
6864
6865 return NS_OK;
6866}
6867
6868nsresult DatabaseConnection::CommitWriteTransaction() {
6869 AssertIsOnConnectionThread();
6870 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"
, 6870); AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()"
")"); do { *((volatile int*)__null) = 6870; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6871 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"
, 6871); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction"
")"); do { *((volatile int*)__null) = 6871; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6872 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"
, 6872); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInWriteTransaction"
")"); do { *((volatile int*)__null) = 6872; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6873
6874 AUTO_PROFILER_LABEL("DatabaseConnection::CommitWriteTransaction", DOM)mozilla::AutoProfilerLabel raiiObject6874( "DatabaseConnection::CommitWriteTransaction"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
6875
6876 QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("COMMIT;"_ns))){auto tryResult900 = (ToResult(ExecuteCachedStatement("COMMIT;"_ns
))); static_assert(std::is_empty_v<typename decltype(tryResult900
)::ok_type>); if ((__builtin_expect(!!(tryResult900.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"COMMIT;\"_ns))"
, tryResult900.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6876, mozilla::dom::quota::Severity::Error); return tryResult900
.propagateErr(); }}
;
6877
6878 mInWriteTransaction = false;
6879 return NS_OK;
6880}
6881
6882void DatabaseConnection::RollbackWriteTransaction() {
6883 AssertIsOnConnectionThread();
6884 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"
, 6884); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction"
")"); do { *((volatile int*)__null) = 6884; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6885 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"
, 6885); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "HasStorageConnection()"
")"); do { *((volatile int*)__null) = 6885; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6886
6887 AUTO_PROFILER_LABEL("DatabaseConnection::RollbackWriteTransaction", DOM)mozilla::AutoProfilerLabel raiiObject6887( "DatabaseConnection::RollbackWriteTransaction"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
6888
6889 if (!mInWriteTransaction) {
6890 return;
6891 }
6892
6893 QM_WARNONLY_TRY({auto tryResult901 = (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(tryResult901)::ok_type>
); if ((__builtin_expect(!!(tryResult901.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{}; })"
, tryResult901.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6907, mozilla::dom::quota::Severity::Warning); }}
6894 BorrowCachedStatement("ROLLBACK;"_ns){auto tryResult901 = (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(tryResult901)::ok_type>
); if ((__builtin_expect(!!(tryResult901.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{}; })"
, tryResult901.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6907, mozilla::dom::quota::Severity::Warning); }}
6895 .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> {{auto tryResult901 = (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(tryResult901)::ok_type>
); if ((__builtin_expect(!!(tryResult901.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{}; })"
, tryResult901.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6907, mozilla::dom::quota::Severity::Warning); }}
6896 // This may fail if SQLite already rolled back the transaction{auto tryResult901 = (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(tryResult901)::ok_type>
); if ((__builtin_expect(!!(tryResult901.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{}; })"
, tryResult901.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6907, mozilla::dom::quota::Severity::Warning); }}
6897 // so ignore any errors.{auto tryResult901 = (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(tryResult901)::ok_type>
); if ((__builtin_expect(!!(tryResult901.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{}; })"
, tryResult901.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6907, mozilla::dom::quota::Severity::Warning); }}
6898
6899 // XXX ROLLBACK can fail quite normmally if a previous statement{auto tryResult901 = (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(tryResult901)::ok_type>
); if ((__builtin_expect(!!(tryResult901.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{}; })"
, tryResult901.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6907, mozilla::dom::quota::Severity::Warning); }}
6900 // failed to execute successfully so SQLite rolled back the{auto tryResult901 = (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(tryResult901)::ok_type>
); if ((__builtin_expect(!!(tryResult901.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{}; })"
, tryResult901.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6907, mozilla::dom::quota::Severity::Warning); }}
6901 // transaction already. However, if it failed because of some other{auto tryResult901 = (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(tryResult901)::ok_type>
); if ((__builtin_expect(!!(tryResult901.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{}; })"
, tryResult901.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6907, mozilla::dom::quota::Severity::Warning); }}
6902 // reason, we could try to close the connection.{auto tryResult901 = (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(tryResult901)::ok_type>
); if ((__builtin_expect(!!(tryResult901.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{}; })"
, tryResult901.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6907, mozilla::dom::quota::Severity::Warning); }}
6903 Unused << stmt->Execute();{auto tryResult901 = (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(tryResult901)::ok_type>
); if ((__builtin_expect(!!(tryResult901.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{}; })"
, tryResult901.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6907, mozilla::dom::quota::Severity::Warning); }}
6904
6905 self.mInWriteTransaction = false;{auto tryResult901 = (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(tryResult901)::ok_type>
); if ((__builtin_expect(!!(tryResult901.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{}; })"
, tryResult901.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6907, mozilla::dom::quota::Severity::Warning); }}
6906 return Ok{};{auto tryResult901 = (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(tryResult901)::ok_type>
); if ((__builtin_expect(!!(tryResult901.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{}; })"
, tryResult901.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6907, mozilla::dom::quota::Severity::Warning); }}
6907 })){auto tryResult901 = (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(tryResult901)::ok_type>
); if ((__builtin_expect(!!(tryResult901.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{}; })"
, tryResult901.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6907, mozilla::dom::quota::Severity::Warning); }}
;
6908}
6909
6910void DatabaseConnection::FinishWriteTransaction() {
6911 AssertIsOnConnectionThread();
6912 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"
, 6912); AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()"
")"); do { *((volatile int*)__null) = 6912; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6913 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"
, 6913); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction"
")"); do { *((volatile int*)__null) = 6913; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6914 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"
, 6914); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction"
")"); do { *((volatile int*)__null) = 6914; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6915
6916 AUTO_PROFILER_LABEL("DatabaseConnection::FinishWriteTransaction", DOM)mozilla::AutoProfilerLabel raiiObject6916( "DatabaseConnection::FinishWriteTransaction"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
6917
6918 if (mUpdateRefcountFunction) {
6919 mUpdateRefcountFunction->Reset();
6920 }
6921
6922 QM_WARNONLY_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("BEGIN;"_ns)){auto tryResult902 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns
)) .andThen([&](const auto) -> Result<Ok, nsresult>
{ mInReadTransaction = true; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult902)::ok_type>
); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns)) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })"
, tryResult902.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6926, mozilla::dom::quota::Severity::Warning); }}
6923 .andThen([&](const auto) -> Result<Ok, nsresult> {{auto tryResult902 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns
)) .andThen([&](const auto) -> Result<Ok, nsresult>
{ mInReadTransaction = true; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult902)::ok_type>
); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns)) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })"
, tryResult902.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6926, mozilla::dom::quota::Severity::Warning); }}
6924 mInReadTransaction = true;{auto tryResult902 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns
)) .andThen([&](const auto) -> Result<Ok, nsresult>
{ mInReadTransaction = true; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult902)::ok_type>
); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns)) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })"
, tryResult902.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6926, mozilla::dom::quota::Severity::Warning); }}
6925 return Ok{};{auto tryResult902 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns
)) .andThen([&](const auto) -> Result<Ok, nsresult>
{ mInReadTransaction = true; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult902)::ok_type>
); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns)) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })"
, tryResult902.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6926, mozilla::dom::quota::Severity::Warning); }}
6926 })){auto tryResult902 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns
)) .andThen([&](const auto) -> Result<Ok, nsresult>
{ mInReadTransaction = true; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult902)::ok_type>
); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns)) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })"
, tryResult902.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6926, mozilla::dom::quota::Severity::Warning); }}
;
6927}
6928
6929nsresult DatabaseConnection::StartSavepoint() {
6930 AssertIsOnConnectionThread();
6931 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"
, 6931); AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()"
")"); do { *((volatile int*)__null) = 6931; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6932 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"
, 6932); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mUpdateRefcountFunction"
")"); do { *((volatile int*)__null) = 6932; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6933 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"
, 6933); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInWriteTransaction"
")"); do { *((volatile int*)__null) = 6933; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6934
6935 AUTO_PROFILER_LABEL("DatabaseConnection::StartSavepoint", DOM)mozilla::AutoProfilerLabel raiiObject6935( "DatabaseConnection::StartSavepoint"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
6936
6937 QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement(SAVEPOINT_CLAUSE))){auto tryResult903 = (ToResult(ExecuteCachedStatement("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(\"SAVEPOINT sp;\"_ns))"
, tryResult903.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6937, mozilla::dom::quota::Severity::Error); return tryResult903
.propagateErr(); }}
;
6938
6939 mUpdateRefcountFunction->StartSavepoint();
6940
6941#ifdef DEBUG1
6942 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"
, 6942); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGSavepointCount < (4294967295U)"
")"); do { *((volatile int*)__null) = 6942; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6943 mDEBUGSavepointCount++;
6944#endif
6945
6946 return NS_OK;
6947}
6948
6949nsresult DatabaseConnection::ReleaseSavepoint() {
6950 AssertIsOnConnectionThread();
6951 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"
, 6951); AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()"
")"); do { *((volatile int*)__null) = 6951; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6952 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"
, 6952); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mUpdateRefcountFunction"
")"); do { *((volatile int*)__null) = 6952; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6953 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"
, 6953); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInWriteTransaction"
")"); do { *((volatile int*)__null) = 6953; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6954
6955 AUTO_PROFILER_LABEL("DatabaseConnection::ReleaseSavepoint", DOM)mozilla::AutoProfilerLabel raiiObject6955( "DatabaseConnection::ReleaseSavepoint"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
6956
6957 QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("RELEASE "_ns SAVEPOINT_CLAUSE))){auto tryResult904 = (ToResult(ExecuteCachedStatement("RELEASE "_ns
"SAVEPOINT sp;"_ns))); static_assert(std::is_empty_v<typename
decltype(tryResult904)::ok_type>); if ((__builtin_expect(
!!(tryResult904.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ExecuteCachedStatement(\"RELEASE \"_ns \"SAVEPOINT sp;\"_ns))"
, tryResult904.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6957, mozilla::dom::quota::Severity::Error); return tryResult904
.propagateErr(); }}
;
6958
6959 mUpdateRefcountFunction->ReleaseSavepoint();
6960
6961#ifdef DEBUG1
6962 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"
, 6962); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGSavepointCount"
")"); do { *((volatile int*)__null) = 6962; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6963 mDEBUGSavepointCount--;
6964#endif
6965
6966 return NS_OK;
6967}
6968
6969nsresult DatabaseConnection::RollbackSavepoint() {
6970 AssertIsOnConnectionThread();
6971 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"
, 6971); AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()"
")"); do { *((volatile int*)__null) = 6971; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6972 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"
, 6972); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mUpdateRefcountFunction"
")"); do { *((volatile int*)__null) = 6972; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6973 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"
, 6973); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInWriteTransaction"
")"); do { *((volatile int*)__null) = 6973; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6974
6975 AUTO_PROFILER_LABEL("DatabaseConnection::RollbackSavepoint", DOM)mozilla::AutoProfilerLabel raiiObject6975( "DatabaseConnection::RollbackSavepoint"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
6976
6977#ifdef DEBUG1
6978 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"
, 6978); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGSavepointCount"
")"); do { *((volatile int*)__null) = 6978; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6979 mDEBUGSavepointCount--;
6980#endif
6981
6982 mUpdateRefcountFunction->RollbackSavepoint();
6983
6984 QM_TRY_INSPECT(const auto& stmt,auto tryResult905 = (BorrowCachedStatement("ROLLBACK TO "_ns "SAVEPOINT sp;"_ns
)); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK TO \"_ns \"SAVEPOINT sp;\"_ns)"
, tryResult905.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6985, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); } const auto& stmt = tryResult905.inspect
();
6985 BorrowCachedStatement("ROLLBACK TO "_ns SAVEPOINT_CLAUSE))auto tryResult905 = (BorrowCachedStatement("ROLLBACK TO "_ns "SAVEPOINT sp;"_ns
)); if ((__builtin_expect(!!(tryResult905.isErr()), 0))) { mozilla
::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK TO \"_ns \"SAVEPOINT sp;\"_ns)"
, tryResult905.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 6985, mozilla::dom::quota::Severity::Error); return tryResult905
.propagateErr(); } const auto& stmt = tryResult905.inspect
();
;
6986
6987 // This may fail if SQLite already rolled back the savepoint so ignore any
6988 // errors.
6989 Unused << stmt->Execute();
6990
6991 return NS_OK;
6992}
6993
6994nsresult DatabaseConnection::CheckpointInternal(CheckpointMode aMode) {
6995 AssertIsOnConnectionThread();
6996 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"
, 6996); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction"
")"); do { *((volatile int*)__null) = 6996; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6997 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"
, 6997); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction"
")"); do { *((volatile int*)__null) = 6997; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
6998
6999 AUTO_PROFILER_LABEL("DatabaseConnection::CheckpointInternal", DOM)mozilla::AutoProfilerLabel raiiObject6999( "DatabaseConnection::CheckpointInternal"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7000
7001 nsAutoCString stmtString;
7002 stmtString.AssignLiteral("PRAGMA wal_checkpoint(");
7003
7004 switch (aMode) {
7005 case CheckpointMode::Full:
7006 // Ensures that the database is completely checkpointed and flushed to
7007 // disk.
7008 stmtString.AppendLiteral("FULL");
7009 break;
7010
7011 case CheckpointMode::Restart:
7012 // Like Full, but also ensures that the next write will start overwriting
7013 // the existing WAL file rather than letting the WAL file grow.
7014 stmtString.AppendLiteral("RESTART");
7015 break;
7016
7017 case CheckpointMode::Truncate:
7018 // Like Restart but also truncates the existing WAL file.
7019 stmtString.AppendLiteral("TRUNCATE");
7020 break;
7021
7022 default:
7023 MOZ_CRASH("Unknown CheckpointMode!")do { do { } while (false); MOZ_ReportCrash("" "Unknown CheckpointMode!"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7023); AnnotateMozCrashReason("MOZ_CRASH(" "Unknown CheckpointMode!"
")"); do { *((volatile int*)__null) = 7023; __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
7024 }
7025
7026 stmtString.AppendLiteral(");");
7027
7028 QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement(stmtString))){auto tryResult906 = (ToResult(ExecuteCachedStatement(stmtString
))); static_assert(std::is_empty_v<typename decltype(tryResult906
)::ok_type>); if ((__builtin_expect(!!(tryResult906.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(ExecuteCachedStatement(stmtString))"
, tryResult906.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7028, mozilla::dom::quota::Severity::Error); return tryResult906
.propagateErr(); }}
;
7029
7030 return NS_OK;
7031}
7032
7033void DatabaseConnection::DoIdleProcessing(bool aNeedsCheckpoint,
7034 const Atomic<bool>& aInterrupted) {
7035 AssertIsOnConnectionThread();
7036 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"
, 7036); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInReadTransaction"
")"); do { *((volatile int*)__null) = 7036; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7037 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"
, 7037); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction"
")"); do { *((volatile int*)__null) = 7037; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7038
7039 AUTO_PROFILER_LABEL("DatabaseConnection::DoIdleProcessing", DOM)mozilla::AutoProfilerLabel raiiObject7039( "DatabaseConnection::DoIdleProcessing"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7040
7041 CachingDatabaseConnection::CachedStatement freelistStmt;
7042 const uint32_t freelistCount = [this, &freelistStmt] {
7043 QM_TRY_RETURN(GetFreelistCount(freelistStmt), 0u){auto tryResult907 = (GetFreelistCount(freelistStmt)); if ((__builtin_expect
(!!(tryResult907.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult907.unwrapErr(); mozilla::dom::quota
::HandleError("GetFreelistCount(freelistStmt)", tryResult907.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7043, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "GetFreelistCount(freelistStmt)"
, tryTempError, 0u); } return tryResult907.unwrap();}
;
7044 }();
7045
7046 CachedStatement rollbackStmt;
7047 CachedStatement beginStmt;
7048 if (aNeedsCheckpoint || freelistCount) {
7049 QM_TRY_UNWRAP(rollbackStmt, GetCachedStatement("ROLLBACK;"_ns), QM_VOID)auto tryResult908 = (GetCachedStatement("ROLLBACK;"_ns)); if (
(__builtin_expect(!!(tryResult908.isErr()), 0))) { auto tryTempError
__attribute__((__unused__)) = tryResult908.unwrapErr(); mozilla
::dom::quota::HandleError("GetCachedStatement(\"ROLLBACK;\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7049, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } rollbackStmt = tryResult908.unwrap();
;
7050 QM_TRY_UNWRAP(beginStmt, GetCachedStatement("BEGIN;"_ns), QM_VOID)auto tryResult909 = (GetCachedStatement("BEGIN;"_ns)); if ((__builtin_expect
(!!(tryResult909.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult909.unwrapErr(); mozilla::dom::quota
::HandleError("GetCachedStatement(\"BEGIN;\"_ns)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7050, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } beginStmt = tryResult909.unwrap();
;
7051
7052 // Release the connection's normal transaction. It's possible that it could
7053 // fail, but that isn't a problem here.
7054 Unused << rollbackStmt.Borrow()->Execute();
7055
7056 mInReadTransaction = false;
7057 }
7058
7059 const bool freedSomePages =
7060 freelistCount && [this, &freelistStmt, &rollbackStmt, freelistCount,
7061 aNeedsCheckpoint, &aInterrupted] {
7062 // Warn in case of an error, but do not propagate it. Just indicate we
7063 // didn't free any pages.
7064 QM_TRY_INSPECT(auto tryResult910 = (ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt
, freelistCount, aNeedsCheckpoint, aInterrupted)); if ((__builtin_expect
(!!(tryResult910.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult910.unwrapErr(); mozilla::dom::quota
::HandleError("ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7068, 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 = tryResult910.
inspect();
7065 const bool& res,auto tryResult910 = (ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt
, freelistCount, aNeedsCheckpoint, aInterrupted)); if ((__builtin_expect
(!!(tryResult910.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult910.unwrapErr(); mozilla::dom::quota
::HandleError("ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7068, 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 = tryResult910.
inspect();
7066 ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount,auto tryResult910 = (ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt
, freelistCount, aNeedsCheckpoint, aInterrupted)); if ((__builtin_expect
(!!(tryResult910.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult910.unwrapErr(); mozilla::dom::quota
::HandleError("ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7068, 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 = tryResult910.
inspect();
7067 aNeedsCheckpoint, aInterrupted),auto tryResult910 = (ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt
, freelistCount, aNeedsCheckpoint, aInterrupted)); if ((__builtin_expect
(!!(tryResult910.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult910.unwrapErr(); mozilla::dom::quota
::HandleError("ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7068, 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 = tryResult910.
inspect();
7068 false)auto tryResult910 = (ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt
, freelistCount, aNeedsCheckpoint, aInterrupted)); if ((__builtin_expect
(!!(tryResult910.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult910.unwrapErr(); mozilla::dom::quota
::HandleError("ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7068, 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 = tryResult910.
inspect();
;
7069
7070 // Make sure we didn't leave a transaction running.
7071 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"
, 7071); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction"
")"); do { *((volatile int*)__null) = 7071; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7072 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"
, 7072); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction"
")"); do { *((volatile int*)__null) = 7072; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7073
7074 return res;
7075 }();
7076
7077 // Truncate the WAL if we were asked to or if we managed to free some space.
7078 if (aNeedsCheckpoint || freedSomePages) {
7079 QM_WARNONLY_TRY(QM_TO_RESULT(CheckpointInternal(CheckpointMode::Truncate))){auto tryResult911 = (ToResult<QMResult>(CheckpointInternal
(CheckpointMode::Truncate))); static_assert(std::is_empty_v<
typename decltype(tryResult911)::ok_type>); if ((__builtin_expect
(!!(tryResult911.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult<QMResult>(CheckpointInternal(CheckpointMode::Truncate))"
, tryResult911.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7079, mozilla::dom::quota::Severity::Warning); }}
;
7080 }
7081
7082 // Finally try to restart the read transaction if we rolled it back earlier.
7083 if (beginStmt) {
7084 QM_WARNONLY_TRY({auto tryResult912 = (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(tryResult912
)::ok_type>); if ((__builtin_expect(!!(tryResult912.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })"
, tryResult912.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7089, mozilla::dom::quota::Severity::Warning); }}
7085 MOZ_TO_RESULT(beginStmt.Borrow()->Execute()){auto tryResult912 = (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(tryResult912
)::ok_type>); if ((__builtin_expect(!!(tryResult912.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })"
, tryResult912.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7089, mozilla::dom::quota::Severity::Warning); }}
7086 .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> {{auto tryResult912 = (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(tryResult912
)::ok_type>); if ((__builtin_expect(!!(tryResult912.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })"
, tryResult912.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7089, mozilla::dom::quota::Severity::Warning); }}
7087 self.mInReadTransaction = true;{auto tryResult912 = (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(tryResult912
)::ok_type>); if ((__builtin_expect(!!(tryResult912.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })"
, tryResult912.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7089, mozilla::dom::quota::Severity::Warning); }}
7088 return Ok{};{auto tryResult912 = (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(tryResult912
)::ok_type>); if ((__builtin_expect(!!(tryResult912.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })"
, tryResult912.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7089, mozilla::dom::quota::Severity::Warning); }}
7089 })){auto tryResult912 = (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(tryResult912
)::ok_type>); if ((__builtin_expect(!!(tryResult912.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })"
, tryResult912.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7089, mozilla::dom::quota::Severity::Warning); }}
;
7090 }
7091}
7092
7093Result<bool, nsresult> DatabaseConnection::ReclaimFreePagesWhileIdle(
7094 CachedStatement& aFreelistStatement, CachedStatement& aRollbackStatement,
7095 uint32_t aFreelistCount, bool aNeedsCheckpoint,
7096 const Atomic<bool>& aInterrupted) {
7097 AssertIsOnConnectionThread();
7098 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"
, 7098); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFreelistStatement"
")"); do { *((volatile int*)__null) = 7098; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7099 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"
, 7099); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aRollbackStatement"
")"); do { *((volatile int*)__null) = 7099; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7100 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"
, 7100); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFreelistCount"
")"); do { *((volatile int*)__null) = 7100; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
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 AUTO_PROFILER_LABEL("DatabaseConnection::ReclaimFreePagesWhileIdle", DOM)mozilla::AutoProfilerLabel raiiObject7104( "DatabaseConnection::ReclaimFreePagesWhileIdle"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7105
7106 uint32_t pauseOnConnectionThreadMs = StaticPrefs::
7107 dom_indexedDB_connectionIdleMaintenance_pauseOnConnectionThreadMs();
7108 if (pauseOnConnectionThreadMs > 0) {
7109 PR_Sleep(PR_MillisecondsToInterval(pauseOnConnectionThreadMs));
7110 }
7111
7112 // Make sure we don't keep working if anything else needs this thread.
7113 if (aInterrupted) {
7114 return false;
7115 }
7116
7117 // Make all the statements we'll need up front.
7118
7119 // Only try to free 10% at a time so that we can bail out if this connection
7120 // suddenly becomes active or if the thread is needed otherwise.
7121 QM_TRY_INSPECT(auto tryResult913 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns
+ IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount
/ 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult913.isErr
()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)"
, tryResult913.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7126, mozilla::dom::quota::Severity::Error); return tryResult913
.propagateErr(); } const auto& incrementalVacuumStmt = tryResult913
.inspect();
7122 const auto& incrementalVacuumStmt,auto tryResult913 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns
+ IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount
/ 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult913.isErr
()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)"
, tryResult913.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7126, mozilla::dom::quota::Severity::Error); return tryResult913
.propagateErr(); } const auto& incrementalVacuumStmt = tryResult913
.inspect();
7123 GetCachedStatement(auto tryResult913 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns
+ IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount
/ 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult913.isErr
()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)"
, tryResult913.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7126, mozilla::dom::quota::Severity::Error); return tryResult913
.propagateErr(); } const auto& incrementalVacuumStmt = tryResult913
.inspect();
7124 "PRAGMA incremental_vacuum("_ns +auto tryResult913 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns
+ IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount
/ 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult913.isErr
()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)"
, tryResult913.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7126, mozilla::dom::quota::Severity::Error); return tryResult913
.propagateErr(); } const auto& incrementalVacuumStmt = tryResult913
.inspect();
7125 IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) +auto tryResult913 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns
+ IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount
/ 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult913.isErr
()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)"
, tryResult913.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7126, mozilla::dom::quota::Severity::Error); return tryResult913
.propagateErr(); } const auto& incrementalVacuumStmt = tryResult913
.inspect();
7126 ");"_ns))auto tryResult913 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns
+ IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount
/ 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult913.isErr
()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)"
, tryResult913.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7126, mozilla::dom::quota::Severity::Error); return tryResult913
.propagateErr(); } const auto& incrementalVacuumStmt = tryResult913
.inspect();
;
7127
7128 QM_TRY_INSPECT(const auto& beginImmediateStmt,auto tryResult914 = (GetCachedStatement("BEGIN IMMEDIATE;"_ns
)); if ((__builtin_expect(!!(tryResult914.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetCachedStatement(\"BEGIN IMMEDIATE;\"_ns)"
, tryResult914.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7129, mozilla::dom::quota::Severity::Error); return tryResult914
.propagateErr(); } const auto& beginImmediateStmt = tryResult914
.inspect();
7129 GetCachedStatement("BEGIN IMMEDIATE;"_ns))auto tryResult914 = (GetCachedStatement("BEGIN IMMEDIATE;"_ns
)); if ((__builtin_expect(!!(tryResult914.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetCachedStatement(\"BEGIN IMMEDIATE;\"_ns)"
, tryResult914.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7129, mozilla::dom::quota::Severity::Error); return tryResult914
.propagateErr(); } const auto& beginImmediateStmt = tryResult914
.inspect();
;
7130
7131 QM_TRY_INSPECT(const auto& commitStmt, GetCachedStatement("COMMIT;"_ns))auto tryResult915 = (GetCachedStatement("COMMIT;"_ns)); if ((
__builtin_expect(!!(tryResult915.isErr()), 0))) { mozilla::dom
::quota::HandleError("GetCachedStatement(\"COMMIT;\"_ns)", tryResult915
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7131, mozilla::dom::quota::Severity::Error); return tryResult915
.propagateErr(); } const auto& commitStmt = tryResult915.
inspect();
;
7132
7133 if (aNeedsCheckpoint) {
7134 // Freeing pages is a journaled operation, so it will require additional WAL
7135 // space. However, we're idle and are about to checkpoint anyway, so doing a
7136 // RESTART checkpoint here should allow us to reuse any existing space.
7137 QM_TRY(MOZ_TO_RESULT(CheckpointInternal(CheckpointMode::Restart))){auto tryResult916 = (ToResult(CheckpointInternal(CheckpointMode
::Restart))); static_assert(std::is_empty_v<typename decltype
(tryResult916)::ok_type>); if ((__builtin_expect(!!(tryResult916
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(CheckpointInternal(CheckpointMode::Restart))"
, tryResult916.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7137, mozilla::dom::quota::Severity::Error); return tryResult916
.propagateErr(); }}
;
7138 }
7139
7140 // Start the write transaction.
7141 QM_TRY(MOZ_TO_RESULT(beginImmediateStmt.Borrow()->Execute())){auto tryResult917 = (ToResult(beginImmediateStmt.Borrow()->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(beginImmediateStmt.Borrow()->Execute())"
, tryResult917.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7141, mozilla::dom::quota::Severity::Error); return tryResult917
.propagateErr(); }}
;
7142
7143 mInWriteTransaction = true;
7144
7145 bool freedSomePages = false;
7146
7147 const auto rollback = [&aRollbackStatement, this](const auto&) {
7148 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"
, 7148); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInWriteTransaction"
")"); do { *((volatile int*)__null) = 7148; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7149
7150 // Something failed, make sure we roll everything back.
7151 Unused << aRollbackStatement.Borrow()->Execute();
7152
7153 // XXX Is rollback infallible? Shouldn't we check the result?
7154
7155 mInWriteTransaction = false;
7156 };
7157
7158 uint64_t previousFreelistCount = (uint64_t)aFreelistCount + 1;
7159
7160 QM_TRY(CollectWhile({auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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)); }}
7161 [&aFreelistCount, &previousFreelistCount,{auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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)); }}
7162 &aInterrupted]() -> Result<bool, nsresult> {{auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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)); }}
7163 if (aInterrupted) {{auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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)); }}
7164 // On interrupt, abort and roll back this transaction. It's ok{auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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)); }}
7165 // if we never make progress here because the idle service{auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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)); }}
7166 // should eventually reclaim this space.{auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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)); }}
7167 return false;{auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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)); }}
7168 }{auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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)); }}
7169 // If we were not able to free anything, we might either see{auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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)); }}
7170 // a DB that has no auto-vacuum support at all or some other{auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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)); }}
7171 // (hopefully temporary) condition that prevents vacuum from{auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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)); }}
7172 // working. Just carry on in non-DEBUG.{auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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)); }}
7173 bool madeProgress = previousFreelistCount != aFreelistCount;{auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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)); }}
7174 previousFreelistCount = aFreelistCount;{auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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)); }}
7175 MOZ_ASSERT(madeProgress);{auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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)); }}
7176 QM_WARNONLY_TRY(MOZ_TO_RESULT(madeProgress));{auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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)); }}
7177 return madeProgress && (aFreelistCount != 0);{auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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)); }}
7178 },{auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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)); }}
7179 [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt,{auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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)); }}
7180 &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> {{auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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)); }}
7181 QM_TRY(MOZ_TO_RESULT(incrementalVacuumStmt.Borrow()->Execute()));{auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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)); }}
7182
7183 freedSomePages = true;{auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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)); }}
7184
7185 QM_TRY_UNWRAP(aFreelistCount,{auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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)); }}
7186 GetFreelistCount(aFreelistStatement));{auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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)); }}
7187
7188 return Ok{};{auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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)); }}
7189 }){auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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)); }}
7190 .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback,{auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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 this](Ok) -> Result<Ok, nsresult> {{auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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 if (aInterrupted) {{auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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 rollback(Ok{});{auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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 freedSomePages = false;{auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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 }{auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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
7197 if (freedSomePages) {{auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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 // Commit the write transaction.{auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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 QM_TRY(MOZ_TO_RESULT(commitStmt.Borrow()->Execute()),{auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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 QM_PROPAGATE,{auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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 [](const auto&) { NS_WARNING("Failed to commit!"); });{auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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
7203 mInWriteTransaction = false;{auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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 }{auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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
7206 return Ok{};{auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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 }),{auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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 QM_PROPAGATE, rollback){auto tryResult922 = (CollectWhile( [&aFreelistCount, &
previousFreelistCount, &aInterrupted]() -> Result<bool
, nsresult> { if (aInterrupted) { return false; } bool madeProgress
= previousFreelistCount != aFreelistCount; previousFreelistCount
= 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"
, 7175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress"
")"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); {auto tryResult918
= (ToResult(madeProgress)); static_assert(std::is_empty_v<
typename decltype(tryResult918)::ok_type>); if ((__builtin_expect
(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(madeProgress)", tryResult918.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress
&& (aFreelistCount != 0); }, [&aFreelistStatement
, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages
, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919
= (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult919)::ok_type>
); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())"
, tryResult919.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7181, mozilla::dom::quota::Severity::Error); return tryResult919
.propagateErr(); }}; freedSomePages = true; auto tryResult920
= (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect
(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetFreelistCount(aFreelistStatement)", tryResult920.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7186, mozilla::dom::quota::Severity::Error); return tryResult920
.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return
Ok{}; }) .andThen([&commitStmt, &freedSomePages, &
aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult
> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false
; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt
.Borrow()->Execute())); 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("ToResult(commitStmt.Borrow()->Execute())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7201, 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"
, 7201); }(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
(tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922
.isErr()), 0))) { auto tryTempError = tryResult922.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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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"
, 7208, 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\", 7175); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { *((volatile int*)__null) = 7175; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult918 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult918)::ok_type>); if ((__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult918.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7176, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult919 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult919)::ok_type>); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult919.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7181, mozilla::dom::quota::Severity::Error); return tryResult919.propagateErr(); }}; freedSomePages = true; auto tryResult920 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult920.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult920.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7186, mozilla::dom::quota::Severity::Error); return tryResult920.propagateErr(); } aFreelistCount = tryResult920.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult921 = (ToResult(commitStmt.Borrow()->Execute())); 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(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7201, 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\", 7201); }(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
7210 return freedSomePages;
7211}
7212
7213Result<uint32_t, nsresult> DatabaseConnection::GetFreelistCount(
7214 CachedStatement& aCachedStatement) {
7215 AssertIsOnConnectionThread();
7216
7217 AUTO_PROFILER_LABEL("DatabaseConnection::GetFreelistCount", DOM)mozilla::AutoProfilerLabel raiiObject7217( "DatabaseConnection::GetFreelistCount"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7218
7219 if (!aCachedStatement) {
7220 QM_TRY_UNWRAP(aCachedStatement,auto tryResult923 = (GetCachedStatement("PRAGMA freelist_count;"_ns
)); if ((__builtin_expect(!!(tryResult923.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetCachedStatement(\"PRAGMA freelist_count;\"_ns)"
, tryResult923.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7221, mozilla::dom::quota::Severity::Error); return tryResult923
.propagateErr(); } aCachedStatement = tryResult923.unwrap();
7221 GetCachedStatement("PRAGMA freelist_count;"_ns))auto tryResult923 = (GetCachedStatement("PRAGMA freelist_count;"_ns
)); if ((__builtin_expect(!!(tryResult923.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetCachedStatement(\"PRAGMA freelist_count;\"_ns)"
, tryResult923.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7221, mozilla::dom::quota::Severity::Error); return tryResult923
.propagateErr(); } aCachedStatement = tryResult923.unwrap();
;
7222 }
7223
7224 const auto borrowedStatement = aCachedStatement.Borrow();
7225
7226 QM_TRY_UNWRAP(const DebugOnly<bool> hasResult,auto tryResult924 = (::mozilla::ToResultInvokeMember( (&*
borrowedStatement), &::mozilla::detail::DerefedType<decltype
(&*borrowedStatement)>::ExecuteStep)); if ((__builtin_expect
(!!(tryResult924.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (&*borrowedStatement), &::mozilla::detail::DerefedType<decltype(&*borrowedStatement)>::ExecuteStep)"
, tryResult924.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7227, mozilla::dom::quota::Severity::Error); return tryResult924
.propagateErr(); } const DebugOnly<bool> hasResult = tryResult924
.unwrap();
7227 MOZ_TO_RESULT_INVOKE_MEMBER(&*borrowedStatement, ExecuteStep))auto tryResult924 = (::mozilla::ToResultInvokeMember( (&*
borrowedStatement), &::mozilla::detail::DerefedType<decltype
(&*borrowedStatement)>::ExecuteStep)); if ((__builtin_expect
(!!(tryResult924.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (&*borrowedStatement), &::mozilla::detail::DerefedType<decltype(&*borrowedStatement)>::ExecuteStep)"
, tryResult924.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7227, mozilla::dom::quota::Severity::Error); return tryResult924
.propagateErr(); } const DebugOnly<bool> hasResult = tryResult924
.unwrap();
;
7228
7229 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"
, 7229); AnnotateMozCrashReason("MOZ_ASSERT" "(" "hasResult" ")"
); do { *((volatile int*)__null) = 7229; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7230
7231 QM_TRY_INSPECT(const int32_t& freelistCount,auto tryResult925 = (::mozilla::ToResultInvokeMember( (*borrowedStatement
), &::mozilla::detail::DerefedType<decltype(*borrowedStatement
)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult925.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*borrowedStatement), &::mozilla::detail::DerefedType<decltype(*borrowedStatement)>::GetInt32, 0)"
, tryResult925.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7232, mozilla::dom::quota::Severity::Error); return tryResult925
.propagateErr(); } const int32_t& freelistCount = tryResult925
.inspect();
7232 MOZ_TO_RESULT_INVOKE_MEMBER(*borrowedStatement, GetInt32, 0))auto tryResult925 = (::mozilla::ToResultInvokeMember( (*borrowedStatement
), &::mozilla::detail::DerefedType<decltype(*borrowedStatement
)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult925.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*borrowedStatement), &::mozilla::detail::DerefedType<decltype(*borrowedStatement)>::GetInt32, 0)"
, tryResult925.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7232, mozilla::dom::quota::Severity::Error); return tryResult925
.propagateErr(); } const int32_t& freelistCount = tryResult925
.inspect();
;
7233
7234 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"
, 7234); AnnotateMozCrashReason("MOZ_ASSERT" "(" "freelistCount >= 0"
")"); do { *((volatile int*)__null) = 7234; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7235
7236 return uint32_t(freelistCount);
7237}
7238
7239void DatabaseConnection::Close() {
7240 AssertIsOnConnectionThread();
7241 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"
, 7241); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDEBUGSavepointCount"
")"); do { *((volatile int*)__null) = 7241; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7242 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"
, 7242); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "!mInWriteTransaction"
")"); do { *((volatile int*)__null) = 7242; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7243
7244 AUTO_PROFILER_LABEL("DatabaseConnection::Close", DOM)mozilla::AutoProfilerLabel raiiObject7244( "DatabaseConnection::Close"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7245
7246 if (mUpdateRefcountFunction) {
7247 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(MutableStorageConnection().RemoveFunction("update_refcount"_ns
))), 1)))), 1))) { } else { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(MutableStorageConnection().RemoveFunction(\"update_refcount\"_ns))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7248); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(MutableStorageConnection().RemoveFunction(\"update_refcount\"_ns))"
")"); do { *((volatile int*)__null) = 7248; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
7248 MutableStorageConnection().RemoveFunction("update_refcount"_ns))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(MutableStorageConnection().RemoveFunction("update_refcount"_ns
))), 1)))), 1))) { } else { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(MutableStorageConnection().RemoveFunction(\"update_refcount\"_ns))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7248); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(MutableStorageConnection().RemoveFunction(\"update_refcount\"_ns))"
")"); do { *((volatile int*)__null) = 7248; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
7249 mUpdateRefcountFunction = nullptr;
7250 }
7251
7252 CachingDatabaseConnection::Close();
7253
7254 mFileManager.destroy();
7255}
7256
7257nsresult DatabaseConnection::DisableQuotaChecks() {
7258 AssertIsOnConnectionThread();
7259 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"
, 7259); AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()"
")"); do { *((volatile int*)__null) = 7259; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7260
7261 if (!mQuotaObject) {
7262 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"
, 7262); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mJournalQuotaObject"
")"); do { *((volatile int*)__null) = 7262; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7263
7264 QM_TRY(MOZ_TO_RESULT(MutableStorageConnection().GetQuotaObjects({auto tryResult926 = (ToResult(MutableStorageConnection().GetQuotaObjects
( getter_AddRefs(mQuotaObject), getter_AddRefs(mJournalQuotaObject
)))); static_assert(std::is_empty_v<typename decltype(tryResult926
)::ok_type>); if ((__builtin_expect(!!(tryResult926.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(MutableStorageConnection().GetQuotaObjects( getter_AddRefs(mQuotaObject), getter_AddRefs(mJournalQuotaObject)))"
, tryResult926.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7265, mozilla::dom::quota::Severity::Error); return tryResult926
.propagateErr(); }}
7265 getter_AddRefs(mQuotaObject), getter_AddRefs(mJournalQuotaObject)))){auto tryResult926 = (ToResult(MutableStorageConnection().GetQuotaObjects
( getter_AddRefs(mQuotaObject), getter_AddRefs(mJournalQuotaObject
)))); static_assert(std::is_empty_v<typename decltype(tryResult926
)::ok_type>); if ((__builtin_expect(!!(tryResult926.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(MutableStorageConnection().GetQuotaObjects( getter_AddRefs(mQuotaObject), getter_AddRefs(mJournalQuotaObject)))"
, tryResult926.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7265, mozilla::dom::quota::Severity::Error); return tryResult926
.propagateErr(); }}
;
7266
7267 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"
, 7267); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mQuotaObject"
")"); do { *((volatile int*)__null) = 7267; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7268 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"
, 7268); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mJournalQuotaObject"
")"); do { *((volatile int*)__null) = 7268; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7269 }
7270
7271 mQuotaObject->DisableQuotaCheck();
7272 mJournalQuotaObject->DisableQuotaCheck();
7273
7274 return NS_OK;
7275}
7276
7277void DatabaseConnection::EnableQuotaChecks() {
7278 AssertIsOnConnectionThread();
7279 if (!mQuotaObject) {
7280 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"
, 7280); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mJournalQuotaObject"
")"); do { *((volatile int*)__null) = 7280; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7281
7282 // DisableQuotaChecks failed earlier, so we don't need to enable quota
7283 // checks again.
7284 return;
7285 }
7286
7287 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"
, 7287); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mJournalQuotaObject"
")"); do { *((volatile int*)__null) = 7287; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7288
7289 const RefPtr<QuotaObject> quotaObject = std::move(mQuotaObject);
7290 const RefPtr<QuotaObject> journalQuotaObject = std::move(mJournalQuotaObject);
7291
7292 quotaObject->EnableQuotaCheck();
7293 journalQuotaObject->EnableQuotaCheck();
7294
7295 QM_TRY_INSPECT(const int64_t& fileSize, GetFileSize(quotaObject->Path()),auto tryResult927 = (GetFileSize(quotaObject->Path())); if
((__builtin_expect(!!(tryResult927.isErr()), 0))) { auto tryTempError
__attribute__((__unused__)) = tryResult927.unwrapErr(); mozilla
::dom::quota::HandleError("GetFileSize(quotaObject->Path())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7296, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const int64_t& fileSize = tryResult927.inspect();
7296 QM_VOID)auto tryResult927 = (GetFileSize(quotaObject->Path())); if
((__builtin_expect(!!(tryResult927.isErr()), 0))) { auto tryTempError
__attribute__((__unused__)) = tryResult927.unwrapErr(); mozilla
::dom::quota::HandleError("GetFileSize(quotaObject->Path())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7296, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const int64_t& fileSize = tryResult927.inspect();
;
7297 QM_TRY_INSPECT(const int64_t& journalFileSize,auto tryResult928 = (GetFileSize(journalQuotaObject->Path(
))); if ((__builtin_expect(!!(tryResult928.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult928.unwrapErr
(); mozilla::dom::quota::HandleError("GetFileSize(journalQuotaObject->Path())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7298, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const int64_t& journalFileSize = tryResult928.inspect
();
7298 GetFileSize(journalQuotaObject->Path()), QM_VOID)auto tryResult928 = (GetFileSize(journalQuotaObject->Path(
))); if ((__builtin_expect(!!(tryResult928.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult928.unwrapErr
(); mozilla::dom::quota::HandleError("GetFileSize(journalQuotaObject->Path())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7298, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const int64_t& journalFileSize = tryResult928.inspect
();
;
7299
7300 DebugOnly<bool> result = journalQuotaObject->MaybeUpdateSize(
7301 journalFileSize, /* aTruncate */ true);
7302 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"
, 7302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "result" ")"
); do { *((volatile int*)__null) = 7302; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7303
7304 result = quotaObject->MaybeUpdateSize(fileSize, /* aTruncate */ true);
7305 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"
, 7305); AnnotateMozCrashReason("MOZ_ASSERT" "(" "result" ")"
); do { *((volatile int*)__null) = 7305; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7306}
7307
7308Result<int64_t, nsresult> DatabaseConnection::GetFileSize(
7309 const nsAString& aPath) {
7310 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"
, 7310); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aPath.IsEmpty()"
")"); do { *((volatile int*)__null) = 7310; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7311
7312 QM_TRY_INSPECT(const auto& file, QM_NewLocalFile(aPath))auto tryResult929 = (QM_NewLocalFile(aPath)); if ((__builtin_expect
(!!(tryResult929.isErr()), 0))) { mozilla::dom::quota::HandleError
("QM_NewLocalFile(aPath)", tryResult929.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7312, mozilla::dom::quota::Severity::Error); return tryResult929
.propagateErr(); } const auto& file = tryResult929.inspect
();
;
7313 QM_TRY_INSPECT(const bool& exists, MOZ_TO_RESULT_INVOKE_MEMBER(file, Exists))auto tryResult930 = (::mozilla::ToResultInvokeMember( (file),
&::mozilla::detail::DerefedType<decltype(file)>::Exists
)); if ((__builtin_expect(!!(tryResult930.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::Exists)"
, tryResult930.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7313, mozilla::dom::quota::Severity::Error); return tryResult930
.propagateErr(); } const bool& exists = tryResult930.inspect
();
;
7314
7315 if (exists) {
7316 QM_TRY_RETURN(MOZ_TO_RESULT_INVOKE_MEMBER(file, GetFileSize)){auto tryResult931 = (::mozilla::ToResultInvokeMember( (file)
, &::mozilla::detail::DerefedType<decltype(file)>::
GetFileSize)); if ((__builtin_expect(!!(tryResult931.isErr())
, 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize)"
, tryResult931.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7316, mozilla::dom::quota::Severity::Error); } return tryResult931
;}
;
7317 }
7318
7319 return 0;
7320}
7321
7322DatabaseConnection::AutoSavepoint::AutoSavepoint()
7323 : mConnection(nullptr)
7324#ifdef DEBUG1
7325 ,
7326 mDEBUGTransaction(nullptr)
7327#endif
7328{
7329 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)
;
7330}
7331
7332DatabaseConnection::AutoSavepoint::~AutoSavepoint() {
7333 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)
;
7334
7335 if (mConnection) {
7336 mConnection->AssertIsOnConnectionThread();
7337 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"
, 7337); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGTransaction"
")"); do { *((volatile int*)__null) = 7337; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7338 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"
, 7342); 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) = 7342; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
7339 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"
, 7342); 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) = 7342; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
7340 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"
, 7342); 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) = 7342; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
7341 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"
, 7342); 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) = 7342; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
7342 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"
, 7342); 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) = 7342; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7343
7344 QM_WARNONLY_TRY(QM_TO_RESULT(mConnection->RollbackSavepoint())){auto tryResult932 = (ToResult<QMResult>(mConnection->
RollbackSavepoint())); static_assert(std::is_empty_v<typename
decltype(tryResult932)::ok_type>); if ((__builtin_expect(
!!(tryResult932.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult<QMResult>(mConnection->RollbackSavepoint())"
, tryResult932.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7344, mozilla::dom::quota::Severity::Warning); }}
;
7345 }
7346}
7347
7348nsresult DatabaseConnection::AutoSavepoint::Start(
7349 const TransactionBase& aTransaction) {
7350 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"
, 7353); 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) = 7353; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
7351 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"
, 7353); 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) = 7353; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
7352 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"
, 7353); 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) = 7353; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
7353 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"
, 7353); 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) = 7353; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7354
7355 DatabaseConnection* connection = aTransaction.GetDatabase().GetConnection();
7356 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"
, 7356); AnnotateMozCrashReason("MOZ_ASSERT" "(" "connection"
")"); do { *((volatile int*)__null) = 7356; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7357 connection->AssertIsOnConnectionThread();
7358
7359 // The previous operation failed to begin a write transaction and the
7360 // following opertion jumped to the connection thread before the previous
7361 // operation has updated its failure to the transaction.
7362 if (!connection->GetUpdateRefcountFunction()) {
7363 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"
, 7365)
7364 "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"
, 7365)
7365 "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"
, 7365)
;
7366 return NS_ERROR_DOM_INDEXEDDB_ABORT_ERR;
7367 }
7368
7369 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"
, 7369); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mConnection"
")"); do { *((volatile int*)__null) = 7369; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7370 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"
, 7370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDEBUGTransaction"
")"); do { *((volatile int*)__null) = 7370; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7371
7372 QM_TRY(MOZ_TO_RESULT(connection->StartSavepoint())){auto tryResult933 = (ToResult(connection->StartSavepoint(
))); static_assert(std::is_empty_v<typename decltype(tryResult933
)::ok_type>); if ((__builtin_expect(!!(tryResult933.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->StartSavepoint())"
, tryResult933.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7372, mozilla::dom::quota::Severity::Error); return tryResult933
.propagateErr(); }}
;
7373
7374 mConnection = connection;
7375#ifdef DEBUG1
7376 mDEBUGTransaction = &aTransaction;
7377#endif
7378
7379 return NS_OK;
7380}
7381
7382nsresult DatabaseConnection::AutoSavepoint::Commit() {
7383 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"
, 7383); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { *((volatile int*)__null) = 7383; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7384 mConnection->AssertIsOnConnectionThread();
7385 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"
, 7385); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGTransaction"
")"); do { *((volatile int*)__null) = 7385; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7386
7387 QM_TRY(MOZ_TO_RESULT(mConnection->ReleaseSavepoint())){auto tryResult934 = (ToResult(mConnection->ReleaseSavepoint
())); static_assert(std::is_empty_v<typename decltype(tryResult934
)::ok_type>); if ((__builtin_expect(!!(tryResult934.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(mConnection->ReleaseSavepoint())"
, tryResult934.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7387, mozilla::dom::quota::Severity::Error); return tryResult934
.propagateErr(); }}
;
7388
7389 mConnection = nullptr;
7390#ifdef DEBUG1
7391 mDEBUGTransaction = nullptr;
7392#endif
7393
7394 return NS_OK;
7395}
7396
7397DatabaseConnection::UpdateRefcountFunction::UpdateRefcountFunction(
7398 DatabaseConnection* const aConnection, DatabaseFileManager& aFileManager)
7399 : mConnection(aConnection),
7400 mFileManager(aFileManager),
7401 mInSavepoint(false) {
7402 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"
, 7402); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 7402; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7403 aConnection->AssertIsOnConnectionThread();
7404}
7405
7406nsresult DatabaseConnection::UpdateRefcountFunction::WillCommit() {
7407 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"
, 7407); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { *((volatile int*)__null) = 7407; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7408 mConnection->AssertIsOnConnectionThread();
7409 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"
, 7409); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection->HasStorageConnection()"
")"); do { *((volatile int*)__null) = 7409; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7410
7411 AUTO_PROFILER_LABEL("DatabaseConnection::UpdateRefcountFunction::WillCommit",mozilla::AutoProfilerLabel raiiObject7412( "DatabaseConnection::UpdateRefcountFunction::WillCommit"
, nullptr, JS::ProfilingCategoryPair::DOM)
7412 DOM)mozilla::AutoProfilerLabel raiiObject7412( "DatabaseConnection::UpdateRefcountFunction::WillCommit"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7413
7414 // The parameter names are not used, parameters are bound by index
7415 // only locally in the same function.
7416 auto update =
7417 [updateStatement = LazyStatement{*mConnection,
7418 "UPDATE file "
7419 "SET refcount = refcount + :delta "
7420 "WHERE id = :id"_ns},
7421 selectStatement = LazyStatement{*mConnection,
7422 "SELECT id "
7423 "FROM file "
7424 "WHERE id = :id"_ns},
7425 insertStatement =
7426 LazyStatement{
7427 *mConnection,
7428 "INSERT INTO file (id, refcount) VALUES(:id, :delta)"_ns},
7429 this](int64_t aId, int32_t aDelta) mutable -> Result<Ok, nsresult> {
7430 AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject7431( "DatabaseConnection::UpdateRefcountFunction::WillCommit::Update"
, nullptr, JS::ProfilingCategoryPair::DOM)
7431 "DatabaseConnection::UpdateRefcountFunction::WillCommit::Update", DOM)mozilla::AutoProfilerLabel raiiObject7431( "DatabaseConnection::UpdateRefcountFunction::WillCommit::Update"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7432 {
7433 QM_TRY_INSPECT(const auto& borrowedUpdateStatement,auto tryResult935 = (updateStatement.Borrow()); if ((__builtin_expect
(!!(tryResult935.isErr()), 0))) { mozilla::dom::quota::HandleError
("updateStatement.Borrow()", tryResult935.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7434, mozilla::dom::quota::Severity::Error); return tryResult935
.propagateErr(); } const auto& borrowedUpdateStatement = tryResult935
.inspect();
7434 updateStatement.Borrow())auto tryResult935 = (updateStatement.Borrow()); if ((__builtin_expect
(!!(tryResult935.isErr()), 0))) { mozilla::dom::quota::HandleError
("updateStatement.Borrow()", tryResult935.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7434, mozilla::dom::quota::Severity::Error); return tryResult935
.propagateErr(); } const auto& borrowedUpdateStatement = tryResult935
.inspect();
;
7435
7436 QM_TRY({auto tryResult936 = (ToResult(borrowedUpdateStatement->BindInt32ByIndex
(0, aDelta))); static_assert(std::is_empty_v<typename decltype
(tryResult936)::ok_type>); if ((__builtin_expect(!!(tryResult936
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedUpdateStatement->BindInt32ByIndex(0, aDelta))"
, tryResult936.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7437, mozilla::dom::quota::Severity::Error); return tryResult936
.propagateErr(); }}
7437 MOZ_TO_RESULT(borrowedUpdateStatement->BindInt32ByIndex(0, aDelta))){auto tryResult936 = (ToResult(borrowedUpdateStatement->BindInt32ByIndex
(0, aDelta))); static_assert(std::is_empty_v<typename decltype
(tryResult936)::ok_type>); if ((__builtin_expect(!!(tryResult936
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedUpdateStatement->BindInt32ByIndex(0, aDelta))"
, tryResult936.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7437, mozilla::dom::quota::Severity::Error); return tryResult936
.propagateErr(); }}
;
7438 QM_TRY(MOZ_TO_RESULT(borrowedUpdateStatement->BindInt64ByIndex(1, aId))){auto tryResult937 = (ToResult(borrowedUpdateStatement->BindInt64ByIndex
(1, aId))); static_assert(std::is_empty_v<typename decltype
(tryResult937)::ok_type>); if ((__builtin_expect(!!(tryResult937
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedUpdateStatement->BindInt64ByIndex(1, aId))"
, tryResult937.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7438, mozilla::dom::quota::Severity::Error); return tryResult937
.propagateErr(); }}
;
7439 QM_TRY(MOZ_TO_RESULT(borrowedUpdateStatement->Execute())){auto tryResult938 = (ToResult(borrowedUpdateStatement->Execute
())); static_assert(std::is_empty_v<typename decltype(tryResult938
)::ok_type>); if ((__builtin_expect(!!(tryResult938.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedUpdateStatement->Execute())"
, tryResult938.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7439, mozilla::dom::quota::Severity::Error); return tryResult938
.propagateErr(); }}
;
7440 }
7441
7442 QM_TRY_INSPECT(auto tryResult939 = (::mozilla::ToResultInvokeMember( (mConnection
->MutableStorageConnection()), &::mozilla::detail::DerefedType
<decltype(mConnection->MutableStorageConnection())>::
GetAffectedRows)); if ((__builtin_expect(!!(tryResult939.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (mConnection->MutableStorageConnection()), &::mozilla::detail::DerefedType<decltype(mConnection->MutableStorageConnection())>::GetAffectedRows)"
, tryResult939.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7445, mozilla::dom::quota::Severity::Error); return tryResult939
.propagateErr(); } const int32_t& rows = tryResult939.inspect
();
7443 const int32_t& rows,auto tryResult939 = (::mozilla::ToResultInvokeMember( (mConnection
->MutableStorageConnection()), &::mozilla::detail::DerefedType
<decltype(mConnection->MutableStorageConnection())>::
GetAffectedRows)); if ((__builtin_expect(!!(tryResult939.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (mConnection->MutableStorageConnection()), &::mozilla::detail::DerefedType<decltype(mConnection->MutableStorageConnection())>::GetAffectedRows)"
, tryResult939.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7445, mozilla::dom::quota::Severity::Error); return tryResult939
.propagateErr(); } const int32_t& rows = tryResult939.inspect
();
7444 MOZ_TO_RESULT_INVOKE_MEMBER(mConnection->MutableStorageConnection(),auto tryResult939 = (::mozilla::ToResultInvokeMember( (mConnection
->MutableStorageConnection()), &::mozilla::detail::DerefedType
<decltype(mConnection->MutableStorageConnection())>::
GetAffectedRows)); if ((__builtin_expect(!!(tryResult939.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (mConnection->MutableStorageConnection()), &::mozilla::detail::DerefedType<decltype(mConnection->MutableStorageConnection())>::GetAffectedRows)"
, tryResult939.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7445, mozilla::dom::quota::Severity::Error); return tryResult939
.propagateErr(); } const int32_t& rows = tryResult939.inspect
();
7445 GetAffectedRows))auto tryResult939 = (::mozilla::ToResultInvokeMember( (mConnection
->MutableStorageConnection()), &::mozilla::detail::DerefedType
<decltype(mConnection->MutableStorageConnection())>::
GetAffectedRows)); if ((__builtin_expect(!!(tryResult939.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (mConnection->MutableStorageConnection()), &::mozilla::detail::DerefedType<decltype(mConnection->MutableStorageConnection())>::GetAffectedRows)"
, tryResult939.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7445, mozilla::dom::quota::Severity::Error); return tryResult939
.propagateErr(); } const int32_t& rows = tryResult939.inspect
();
;
7446
7447 if (rows > 0) {
7448 QM_TRY_INSPECT(auto tryResult941 = (selectStatement .BorrowAndExecuteSingleStep
( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto
tryResult940 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert
(std::is_empty_v<typename decltype(tryResult940)::ok_type>
); if ((__builtin_expect(!!(tryResult940.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))"
, tryResult940.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7453, mozilla::dom::quota::Severity::Error); return tryResult940
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError
("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult940 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult940)::ok_type>); if ((__builtin_expect(!!(tryResult940.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult940.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7453, mozilla::dom::quota::Severity::Error); return tryResult940.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult941.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7456, mozilla::dom::quota::Severity::Error); return tryResult941
.propagateErr(); } const bool& hasResult = tryResult941.inspect
();
7449 const bool& hasResult,auto tryResult941 = (selectStatement .BorrowAndExecuteSingleStep
( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto
tryResult940 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert
(std::is_empty_v<typename decltype(tryResult940)::ok_type>
); if ((__builtin_expect(!!(tryResult940.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))"
, tryResult940.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7453, mozilla::dom::quota::Severity::Error); return tryResult940
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError
("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult940 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult940)::ok_type>); if ((__builtin_expect(!!(tryResult940.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult940.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7453, mozilla::dom::quota::Severity::Error); return tryResult940.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult941.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7456, mozilla::dom::quota::Severity::Error); return tryResult941
.propagateErr(); } const bool& hasResult = tryResult941.inspect
();
7450 selectStatementauto tryResult941 = (selectStatement .BorrowAndExecuteSingleStep
( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto
tryResult940 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert
(std::is_empty_v<typename decltype(tryResult940)::ok_type>
); if ((__builtin_expect(!!(tryResult940.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))"
, tryResult940.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7453, mozilla::dom::quota::Severity::Error); return tryResult940
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError
("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult940 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult940)::ok_type>); if ((__builtin_expect(!!(tryResult940.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult940.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7453, mozilla::dom::quota::Severity::Error); return tryResult940.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult941.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7456, mozilla::dom::quota::Severity::Error); return tryResult941
.propagateErr(); } const bool& hasResult = tryResult941.inspect
();
7451 .BorrowAndExecuteSingleStep(auto tryResult941 = (selectStatement .BorrowAndExecuteSingleStep
( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto
tryResult940 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert
(std::is_empty_v<typename decltype(tryResult940)::ok_type>
); if ((__builtin_expect(!!(tryResult940.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))"
, tryResult940.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7453, mozilla::dom::quota::Severity::Error); return tryResult940
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError
("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult940 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult940)::ok_type>); if ((__builtin_expect(!!(tryResult940.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult940.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7453, mozilla::dom::quota::Severity::Error); return tryResult940.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult941.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7456, mozilla::dom::quota::Severity::Error); return tryResult941
.propagateErr(); } const bool& hasResult = tryResult941.inspect
();
7452 [aId](auto& stmt) -> Result<Ok, nsresult> {auto tryResult941 = (selectStatement .BorrowAndExecuteSingleStep
( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto
tryResult940 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert
(std::is_empty_v<typename decltype(tryResult940)::ok_type>
); if ((__builtin_expect(!!(tryResult940.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))"
, tryResult940.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7453, mozilla::dom::quota::Severity::Error); return tryResult940
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError
("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult940 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult940)::ok_type>); if ((__builtin_expect(!!(tryResult940.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult940.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7453, mozilla::dom::quota::Severity::Error); return tryResult940.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult941.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7456, mozilla::dom::quota::Severity::Error); return tryResult941
.propagateErr(); } const bool& hasResult = tryResult941.inspect
();
7453 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(0, aId)));auto tryResult941 = (selectStatement .BorrowAndExecuteSingleStep
( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto
tryResult940 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert
(std::is_empty_v<typename decltype(tryResult940)::ok_type>
); if ((__builtin_expect(!!(tryResult940.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))"
, tryResult940.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7453, mozilla::dom::quota::Severity::Error); return tryResult940
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError
("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult940 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult940)::ok_type>); if ((__builtin_expect(!!(tryResult940.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult940.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7453, mozilla::dom::quota::Severity::Error); return tryResult940.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult941.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7456, mozilla::dom::quota::Severity::Error); return tryResult941
.propagateErr(); } const bool& hasResult = tryResult941.inspect
();
7454 return Ok{};auto tryResult941 = (selectStatement .BorrowAndExecuteSingleStep
( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto
tryResult940 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert
(std::is_empty_v<typename decltype(tryResult940)::ok_type>
); if ((__builtin_expect(!!(tryResult940.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))"
, tryResult940.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7453, mozilla::dom::quota::Severity::Error); return tryResult940
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError
("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult940 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult940)::ok_type>); if ((__builtin_expect(!!(tryResult940.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult940.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7453, mozilla::dom::quota::Severity::Error); return tryResult940.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult941.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7456, mozilla::dom::quota::Severity::Error); return tryResult941
.propagateErr(); } const bool& hasResult = tryResult941.inspect
();
7455 })auto tryResult941 = (selectStatement .BorrowAndExecuteSingleStep
( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto
tryResult940 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert
(std::is_empty_v<typename decltype(tryResult940)::ok_type>
); if ((__builtin_expect(!!(tryResult940.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))"
, tryResult940.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7453, mozilla::dom::quota::Severity::Error); return tryResult940
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError
("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult940 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult940)::ok_type>); if ((__builtin_expect(!!(tryResult940.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult940.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7453, mozilla::dom::quota::Severity::Error); return tryResult940.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult941.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7456, mozilla::dom::quota::Severity::Error); return tryResult941
.propagateErr(); } const bool& hasResult = tryResult941.inspect
();
7456 .map(IsSome))auto tryResult941 = (selectStatement .BorrowAndExecuteSingleStep
( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto
tryResult940 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert
(std::is_empty_v<typename decltype(tryResult940)::ok_type>
); if ((__builtin_expect(!!(tryResult940.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))"
, tryResult940.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7453, mozilla::dom::quota::Severity::Error); return tryResult940
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult941.isErr()), 0))) { mozilla::dom::quota::HandleError
("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult940 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult940)::ok_type>); if ((__builtin_expect(!!(tryResult940.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult940.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7453, mozilla::dom::quota::Severity::Error); return tryResult940.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult941.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7456, mozilla::dom::quota::Severity::Error); return tryResult941
.propagateErr(); } const bool& hasResult = tryResult941.inspect
();
;
7457
7458 if (!hasResult) {
7459 // Don't have to create the journal here, we can create all at once,
7460 // just before commit
7461 mJournalsToCreateBeforeCommit.AppendElement(aId);
7462 }
7463
7464 return Ok{};
7465 }
7466
7467 QM_TRY_INSPECT(const auto& borrowedInsertStatement,auto tryResult942 = (insertStatement.Borrow()); if ((__builtin_expect
(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError
("insertStatement.Borrow()", tryResult942.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7468, mozilla::dom::quota::Severity::Error); return tryResult942
.propagateErr(); } const auto& borrowedInsertStatement = tryResult942
.inspect();
7468 insertStatement.Borrow())auto tryResult942 = (insertStatement.Borrow()); if ((__builtin_expect
(!!(tryResult942.isErr()), 0))) { mozilla::dom::quota::HandleError
("insertStatement.Borrow()", tryResult942.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7468, mozilla::dom::quota::Severity::Error); return tryResult942
.propagateErr(); } const auto& borrowedInsertStatement = tryResult942
.inspect();
;
7469
7470 QM_TRY(MOZ_TO_RESULT(borrowedInsertStatement->BindInt64ByIndex(0, aId))){auto tryResult943 = (ToResult(borrowedInsertStatement->BindInt64ByIndex
(0, aId))); static_assert(std::is_empty_v<typename decltype
(tryResult943)::ok_type>); if ((__builtin_expect(!!(tryResult943
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedInsertStatement->BindInt64ByIndex(0, aId))"
, tryResult943.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7470, mozilla::dom::quota::Severity::Error); return tryResult943
.propagateErr(); }}
;
7471 QM_TRY(MOZ_TO_RESULT(borrowedInsertStatement->BindInt32ByIndex(1, aDelta))){auto tryResult944 = (ToResult(borrowedInsertStatement->BindInt32ByIndex
(1, aDelta))); static_assert(std::is_empty_v<typename decltype
(tryResult944)::ok_type>); if ((__builtin_expect(!!(tryResult944
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedInsertStatement->BindInt32ByIndex(1, aDelta))"
, tryResult944.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7471, mozilla::dom::quota::Severity::Error); return tryResult944
.propagateErr(); }}
;
7472 QM_TRY(MOZ_TO_RESULT(borrowedInsertStatement->Execute())){auto tryResult945 = (ToResult(borrowedInsertStatement->Execute
())); static_assert(std::is_empty_v<typename decltype(tryResult945
)::ok_type>); if ((__builtin_expect(!!(tryResult945.isErr(
)), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedInsertStatement->Execute())"
, tryResult945.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7472, mozilla::dom::quota::Severity::Error); return tryResult945
.propagateErr(); }}
;
7473
7474 mJournalsToRemoveAfterCommit.AppendElement(aId);
7475
7476 return Ok{};
7477 };
7478
7479 QM_TRY(CollectEachInRange({auto tryResult947 = (CollectEachInRange( mFileInfoEntries, [
&update](const auto& entry) -> Result<Ok, nsresult
> { const auto delta = entry.GetData()->Delta(); if (delta
) { {auto tryResult946 = (update(entry.GetKey(), delta)); static_assert
(std::is_empty_v<typename decltype(tryResult946)::ok_type>
); if ((__builtin_expect(!!(tryResult946.isErr()), 0))) { mozilla
::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult946
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7483, mozilla::dom::quota::Severity::Error); return tryResult946
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult947)::ok_type>); if ((__builtin_expect
(!!(tryResult947.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult946 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult946)::ok_type>); if ((__builtin_expect(!!(tryResult946.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult946.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7483, mozilla::dom::quota::Severity::Error); return tryResult946.propagateErr(); }}; } return Ok{}; })"
, tryResult947.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7487, mozilla::dom::quota::Severity::Error); return tryResult947
.propagateErr(); }}
7480 mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> {{auto tryResult947 = (CollectEachInRange( mFileInfoEntries, [
&update](const auto& entry) -> Result<Ok, nsresult
> { const auto delta = entry.GetData()->Delta(); if (delta
) { {auto tryResult946 = (update(entry.GetKey(), delta)); static_assert
(std::is_empty_v<typename decltype(tryResult946)::ok_type>
); if ((__builtin_expect(!!(tryResult946.isErr()), 0))) { mozilla
::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult946
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7483, mozilla::dom::quota::Severity::Error); return tryResult946
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult947)::ok_type>); if ((__builtin_expect
(!!(tryResult947.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult946 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult946)::ok_type>); if ((__builtin_expect(!!(tryResult946.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult946.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7483, mozilla::dom::quota::Severity::Error); return tryResult946.propagateErr(); }}; } return Ok{}; })"
, tryResult947.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7487, mozilla::dom::quota::Severity::Error); return tryResult947
.propagateErr(); }}
7481 const auto delta = entry.GetData()->Delta();{auto tryResult947 = (CollectEachInRange( mFileInfoEntries, [
&update](const auto& entry) -> Result<Ok, nsresult
> { const auto delta = entry.GetData()->Delta(); if (delta
) { {auto tryResult946 = (update(entry.GetKey(), delta)); static_assert
(std::is_empty_v<typename decltype(tryResult946)::ok_type>
); if ((__builtin_expect(!!(tryResult946.isErr()), 0))) { mozilla
::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult946
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7483, mozilla::dom::quota::Severity::Error); return tryResult946
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult947)::ok_type>); if ((__builtin_expect
(!!(tryResult947.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult946 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult946)::ok_type>); if ((__builtin_expect(!!(tryResult946.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult946.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7483, mozilla::dom::quota::Severity::Error); return tryResult946.propagateErr(); }}; } return Ok{}; })"
, tryResult947.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7487, mozilla::dom::quota::Severity::Error); return tryResult947
.propagateErr(); }}
7482 if (delta) {{auto tryResult947 = (CollectEachInRange( mFileInfoEntries, [
&update](const auto& entry) -> Result<Ok, nsresult
> { const auto delta = entry.GetData()->Delta(); if (delta
) { {auto tryResult946 = (update(entry.GetKey(), delta)); static_assert
(std::is_empty_v<typename decltype(tryResult946)::ok_type>
); if ((__builtin_expect(!!(tryResult946.isErr()), 0))) { mozilla
::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult946
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7483, mozilla::dom::quota::Severity::Error); return tryResult946
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult947)::ok_type>); if ((__builtin_expect
(!!(tryResult947.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult946 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult946)::ok_type>); if ((__builtin_expect(!!(tryResult946.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult946.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7483, mozilla::dom::quota::Severity::Error); return tryResult946.propagateErr(); }}; } return Ok{}; })"
, tryResult947.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7487, mozilla::dom::quota::Severity::Error); return tryResult947
.propagateErr(); }}
7483 QM_TRY(update(entry.GetKey(), delta));{auto tryResult947 = (CollectEachInRange( mFileInfoEntries, [
&update](const auto& entry) -> Result<Ok, nsresult
> { const auto delta = entry.GetData()->Delta(); if (delta
) { {auto tryResult946 = (update(entry.GetKey(), delta)); static_assert
(std::is_empty_v<typename decltype(tryResult946)::ok_type>
); if ((__builtin_expect(!!(tryResult946.isErr()), 0))) { mozilla
::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult946
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7483, mozilla::dom::quota::Severity::Error); return tryResult946
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult947)::ok_type>); if ((__builtin_expect
(!!(tryResult947.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult946 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult946)::ok_type>); if ((__builtin_expect(!!(tryResult946.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult946.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7483, mozilla::dom::quota::Severity::Error); return tryResult946.propagateErr(); }}; } return Ok{}; })"
, tryResult947.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7487, mozilla::dom::quota::Severity::Error); return tryResult947
.propagateErr(); }}
7484 }{auto tryResult947 = (CollectEachInRange( mFileInfoEntries, [
&update](const auto& entry) -> Result<Ok, nsresult
> { const auto delta = entry.GetData()->Delta(); if (delta
) { {auto tryResult946 = (update(entry.GetKey(), delta)); static_assert
(std::is_empty_v<typename decltype(tryResult946)::ok_type>
); if ((__builtin_expect(!!(tryResult946.isErr()), 0))) { mozilla
::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult946
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7483, mozilla::dom::quota::Severity::Error); return tryResult946
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult947)::ok_type>); if ((__builtin_expect
(!!(tryResult947.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult946 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult946)::ok_type>); if ((__builtin_expect(!!(tryResult946.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult946.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7483, mozilla::dom::quota::Severity::Error); return tryResult946.propagateErr(); }}; } return Ok{}; })"
, tryResult947.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7487, mozilla::dom::quota::Severity::Error); return tryResult947
.propagateErr(); }}
7485
7486 return Ok{};{auto tryResult947 = (CollectEachInRange( mFileInfoEntries, [
&update](const auto& entry) -> Result<Ok, nsresult
> { const auto delta = entry.GetData()->Delta(); if (delta
) { {auto tryResult946 = (update(entry.GetKey(), delta)); static_assert
(std::is_empty_v<typename decltype(tryResult946)::ok_type>
); if ((__builtin_expect(!!(tryResult946.isErr()), 0))) { mozilla
::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult946
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7483, mozilla::dom::quota::Severity::Error); return tryResult946
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult947)::ok_type>); if ((__builtin_expect
(!!(tryResult947.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult946 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult946)::ok_type>); if ((__builtin_expect(!!(tryResult946.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult946.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7483, mozilla::dom::quota::Severity::Error); return tryResult946.propagateErr(); }}; } return Ok{}; })"
, tryResult947.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7487, mozilla::dom::quota::Severity::Error); return tryResult947
.propagateErr(); }}
7487 })){auto tryResult947 = (CollectEachInRange( mFileInfoEntries, [
&update](const auto& entry) -> Result<Ok, nsresult
> { const auto delta = entry.GetData()->Delta(); if (delta
) { {auto tryResult946 = (update(entry.GetKey(), delta)); static_assert
(std::is_empty_v<typename decltype(tryResult946)::ok_type>
); if ((__builtin_expect(!!(tryResult946.isErr()), 0))) { mozilla
::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult946
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7483, mozilla::dom::quota::Severity::Error); return tryResult946
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult947)::ok_type>); if ((__builtin_expect
(!!(tryResult947.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult946 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult946)::ok_type>); if ((__builtin_expect(!!(tryResult946.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult946.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 7483, mozilla::dom::quota::Severity::Error); return tryResult946.propagateErr(); }}; } return Ok{}; })"
, tryResult947.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7487, mozilla::dom::quota::Severity::Error); return tryResult947
.propagateErr(); }}
;
7488
7489 QM_TRY(MOZ_TO_RESULT(CreateJournals())){auto tryResult948 = (ToResult(CreateJournals())); static_assert
(std::is_empty_v<typename decltype(tryResult948)::ok_type>
); if ((__builtin_expect(!!(tryResult948.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(CreateJournals())", tryResult948
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7489, mozilla::dom::quota::Severity::Error); return tryResult948
.propagateErr(); }}
;
7490
7491 return NS_OK;
7492}
7493
7494void DatabaseConnection::UpdateRefcountFunction::DidCommit() {
7495 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"
, 7495); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { *((volatile int*)__null) = 7495; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7496 mConnection->AssertIsOnConnectionThread();
7497
7498 AUTO_PROFILER_LABEL("DatabaseConnection::UpdateRefcountFunction::DidCommit",mozilla::AutoProfilerLabel raiiObject7499( "DatabaseConnection::UpdateRefcountFunction::DidCommit"
, nullptr, JS::ProfilingCategoryPair::DOM)
7499 DOM)mozilla::AutoProfilerLabel raiiObject7499( "DatabaseConnection::UpdateRefcountFunction::DidCommit"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7500
7501 for (const auto& entry : mFileInfoEntries.Values()) {
7502 entry->MaybeUpdateDBRefs();
7503 }
7504
7505 QM_WARNONLY_TRY(QM_TO_RESULT(RemoveJournals(mJournalsToRemoveAfterCommit))){auto tryResult949 = (ToResult<QMResult>(RemoveJournals
(mJournalsToRemoveAfterCommit))); static_assert(std::is_empty_v
<typename decltype(tryResult949)::ok_type>); if ((__builtin_expect
(!!(tryResult949.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult<QMResult>(RemoveJournals(mJournalsToRemoveAfterCommit))"
, tryResult949.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7505, mozilla::dom::quota::Severity::Warning); }}
;
7506}
7507
7508void DatabaseConnection::UpdateRefcountFunction::DidAbort() {
7509 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"
, 7509); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { *((volatile int*)__null) = 7509; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7510 mConnection->AssertIsOnConnectionThread();
7511
7512 AUTO_PROFILER_LABEL("DatabaseConnection::UpdateRefcountFunction::DidAbort",mozilla::AutoProfilerLabel raiiObject7513( "DatabaseConnection::UpdateRefcountFunction::DidAbort"
, nullptr, JS::ProfilingCategoryPair::DOM)
7513 DOM)mozilla::AutoProfilerLabel raiiObject7513( "DatabaseConnection::UpdateRefcountFunction::DidAbort"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7514
7515 QM_WARNONLY_TRY(QM_TO_RESULT(RemoveJournals(mJournalsToRemoveAfterAbort))){auto tryResult950 = (ToResult<QMResult>(RemoveJournals
(mJournalsToRemoveAfterAbort))); static_assert(std::is_empty_v
<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect
(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult<QMResult>(RemoveJournals(mJournalsToRemoveAfterAbort))"
, tryResult950.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7515, mozilla::dom::quota::Severity::Warning); }}
;
7516}
7517
7518void DatabaseConnection::UpdateRefcountFunction::StartSavepoint() {
7519 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"
, 7519); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { *((volatile int*)__null) = 7519; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7520 mConnection->AssertIsOnConnectionThread();
7521 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"
, 7521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInSavepoint"
")"); do { *((volatile int*)__null) = 7521; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7522 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"
, 7522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mSavepointEntriesIndex.Count()"
")"); do { *((volatile int*)__null) = 7522; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7523
7524 mInSavepoint = true;
7525}
7526
7527void DatabaseConnection::UpdateRefcountFunction::ReleaseSavepoint() {
7528 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"
, 7528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { *((volatile int*)__null) = 7528; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7529 mConnection->AssertIsOnConnectionThread();
7530 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"
, 7530); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInSavepoint"
")"); do { *((volatile int*)__null) = 7530; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7531
7532 mSavepointEntriesIndex.Clear();
7533 mInSavepoint = false;
7534}
7535
7536void DatabaseConnection::UpdateRefcountFunction::RollbackSavepoint() {
7537 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"
, 7537); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { *((volatile int*)__null) = 7537; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7538 mConnection->AssertIsOnConnectionThread();
7539 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"
, 7539); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 7539; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7540 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"
, 7540); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInSavepoint"
")"); do { *((volatile int*)__null) = 7540; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7541
7542 for (const auto& entry : mSavepointEntriesIndex.Values()) {
7543 entry->DecBySavepointDelta();
7544 }
7545
7546 mInSavepoint = false;
7547 mSavepointEntriesIndex.Clear();
7548}
7549
7550void DatabaseConnection::UpdateRefcountFunction::Reset() {
7551 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"
, 7551); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { *((volatile int*)__null) = 7551; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7552 mConnection->AssertIsOnConnectionThread();
7553 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"
, 7553); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mSavepointEntriesIndex.Count()"
")"); do { *((volatile int*)__null) = 7553; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7554 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"
, 7554); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInSavepoint"
")"); do { *((volatile int*)__null) = 7554; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7555
7556 mJournalsToCreateBeforeCommit.Clear();
7557 mJournalsToRemoveAfterCommit.Clear();
7558 mJournalsToRemoveAfterAbort.Clear();
7559
7560 // DatabaseFileInfo implementation automatically removes unreferenced files,
7561 // but it's done asynchronously and with a delay. We want to remove them (and
7562 // decrease quota usage) before we fire the commit event.
7563 for (const auto& entry : mFileInfoEntries.Values()) {
7564 // We need to move mFileInfo into a raw pointer in order to release it
7565 // explicitly with aSyncDeleteFile == true.
7566 DatabaseFileInfo* const fileInfo = entry->ReleaseFileInfo().forget().take();
7567 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"
, 7567); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileInfo" ")"
); do { *((volatile int*)__null) = 7567; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7568
7569 fileInfo->Release(/* aSyncDeleteFile */ true);
7570 }
7571
7572 mFileInfoEntries.Clear();
7573}
7574
7575nsresult DatabaseConnection::UpdateRefcountFunction::ProcessValue(
7576 mozIStorageValueArray* aValues, int32_t aIndex, UpdateType aUpdateType) {
7577 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"
, 7577); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { *((volatile int*)__null) = 7577; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7578 mConnection->AssertIsOnConnectionThread();
7579 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"
, 7579); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aValues" ")"
); do { *((volatile int*)__null) = 7579; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7580
7581 AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject7582( "DatabaseConnection::UpdateRefcountFunction::ProcessValue"
, nullptr, JS::ProfilingCategoryPair::DOM)
7582 "DatabaseConnection::UpdateRefcountFunction::ProcessValue", DOM)mozilla::AutoProfilerLabel raiiObject7582( "DatabaseConnection::UpdateRefcountFunction::ProcessValue"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7583
7584 QM_TRY_INSPECT(const int32_t& type,auto tryResult951 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetTypeOfIndex, aIndex)); if ((__builtin_expect(!!(tryResult951
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, aIndex)"
, tryResult951.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7585, mozilla::dom::quota::Severity::Error); return tryResult951
.propagateErr(); } const int32_t& type = tryResult951.inspect
();
7585 MOZ_TO_RESULT_INVOKE_MEMBER(aValues, GetTypeOfIndex, aIndex))auto tryResult951 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetTypeOfIndex, aIndex)); if ((__builtin_expect(!!(tryResult951
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, aIndex)"
, tryResult951.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7585, mozilla::dom::quota::Severity::Error); return tryResult951
.propagateErr(); } const int32_t& type = tryResult951.inspect
();
;
7586
7587 if (type == mozIStorageValueArray::VALUE_TYPE_NULL) {
7588 return NS_OK;
7589 }
7590
7591 QM_TRY_INSPECT(const auto& ids, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult952 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(aValues)>::GetString), (aValues), aIndex)); if ((__builtin_expect
(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aValues)>::GetString), (aValues), aIndex)"
, tryResult952.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7592, mozilla::dom::quota::Severity::Error); return tryResult952
.propagateErr(); } const auto& ids = tryResult952.inspect
();
7592 nsString, aValues, GetString, aIndex))auto tryResult952 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(aValues)>::GetString), (aValues), aIndex)); if ((__builtin_expect
(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aValues)>::GetString), (aValues), aIndex)"
, tryResult952.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7592, mozilla::dom::quota::Severity::Error); return tryResult952
.propagateErr(); } const auto& ids = tryResult952.inspect
();
;
7593
7594 QM_TRY_INSPECT(const auto& files,auto tryResult953 = (DeserializeStructuredCloneFiles(mFileManager
, ids)); if ((__builtin_expect(!!(tryResult953.isErr()), 0)))
{ mozilla::dom::quota::HandleError("DeserializeStructuredCloneFiles(mFileManager, ids)"
, tryResult953.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7595, mozilla::dom::quota::Severity::Error); return tryResult953
.propagateErr(); } const auto& files = tryResult953.inspect
();
7595 DeserializeStructuredCloneFiles(mFileManager, ids))auto tryResult953 = (DeserializeStructuredCloneFiles(mFileManager
, ids)); if ((__builtin_expect(!!(tryResult953.isErr()), 0)))
{ mozilla::dom::quota::HandleError("DeserializeStructuredCloneFiles(mFileManager, ids)"
, tryResult953.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7595, mozilla::dom::quota::Severity::Error); return tryResult953
.propagateErr(); } const auto& files = tryResult953.inspect
();
;
7596
7597 for (const StructuredCloneFileParent& file : files) {
7598 const int64_t id = file.FileInfo().Id();
7599 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"
, 7599); AnnotateMozCrashReason("MOZ_ASSERT" "(" "id > 0" ")"
); do { *((volatile int*)__null) = 7599; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7600
7601 const auto entry =
7602 WrapNotNull(mFileInfoEntries.GetOrInsertNew(id, file.FileInfoPtr()));
7603
7604 if (mInSavepoint) {
7605 mSavepointEntriesIndex.InsertOrUpdate(id, entry);
7606 }
7607
7608 switch (aUpdateType) {
7609 case UpdateType::Increment:
7610 entry->IncDeltas(mInSavepoint);
7611 break;
7612 case UpdateType::Decrement:
7613 entry->DecDeltas(mInSavepoint);
7614 break;
7615 default:
7616 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"
, 7616); AnnotateMozCrashReason("MOZ_CRASH(" "Unknown update type!"
")"); do { *((volatile int*)__null) = 7616; __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
7617 }
7618 }
7619
7620 return NS_OK;
7621}
7622
7623nsresult DatabaseConnection::UpdateRefcountFunction::CreateJournals() {
7624 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"
, 7624); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { *((volatile int*)__null) = 7624; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7625 mConnection->AssertIsOnConnectionThread();
7626
7627 AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject7628( "DatabaseConnection::UpdateRefcountFunction::CreateJournals"
, nullptr, JS::ProfilingCategoryPair::DOM)
7628 "DatabaseConnection::UpdateRefcountFunction::CreateJournals", DOM)mozilla::AutoProfilerLabel raiiObject7628( "DatabaseConnection::UpdateRefcountFunction::CreateJournals"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7629
7630 const nsCOMPtr<nsIFile> journalDirectory = mFileManager.GetJournalDirectory();
7631 QM_TRY(OkIf(journalDirectory), NS_ERROR_FAILURE){auto tryResult954 = (OkIf(journalDirectory)); 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(journalDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7631, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(journalDirectory)"
, tryTempError, NS_ERROR_FAILURE); }}
;
7632
7633 for (const int64_t id : mJournalsToCreateBeforeCommit) {
7634 const nsCOMPtr<nsIFile> file =
7635 DatabaseFileManager::GetFileForId(journalDirectory, id);
7636 QM_TRY(OkIf(file), NS_ERROR_FAILURE){auto tryResult955 = (OkIf(file)); static_assert(std::is_empty_v
<typename decltype(tryResult955)::ok_type>); if ((__builtin_expect
(!!(tryResult955.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult955.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(file)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7636, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(file)", tryTempError
, NS_ERROR_FAILURE); }}
;
7637
7638 QM_TRY(MOZ_TO_RESULT(file->Create(nsIFile::NORMAL_FILE_TYPE, 0644))){auto tryResult956 = (ToResult(file->Create(nsIFile::NORMAL_FILE_TYPE
, 0644))); static_assert(std::is_empty_v<typename decltype
(tryResult956)::ok_type>); if ((__builtin_expect(!!(tryResult956
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Create(nsIFile::NORMAL_FILE_TYPE, 0644))"
, tryResult956.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7638, mozilla::dom::quota::Severity::Error); return tryResult956
.propagateErr(); }}
;
7639
7640 mJournalsToRemoveAfterAbort.AppendElement(id);
7641 }
7642
7643 return NS_OK;
7644}
7645
7646nsresult DatabaseConnection::UpdateRefcountFunction::RemoveJournals(
7647 const nsTArray<int64_t>& aJournals) {
7648 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"
, 7648); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { *((volatile int*)__null) = 7648; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7649 mConnection->AssertIsOnConnectionThread();
7650
7651 AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject7652( "DatabaseConnection::UpdateRefcountFunction::RemoveJournals"
, nullptr, JS::ProfilingCategoryPair::DOM)
7652 "DatabaseConnection::UpdateRefcountFunction::RemoveJournals", DOM)mozilla::AutoProfilerLabel raiiObject7652( "DatabaseConnection::UpdateRefcountFunction::RemoveJournals"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7653
7654 nsCOMPtr<nsIFile> journalDirectory = mFileManager.GetJournalDirectory();
7655 QM_TRY(OkIf(journalDirectory), NS_ERROR_FAILURE){auto tryResult957 = (OkIf(journalDirectory)); 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(journalDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7655, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(journalDirectory)"
, tryTempError, NS_ERROR_FAILURE); }}
;
7656
7657 for (const auto& journal : aJournals) {
7658 nsCOMPtr<nsIFile> file =
7659 DatabaseFileManager::GetFileForId(journalDirectory, journal);
7660 QM_TRY(OkIf(file), NS_ERROR_FAILURE){auto tryResult958 = (OkIf(file)); static_assert(std::is_empty_v
<typename decltype(tryResult958)::ok_type>); if ((__builtin_expect
(!!(tryResult958.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult958.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(file)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7660, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(file)", tryTempError
, NS_ERROR_FAILURE); }}
;
7661
7662 QM_WARNONLY_TRY(QM_TO_RESULT(file->Remove(false))){auto tryResult959 = (ToResult<QMResult>(file->Remove
(false))); static_assert(std::is_empty_v<typename decltype
(tryResult959)::ok_type>); if ((__builtin_expect(!!(tryResult959
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult<QMResult>(file->Remove(false))"
, tryResult959.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7662, mozilla::dom::quota::Severity::Warning); }}
;
7663 }
7664
7665 return NS_OK;
7666}
7667
7668NS_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"
, 7669); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { *((volatile int*)__null) =
7669; __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"
, 7669); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DatabaseConnection::UpdateRefcountFunction\" != nullptr"
") (" "Must specify a name" ")"); do { *((volatile int*)__null
) = 7669; __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"
, 7669); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { *((volatile int*)__null) = 7669
; __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"
, 7669); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DatabaseConnection::UpdateRefcountFunction\" != nullptr"
") (" "Must specify a name" ")"); do { *((volatile int*)__null
) = 7669; __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"
, 7669); 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
((sizeof(table) / sizeof(table[0])) > 1, "need at least 1 interface"
); rv = NS_TableDrivenQI(static_cast<void*>(this), aIID
, aInstancePtr, table); return rv; }
7669 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"
, 7669); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { *((volatile int*)__null) =
7669; __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"
, 7669); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DatabaseConnection::UpdateRefcountFunction\" != nullptr"
") (" "Must specify a name" ")"); do { *((volatile int*)__null
) = 7669; __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"
, 7669); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { *((volatile int*)__null) = 7669
; __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"
, 7669); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DatabaseConnection::UpdateRefcountFunction\" != nullptr"
") (" "Must specify a name" ")"); do { *((volatile int*)__null
) = 7669; __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"
, 7669); 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
((sizeof(table) / sizeof(table[0])) > 1, "need at least 1 interface"
); rv = NS_TableDrivenQI(static_cast<void*>(this), aIID
, aInstancePtr, table); return rv; }
7670
7671NS_IMETHODIMPnsresult
7672DatabaseConnection::UpdateRefcountFunction::OnFunctionCall(
7673 mozIStorageValueArray* aValues, nsIVariant** _retval) {
7674 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"
, 7674); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aValues" ")"
); do { *((volatile int*)__null) = 7674; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7675 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"
, 7675); AnnotateMozCrashReason("MOZ_ASSERT" "(" "_retval" ")"
); do { *((volatile int*)__null) = 7675; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7676
7677 AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject7678( "DatabaseConnection::UpdateRefcountFunction::OnFunctionCall"
, nullptr, JS::ProfilingCategoryPair::DOM)
7678 "DatabaseConnection::UpdateRefcountFunction::OnFunctionCall", DOM)mozilla::AutoProfilerLabel raiiObject7678( "DatabaseConnection::UpdateRefcountFunction::OnFunctionCall"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7679
7680#ifdef DEBUG1
7681 {
7682 QM_TRY_INSPECT(const uint32_t& numEntries,auto tryResult960 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetNumEntries)); if ((__builtin_expect(!!(tryResult960.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult960
.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"
, 7684, 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"
, 7684); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 7684; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const uint32_t
& numEntries = tryResult960.inspect();
7683 MOZ_TO_RESULT_INVOKE_MEMBER(aValues, GetNumEntries),auto tryResult960 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetNumEntries)); if ((__builtin_expect(!!(tryResult960.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult960
.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"
, 7684, 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"
, 7684); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 7684; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const uint32_t
& numEntries = tryResult960.inspect();
7684 QM_ASSERT_UNREACHABLE)auto tryResult960 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetNumEntries)); if ((__builtin_expect(!!(tryResult960.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult960
.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"
, 7684, 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"
, 7684); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 7684; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const uint32_t
& numEntries = tryResult960.inspect();
;
7685
7686 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"
, 7686); AnnotateMozCrashReason("MOZ_ASSERT" "(" "numEntries == 2"
")"); do { *((volatile int*)__null) = 7686; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7687
7688 QM_TRY_INSPECT(const int32_t& type1,auto tryResult961 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetTypeOfIndex, 0)); 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, 0)"
, 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, "::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"
, 7690); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 7690; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const int32_t
& type1 = tryResult961.inspect();
7689 MOZ_TO_RESULT_INVOKE_MEMBER(aValues, GetTypeOfIndex, 0),auto tryResult961 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetTypeOfIndex, 0)); 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, 0)"
, 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, "::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"
, 7690); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 7690; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const int32_t
& type1 = tryResult961.inspect();
7690 QM_ASSERT_UNREACHABLE)auto tryResult961 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetTypeOfIndex, 0)); 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, 0)"
, 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, "::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"
, 7690); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 7690; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const int32_t
& type1 = tryResult961.inspect();
;
7691
7692 QM_TRY_INSPECT(const int32_t& type2,auto tryResult962 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetTypeOfIndex, 1)); if ((__builtin_expect(!!(tryResult962.
isErr()), 0))) { auto tryTempError __attribute__((__unused__)
) = tryResult962.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"
, 7694, 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"
, 7694); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 7694; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const int32_t
& type2 = tryResult962.inspect();
7693 MOZ_TO_RESULT_INVOKE_MEMBER(aValues, GetTypeOfIndex, 1),auto tryResult962 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetTypeOfIndex, 1)); if ((__builtin_expect(!!(tryResult962.
isErr()), 0))) { auto tryTempError __attribute__((__unused__)
) = tryResult962.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"
, 7694, 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"
, 7694); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 7694; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const int32_t
& type2 = tryResult962.inspect();
7694 QM_ASSERT_UNREACHABLE)auto tryResult962 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetTypeOfIndex, 1)); if ((__builtin_expect(!!(tryResult962.
isErr()), 0))) { auto tryTempError __attribute__((__unused__)
) = tryResult962.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"
, 7694, 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"
, 7694); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 7694; __attribute__((nomerge
)) ::abort(); } while (false); } while (false); }); } const int32_t
& type2 = tryResult962.inspect();
;
7695
7696 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"
, 7697); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL && type2 == mozIStorageValueArray::VALUE_TYPE_NULL)"
")"); do { *((volatile int*)__null) = 7697; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
7697 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"
, 7697); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL && type2 == mozIStorageValueArray::VALUE_TYPE_NULL)"
")"); do { *((volatile int*)__null) = 7697; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7698 }
7699#endif
7700
7701 QM_TRY(MOZ_TO_RESULT(ProcessValue(aValues, 0, UpdateType::Decrement))){auto tryResult963 = (ToResult(ProcessValue(aValues, 0, UpdateType
::Decrement))); static_assert(std::is_empty_v<typename decltype
(tryResult963)::ok_type>); if ((__builtin_expect(!!(tryResult963
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(ProcessValue(aValues, 0, UpdateType::Decrement))"
, tryResult963.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7701, mozilla::dom::quota::Severity::Error); return tryResult963
.propagateErr(); }}
;
7702
7703 QM_TRY(MOZ_TO_RESULT(ProcessValue(aValues, 1, UpdateType::Increment))){auto tryResult964 = (ToResult(ProcessValue(aValues, 1, UpdateType
::Increment))); static_assert(std::is_empty_v<typename decltype
(tryResult964)::ok_type>); if ((__builtin_expect(!!(tryResult964
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(ProcessValue(aValues, 1, UpdateType::Increment))"
, tryResult964.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7703, mozilla::dom::quota::Severity::Error); return tryResult964
.propagateErr(); }}
;
7704
7705 return NS_OK;
7706}
7707
7708/*******************************************************************************
7709 * ConnectionPool implementation
7710 ******************************************************************************/
7711
7712ConnectionPool::ConnectionPool()
7713 : mDatabasesMutex("ConnectionPool::mDatabasesMutex"),
7714 mIOTarget(MakeConnectionIOTarget()),
7715 mIdleTimer(NS_NewTimer()),
7716 mNextTransactionId(0) {
7717 AssertIsOnOwningThread();
7718 AssertIsOnBackgroundThread();
7719 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"
, 7719); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleTimer"
")"); do { *((volatile int*)__null) = 7719; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7720}
7721
7722ConnectionPool::~ConnectionPool() {
7723 AssertIsOnOwningThread();
7724 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"
, 7724); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleDatabases.IsEmpty()"
")"); do { *((volatile int*)__null) = 7724; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7725 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"
, 7725); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mIdleTimer"
")"); do { *((volatile int*)__null) = 7725; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7726 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"
, 7726); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTargetIdleTime.IsNull()"
")"); do { *((volatile int*)__null) = 7726; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7727 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"
, 7727); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabases.Count()"
")"); do { *((volatile int*)__null) = 7727; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7728 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"
, 7728); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Count()"
")"); do { *((volatile int*)__null) = 7728; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7729 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"
, 7729); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mQueuedTransactions.IsEmpty()"
")"); do { *((volatile int*)__null) = 7729; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7730 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"
, 7730); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCompleteCallbacks.IsEmpty()"
")"); do { *((volatile int*)__null) = 7730; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7731 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"
, 7731); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mShutdownRequested"
")"); do { *((volatile int*)__null) = 7731; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7732 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"
, 7732); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mShutdownComplete"
")"); do { *((volatile int*)__null) = 7732; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7733}
7734
7735// static
7736void ConnectionPool::IdleTimerCallback(nsITimer* aTimer, void* aClosure) {
7737 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"
, 7737); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aTimer" ")"
); do { *((volatile int*)__null) = 7737; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7738 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"
, 7738); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aClosure" ")"
); do { *((volatile int*)__null) = 7738; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7739
7740 AUTO_PROFILER_LABEL("ConnectionPool::IdleTimerCallback", DOM)mozilla::AutoProfilerLabel raiiObject7740( "ConnectionPool::IdleTimerCallback"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7741
7742 auto& self = *static_cast<ConnectionPool*>(aClosure);
7743 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"
, 7743); AnnotateMozCrashReason("MOZ_ASSERT" "(" "self.mIdleTimer"
")"); do { *((volatile int*)__null) = 7743; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7744 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"
, 7744); AnnotateMozCrashReason("MOZ_ASSERT" "(" "SameCOMIdentity(self.mIdleTimer, aTimer)"
")"); do { *((volatile int*)__null) = 7744; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7745 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"
, 7745); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!self.mTargetIdleTime.IsNull()"
")"); do { *((volatile int*)__null) = 7745; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7746
7747 self.mTargetIdleTime = TimeStamp();
7748
7749 // Cheat a little.
7750 const TimeStamp now =
7751 TimeStamp::NowLoRes() + TimeDuration::FromMilliseconds(500);
7752
7753 // XXX Move this to ArrayAlgorithm.h?
7754 const auto removeUntil = [](auto& array, auto&& cond) {
7755 const auto begin = array.begin(), end = array.end();
7756 array.RemoveElementsRange(
7757 begin, std::find_if(begin, end, std::forward<decltype(cond)>(cond)));
7758 };
7759
7760 removeUntil(self.mIdleDatabases, [now, &self](const auto& info) {
7761 if (now >= info.mIdleTime) {
7762 if ((*info.mDatabaseInfo)->mIdle) {
7763 self.PerformIdleDatabaseMaintenance(*info.mDatabaseInfo.ref());
7764 } else {
7765 self.CloseDatabase(*info.mDatabaseInfo.ref());
7766 }
7767
7768 return false;
7769 }
7770
7771 return true;
7772 });
7773
7774 self.AdjustIdleTimer();
7775}
7776
7777Result<RefPtr<DatabaseConnection>, nsresult>
7778ConnectionPool::GetOrCreateConnection(const Database& aDatabase) {
7779 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"
, 7779); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { *((volatile int*)__null) = 7779; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7780 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"
, 7780); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 7780; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7781
7782 AUTO_PROFILER_LABEL("ConnectionPool::GetOrCreateConnection", DOM)mozilla::AutoProfilerLabel raiiObject7782( "ConnectionPool::GetOrCreateConnection"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7783
7784 DatabaseInfo* dbInfo;
7785 {
7786 MutexAutoLock lock(mDatabasesMutex);
7787
7788 dbInfo = mDatabases.Get(aDatabase.Id());
7789 }
7790
7791 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"
, 7791); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo" ")"
); do { *((volatile int*)__null) = 7791; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7792
7793 if (dbInfo->mConnection) {
7794 dbInfo->AssertIsOnConnectionThread();
7795
7796 return dbInfo->mConnection;
7797 }
7798
7799 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"
, 7799); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo->mDEBUGConnectionEventTarget"
")"); do { *((volatile int*)__null) = 7799; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7800
7801 QM_TRY_UNWRAP(auto tryResult965 = (GetStorageConnection(aDatabase.FilePath(
), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase
.MaybeKeyRef())); if ((__builtin_expect(!!(tryResult965.isErr
()), 0))) { mozilla::dom::quota::HandleError("GetStorageConnection(aDatabase.FilePath(), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase.MaybeKeyRef())"
, tryResult965.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7804, mozilla::dom::quota::Severity::Error); return tryResult965
.propagateErr(); } MovingNotNull<nsCOMPtr<mozIStorageConnection
>> storageConnection = tryResult965.unwrap();
7802 MovingNotNull<nsCOMPtr<mozIStorageConnection>> storageConnection,auto tryResult965 = (GetStorageConnection(aDatabase.FilePath(
), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase
.MaybeKeyRef())); if ((__builtin_expect(!!(tryResult965.isErr
()), 0))) { mozilla::dom::quota::HandleError("GetStorageConnection(aDatabase.FilePath(), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase.MaybeKeyRef())"
, tryResult965.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7804, mozilla::dom::quota::Severity::Error); return tryResult965
.propagateErr(); } MovingNotNull<nsCOMPtr<mozIStorageConnection
>> storageConnection = tryResult965.unwrap();
7803 GetStorageConnection(aDatabase.FilePath(), aDatabase.DirectoryLockId(),auto tryResult965 = (GetStorageConnection(aDatabase.FilePath(
), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase
.MaybeKeyRef())); if ((__builtin_expect(!!(tryResult965.isErr
()), 0))) { mozilla::dom::quota::HandleError("GetStorageConnection(aDatabase.FilePath(), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase.MaybeKeyRef())"
, tryResult965.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7804, mozilla::dom::quota::Severity::Error); return tryResult965
.propagateErr(); } MovingNotNull<nsCOMPtr<mozIStorageConnection
>> storageConnection = tryResult965.unwrap();
7804 aDatabase.TelemetryId(), aDatabase.MaybeKeyRef()))auto tryResult965 = (GetStorageConnection(aDatabase.FilePath(
), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase
.MaybeKeyRef())); if ((__builtin_expect(!!(tryResult965.isErr
()), 0))) { mozilla::dom::quota::HandleError("GetStorageConnection(aDatabase.FilePath(), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase.MaybeKeyRef())"
, tryResult965.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7804, mozilla::dom::quota::Severity::Error); return tryResult965
.propagateErr(); } MovingNotNull<nsCOMPtr<mozIStorageConnection
>> storageConnection = tryResult965.unwrap();
;
7805
7806 RefPtr<DatabaseConnection> connection = new DatabaseConnection(
7807 std::move(storageConnection), aDatabase.GetFileManagerPtr());
7808
7809 QM_TRY(MOZ_TO_RESULT(connection->Init())){auto tryResult966 = (ToResult(connection->Init())); static_assert
(std::is_empty_v<typename decltype(tryResult966)::ok_type>
); if ((__builtin_expect(!!(tryResult966.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(connection->Init())", tryResult966
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7809, mozilla::dom::quota::Severity::Error); return tryResult966
.propagateErr(); }}
;
7810
7811 dbInfo->mConnection = connection;
7812
7813 IDB_DEBUG_LOG(("ConnectionPool created connection 0x%p for '%s'",
7814 dbInfo->mConnection.get(),
7815 NS_ConvertUTF16toUTF8(aDatabase.FilePath()).get()));
7816
7817#ifdef DEBUG1
7818 dbInfo->mDEBUGConnectionEventTarget = GetCurrentSerialEventTarget();
7819#endif
7820
7821 return connection;
7822}
7823
7824uint64_t ConnectionPool::Start(
7825 const nsID& aBackgroundChildLoggingId, const nsACString& aDatabaseId,
7826 int64_t aLoggingSerialNumber, const nsTArray<nsString>& aObjectStoreNames,
7827 bool aIsWriteTransaction,
7828 TransactionDatabaseOperationBase* aTransactionOp) {
7829 AssertIsOnOwningThread();
7830 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"
, 7830); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseId.IsEmpty()"
")"); do { *((volatile int*)__null) = 7830; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7831 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"
, 7831); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mNextTransactionId < (18446744073709551615UL)"
")"); do { *((volatile int*)__null) = 7831; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7832 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"
, 7832); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mShutdownRequested"
")"); do { *((volatile int*)__null) = 7832; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7833
7834 AUTO_PROFILER_LABEL("ConnectionPool::Start", DOM)mozilla::AutoProfilerLabel raiiObject7834( "ConnectionPool::Start"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7835
7836 const uint64_t transactionId = ++mNextTransactionId;
7837
7838 // To avoid always acquiring a lock, we don't use WithEntryHandle here, which
7839 // would require a lock in any case.
7840 DatabaseInfo* dbInfo = mDatabases.Get(aDatabaseId);
7841
7842 const bool databaseInfoIsNew = !dbInfo;
7843
7844 if (databaseInfoIsNew) {
7845 MutexAutoLock lock(mDatabasesMutex);
7846
7847 dbInfo = mDatabases
7848 .InsertOrUpdate(aDatabaseId,
7849 MakeUnique<DatabaseInfo>(this, aDatabaseId))
7850 .get();
7851 }
7852
7853 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"
, 7853); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Contains(transactionId)"
")"); do { *((volatile int*)__null) = 7853; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7854 auto& transactionInfo = *mTransactions.InsertOrUpdate(
7855 transactionId, MakeUnique<TransactionInfo>(
7856 *dbInfo, aBackgroundChildLoggingId, aDatabaseId,
7857 transactionId, aLoggingSerialNumber, aObjectStoreNames,
7858 aIsWriteTransaction, aTransactionOp));
7859
7860 if (aIsWriteTransaction) {
7861 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"
, 7861); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo->mWriteTransactionCount < (4294967295U)"
")"); do { *((volatile int*)__null) = 7861; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7862 dbInfo->mWriteTransactionCount++;
7863 } else {
7864 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"
, 7864); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo->mReadTransactionCount < (4294967295U)"
")"); do { *((volatile int*)__null) = 7864; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7865 dbInfo->mReadTransactionCount++;
7866 }
7867
7868 auto& blockingTransactions = dbInfo->mBlockingTransactions;
7869
7870 for (const nsAString& objectStoreName : aObjectStoreNames) {
7871 TransactionInfoPair* blockInfo =
7872 blockingTransactions.GetOrInsertNew(objectStoreName);
7873
7874 // Mark what we are blocking on.
7875 if (const auto maybeBlockingRead = blockInfo->mLastBlockingReads) {
7876 transactionInfo.mBlockedOn.Insert(&maybeBlockingRead.ref());
7877 maybeBlockingRead->AddBlockingTransaction(transactionInfo);
7878 }
7879
7880 if (aIsWriteTransaction) {
7881 for (const auto blockingWrite : blockInfo->mLastBlockingWrites) {
7882 transactionInfo.mBlockedOn.Insert(blockingWrite);
7883 blockingWrite->AddBlockingTransaction(transactionInfo);
7884 }
7885
7886 blockInfo->mLastBlockingReads = SomeRef(transactionInfo);
7887 blockInfo->mLastBlockingWrites.Clear();
7888 } else {
7889 blockInfo->mLastBlockingWrites.AppendElement(
7890 WrapNotNullUnchecked(&transactionInfo));
7891 }
7892 }
7893
7894 if (!transactionInfo.mBlockedOn.Count()) {
7895 Unused << ScheduleTransaction(transactionInfo,
7896 /* aFromQueuedTransactions */ false);
7897 }
7898
7899 if (!databaseInfoIsNew &&
7900 (mIdleDatabases.RemoveElement(dbInfo) ||
7901 mDatabasesPerformingIdleMaintenance.RemoveElement(dbInfo))) {
7902 AdjustIdleTimer();
7903 }
7904
7905 return transactionId;
7906}
7907
7908void ConnectionPool::Dispatch(uint64_t aTransactionId, nsIRunnable* aRunnable) {
7909 AssertIsOnOwningThread();
7910 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"
, 7910); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aRunnable" ")"
); do { *((volatile int*)__null) = 7910; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7911
7912 AUTO_PROFILER_LABEL("ConnectionPool::Dispatch", DOM)mozilla::AutoProfilerLabel raiiObject7912( "ConnectionPool::Dispatch"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7913
7914 auto* const transactionInfo = mTransactions.Get(aTransactionId);
7915 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"
, 7915); AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo"
")"); do { *((volatile int*)__null) = 7915; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7916 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"
, 7916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!transactionInfo->mFinished"
")"); do { *((volatile int*)__null) = 7916; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7917
7918 if (transactionInfo->mRunning) {
7919 DatabaseInfo& dbInfo = transactionInfo->mDatabaseInfo;
7920 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"
, 7920); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mEventTarget"
")"); do { *((volatile int*)__null) = 7920; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7921 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"
, 7921); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo.mClosing"
")"); do { *((volatile int*)__null) = 7921; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7922 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"
, 7925); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mRunningWriteTransaction && dbInfo.mRunningWriteTransaction.refEquals(*transactionInfo)"
")"); do { *((volatile int*)__null) = 7925; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
7923 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"
, 7925); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mRunningWriteTransaction && dbInfo.mRunningWriteTransaction.refEquals(*transactionInfo)"
")"); do { *((volatile int*)__null) = 7925; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
7924 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"
, 7925); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mRunningWriteTransaction && dbInfo.mRunningWriteTransaction.refEquals(*transactionInfo)"
")"); do { *((volatile int*)__null) = 7925; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
7925 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"
, 7925); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mRunningWriteTransaction && dbInfo.mRunningWriteTransaction.refEquals(*transactionInfo)"
")"); do { *((volatile int*)__null) = 7925; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
7926
7927 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 { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(dbInfo.Dispatch(do_AddRef(aRunnable)))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 7927); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(dbInfo.Dispatch(do_AddRef(aRunnable)))" ")"
); do { *((volatile int*)__null) = 7927; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
7928 } else {
7929 transactionInfo->mQueuedRunnables.AppendElement(aRunnable);
7930 }
7931}
7932
7933void ConnectionPool::Finish(uint64_t aTransactionId,
7934 FinishCallback* aCallback) {
7935 AssertIsOnOwningThread();
7936
7937#ifdef DEBUG1
7938 auto* const transactionInfo = mTransactions.Get(aTransactionId);
7939 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"
, 7939); AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo"
")"); do { *((volatile int*)__null) = 7939; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7940 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"
, 7940); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!transactionInfo->mFinished"
")"); do { *((volatile int*)__null) = 7940; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7941#endif
7942
7943 AUTO_PROFILER_LABEL("ConnectionPool::Finish", DOM)mozilla::AutoProfilerLabel raiiObject7943( "ConnectionPool::Finish"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7944
7945 RefPtr<FinishCallbackWrapper> wrapper =
7946 new FinishCallbackWrapper(this, aTransactionId, aCallback);
7947
7948 Dispatch(aTransactionId, wrapper);
7949
7950#ifdef DEBUG1
7951 transactionInfo->mFinished.Flip();
7952#endif
7953}
7954
7955void ConnectionPool::WaitForDatabaseToComplete(const nsCString& aDatabaseId,
7956 nsIRunnable* aCallback) {
7957 AssertIsOnOwningThread();
7958 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"
, 7958); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseId.IsEmpty()"
")"); do { *((volatile int*)__null) = 7958; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7959 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"
, 7959); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback" ")"
); do { *((volatile int*)__null) = 7959; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7960
7961 AUTO_PROFILER_LABEL("ConnectionPool::WaitForDatabaseToComplete", DOM)mozilla::AutoProfilerLabel raiiObject7961( "ConnectionPool::WaitForDatabaseToComplete"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7962
7963 if (!CloseDatabaseWhenIdleInternal(aDatabaseId)) {
7964 Unused << aCallback->Run();
7965 return;
7966 }
7967
7968 mCompleteCallbacks.EmplaceBack(
7969 MakeUnique<DatabaseCompleteCallback>(aDatabaseId, aCallback));
7970}
7971
7972void ConnectionPool::Shutdown() {
7973 AssertIsOnOwningThread();
7974 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"
, 7974); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mShutdownComplete"
")"); do { *((volatile int*)__null) = 7974; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7975
7976 AUTO_PROFILER_LABEL("ConnectionPool::Shutdown", DOM)mozilla::AutoProfilerLabel raiiObject7976( "ConnectionPool::Shutdown"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
7977
7978 mShutdownRequested.Flip();
7979
7980 CancelIdleTimer();
7981 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"
, 7981); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTargetIdleTime.IsNull()"
")"); do { *((volatile int*)__null) = 7981; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7982
7983 mIdleTimer = nullptr;
7984
7985 CloseIdleDatabases();
7986
7987 if (!mDatabases.Count()) {
7988 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"
, 7988); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Count()"
")"); do { *((volatile int*)__null) = 7988; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7989
7990 Cleanup();
7991
7992 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"
, 7992); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mShutdownComplete"
")"); do { *((volatile int*)__null) = 7992; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
7993
7994 mIOTarget->Shutdown();
7995
7996 return;
7997 }
7998
7999 MOZ_ALWAYS_TRUE(SpinEventLoopUntil("ConnectionPool::Shutdown"_ns, [&]() {do { if ((__builtin_expect(!!(SpinEventLoopUntil("ConnectionPool::Shutdown"_ns
, [&]() { return static_cast<bool>(mShutdownComplete
); })), 1))) { } else { do { static_assert( mozilla::detail::
AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "SpinEventLoopUntil(\"ConnectionPool::Shutdown\"_ns, [&]() { return static_cast<bool>(mShutdownComplete); })"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8001); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "SpinEventLoopUntil(\"ConnectionPool::Shutdown\"_ns, [&]() { return static_cast<bool>(mShutdownComplete); })"
")"); do { *((volatile int*)__null) = 8001; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
8000 return static_cast<bool>(mShutdownComplete);do { if ((__builtin_expect(!!(SpinEventLoopUntil("ConnectionPool::Shutdown"_ns
, [&]() { return static_cast<bool>(mShutdownComplete
); })), 1))) { } else { do { static_assert( mozilla::detail::
AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "SpinEventLoopUntil(\"ConnectionPool::Shutdown\"_ns, [&]() { return static_cast<bool>(mShutdownComplete); })"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8001); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "SpinEventLoopUntil(\"ConnectionPool::Shutdown\"_ns, [&]() { return static_cast<bool>(mShutdownComplete); })"
")"); do { *((volatile int*)__null) = 8001; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
8001 }))do { if ((__builtin_expect(!!(SpinEventLoopUntil("ConnectionPool::Shutdown"_ns
, [&]() { return static_cast<bool>(mShutdownComplete
); })), 1))) { } else { do { static_assert( mozilla::detail::
AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "SpinEventLoopUntil(\"ConnectionPool::Shutdown\"_ns, [&]() { return static_cast<bool>(mShutdownComplete); })"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8001); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "SpinEventLoopUntil(\"ConnectionPool::Shutdown\"_ns, [&]() { return static_cast<bool>(mShutdownComplete); })"
")"); do { *((volatile int*)__null) = 8001; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
8002
8003 mIOTarget->Shutdown();
8004}
8005
8006void ConnectionPool::Cleanup() {
8007 AssertIsOnOwningThread();
8008 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"
, 8008); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mShutdownRequested"
")"); do { *((volatile int*)__null) = 8008; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8009 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"
, 8009); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mShutdownComplete"
")"); do { *((volatile int*)__null) = 8009; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8010 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"
, 8010); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabases.Count()"
")"); do { *((volatile int*)__null) = 8010; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8011 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"
, 8011); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Count()"
")"); do { *((volatile int*)__null) = 8011; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8012
8013 AUTO_PROFILER_LABEL("ConnectionPool::Cleanup", DOM)mozilla::AutoProfilerLabel raiiObject8013( "ConnectionPool::Cleanup"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8014
8015 if (!mCompleteCallbacks.IsEmpty()) {
8016 // Run all callbacks manually now.
8017
8018 {
8019 auto completeCallbacks = std::move(mCompleteCallbacks);
8020 for (const auto& completeCallback : completeCallbacks) {
8021 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"
, 8021); AnnotateMozCrashReason("MOZ_ASSERT" "(" "completeCallback"
")"); do { *((volatile int*)__null) = 8021; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8022 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"
, 8022); AnnotateMozCrashReason("MOZ_ASSERT" "(" "completeCallback->mCallback"
")"); do { *((volatile int*)__null) = 8022; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8023
8024 Unused << completeCallback->mCallback->Run();
8025 }
8026
8027 // We expect no new callbacks being completed by running the existing
8028 // ones.
8029 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"
, 8029); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCompleteCallbacks.IsEmpty()"
")"); do { *((volatile int*)__null) = 8029; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8030 }
8031
8032 // And make sure they get processed.
8033 nsIThread* currentThread = NS_GetCurrentThread();
8034 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"
, 8034); AnnotateMozCrashReason("MOZ_ASSERT" "(" "currentThread"
")"); do { *((volatile int*)__null) = 8034; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8035
8036 MOZ_ALWAYS_SUCCEEDS(NS_ProcessPendingEvents(currentThread))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(NS_ProcessPendingEvents(currentThread))), 1)))), 1))) { } else
{ do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(NS_ProcessPendingEvents(currentThread))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8036); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(NS_ProcessPendingEvents(currentThread))"
")"); do { *((volatile int*)__null) = 8036; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
8037 }
8038
8039 mShutdownComplete.Flip();
8040}
8041
8042void ConnectionPool::AdjustIdleTimer() {
8043 AssertIsOnOwningThread();
8044 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"
, 8044); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleTimer"
")"); do { *((volatile int*)__null) = 8044; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8045
8046 AUTO_PROFILER_LABEL("ConnectionPool::AdjustIdleTimer", DOM)mozilla::AutoProfilerLabel raiiObject8046( "ConnectionPool::AdjustIdleTimer"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8047
8048 // Figure out the next time at which we should release idle resources. This
8049 // includes both databases and threads.
8050 TimeStamp newTargetIdleTime;
8051 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"
, 8051); AnnotateMozCrashReason("MOZ_ASSERT" "(" "newTargetIdleTime.IsNull()"
")"); do { *((volatile int*)__null) = 8051; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8052
8053 if (!mIdleDatabases.IsEmpty()) {
8054 newTargetIdleTime = mIdleDatabases[0].mIdleTime;
8055 }
8056
8057 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"
, 8057); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleDatabases.IsEmpty()"
")"); do { *((volatile int*)__null) = 8057; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
8058
8059 // Cancel the timer if it was running and the new target time is different.
8060 if (!mTargetIdleTime.IsNull() &&
8061 (newTargetIdleTime.IsNull() || mTargetIdleTime != newTargetIdleTime)) {
8062 CancelIdleTimer();
8063
8064 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"
, 8064); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTargetIdleTime.IsNull()"
")"); do { *((volatile int*)__null) = 8064; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8065 }
8066
8067 // Schedule the timer if we have a target time different than before.
8068 if (!newTargetIdleTime.IsNull() &&
8069 (mTargetIdleTime.IsNull() || mTargetIdleTime != newTargetIdleTime)) {
8070 double delta = (newTargetIdleTime - TimeStamp::NowLoRes()).ToMilliseconds();
8071
8072 uint32_t delay;
8073 if (delta > 0) {
8074 delay = uint32_t(std::min(delta, double(UINT32_MAX(4294967295U))));
8075 } else {
8076 delay = 0;
8077 }
8078
8079 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 { static_assert( mozilla::detail
::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, \"ConnectionPool::IdleTimerCallback\"))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8081); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, \"ConnectionPool::IdleTimerCallback\"))"
")"); do { *((volatile int*)__null) = 8081; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
8080 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 { static_assert( mozilla::detail
::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, \"ConnectionPool::IdleTimerCallback\"))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8081); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, \"ConnectionPool::IdleTimerCallback\"))"
")"); do { *((volatile int*)__null) = 8081; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
8081 "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 { static_assert( mozilla::detail
::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, \"ConnectionPool::IdleTimerCallback\"))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8081); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, \"ConnectionPool::IdleTimerCallback\"))"
")"); do { *((volatile int*)__null) = 8081; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
8082
8083 mTargetIdleTime = newTargetIdleTime;
8084 }
8085}
8086
8087void ConnectionPool::CancelIdleTimer() {
8088 AssertIsOnOwningThread();
8089 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"
, 8089); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleTimer"
")"); do { *((volatile int*)__null) = 8089; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8090
8091 if (!mTargetIdleTime.IsNull()) {
8092 MOZ_ALWAYS_SUCCEEDS(mIdleTimer->Cancel())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mIdleTimer->Cancel())), 1)))), 1))) { } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "NS_SUCCEEDED(mIdleTimer->Cancel())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8092); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(mIdleTimer->Cancel())" ")"); do { *((
volatile int*)__null) = 8092; __attribute__((nomerge)) ::abort
(); } while (false); } } while (false); } } while (false)
;
8093
8094 mTargetIdleTime = TimeStamp();
8095 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"
, 8095); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTargetIdleTime.IsNull()"
")"); do { *((volatile int*)__null) = 8095; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8096 }
8097}
8098
8099void ConnectionPool::CloseIdleDatabases() {
8100 AssertIsOnOwningThread();
8101 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"
, 8101); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mShutdownRequested"
")"); do { *((volatile int*)__null) = 8101; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8102
8103 AUTO_PROFILER_LABEL("ConnectionPool::CloseIdleDatabases", DOM)mozilla::AutoProfilerLabel raiiObject8103( "ConnectionPool::CloseIdleDatabases"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8104
8105 if (!mIdleDatabases.IsEmpty()) {
8106 for (IdleDatabaseInfo& idleInfo : mIdleDatabases) {
8107 CloseDatabase(*idleInfo.mDatabaseInfo.ref());
8108 }
8109 mIdleDatabases.Clear();
8110 }
8111
8112 if (!mDatabasesPerformingIdleMaintenance.IsEmpty()) {
8113 for (PerformingIdleMaintenanceDatabaseInfo& performingIdleMaintenanceInfo :
8114 mDatabasesPerformingIdleMaintenance) {
8115 CloseDatabase(*performingIdleMaintenanceInfo.mDatabaseInfo);
8116 }
8117 mDatabasesPerformingIdleMaintenance.Clear();
8118 }
8119}
8120
8121bool ConnectionPool::ScheduleTransaction(TransactionInfo& aTransactionInfo,
8122 bool aFromQueuedTransactions) {
8123 AssertIsOnOwningThread();
8124
8125 AUTO_PROFILER_LABEL("ConnectionPool::ScheduleTransaction", DOM)mozilla::AutoProfilerLabel raiiObject8125( "ConnectionPool::ScheduleTransaction"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8126
8127 DatabaseInfo& dbInfo = aTransactionInfo.mDatabaseInfo;
8128
8129 dbInfo.mIdle = false;
8130
8131 if (dbInfo.mClosing) {
8132 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"
, 8132); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mIdleDatabases.Contains(&dbInfo)"
")"); do { *((volatile int*)__null) = 8132; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8133 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"
, 8134); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo.mTransactionsScheduledDuringClose.Contains(&aTransactionInfo)"
")"); do { *((volatile int*)__null) = 8134; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
8134 !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"
, 8134); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo.mTransactionsScheduledDuringClose.Contains(&aTransactionInfo)"
")"); do { *((volatile int*)__null) = 8134; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8135
8136 dbInfo.mTransactionsScheduledDuringClose.AppendElement(
8137 WrapNotNullUnchecked(&aTransactionInfo));
8138 return true;
8139 }
8140
8141 if (!dbInfo.mEventTarget) {
8142 const uint32_t serialNumber = SerialNumber();
8143 const nsCString serialName =
8144 nsPrintfCString("IndexedDB #%" PRIu32"u", serialNumber);
8145
8146 dbInfo.mEventTarget =
8147 TaskQueue::Create(do_AddRef(mIOTarget), serialName.get());
8148 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"
, 8148); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mEventTarget"
")"); do { *((volatile int*)__null) = 8148; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8149 IDB_DEBUG_LOG(("ConnectionPool created task queue %" PRIu32"u", serialNumber));
8150 }
8151
8152 // The number of active operations equals the number of databases minus idle
8153 // databases. The maximum number of database operations which can make
8154 // progress at the same time is kMaxConnectionThreadCount. If we are at this
8155 // limit, all idle processing is interrupted to make room for user
8156 // transactions.
8157 if (mDatabases.Count() >=
8158 (mIdleDatabases.Length() + kMaxConnectionThreadCount) &&
8159 !mDatabasesPerformingIdleMaintenance.IsEmpty()) {
8160 const auto& busyDbs = mDatabasesPerformingIdleMaintenance;
8161 for (auto dbInfo = busyDbs.rbegin(); dbInfo != busyDbs.rend(); ++dbInfo) {
8162 (*dbInfo).mIdleConnectionRunnable->Interrupt();
8163 }
8164 }
8165
8166 if (aTransactionInfo.mIsWriteTransaction) {
8167 if (dbInfo.mRunningWriteTransaction) {
8168 // SQLite only allows one write transaction at a time so queue this
8169 // transaction for later.
8170 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"
, 8171); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo)"
")"); do { *((volatile int*)__null) = 8171; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
8171 !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"
, 8171); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo)"
")"); do { *((volatile int*)__null) = 8171; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8172
8173 dbInfo.mScheduledWriteTransactions.AppendElement(
8174 WrapNotNullUnchecked(&aTransactionInfo));
8175 return true;
8176 }
8177
8178 dbInfo.mRunningWriteTransaction = SomeRef(aTransactionInfo);
8179 dbInfo.mNeedsCheckpoint = true;
8180 }
8181
8182 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"
, 8182); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aTransactionInfo.mRunning"
")"); do { *((volatile int*)__null) = 8182; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8183 aTransactionInfo.mRunning = true;
8184
8185 nsTArray<nsCOMPtr<nsIRunnable>>& queuedRunnables =
8186 aTransactionInfo.mQueuedRunnables;
8187
8188 if (!queuedRunnables.IsEmpty()) {
8189 for (auto& queuedRunnable : queuedRunnables) {
8190 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 { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(dbInfo.Dispatch(queuedRunnable.forget()))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8190); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(dbInfo.Dispatch(queuedRunnable.forget()))"
")"); do { *((volatile int*)__null) = 8190; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
8191 }
8192
8193 queuedRunnables.Clear();
8194 }
8195
8196 return true;
8197}
8198
8199void ConnectionPool::NoteFinishedTransaction(uint64_t aTransactionId) {
8200 AssertIsOnOwningThread();
8201
8202 AUTO_PROFILER_LABEL("ConnectionPool::NoteFinishedTransaction", DOM)mozilla::AutoProfilerLabel raiiObject8202( "ConnectionPool::NoteFinishedTransaction"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8203
8204 auto* const transactionInfo = mTransactions.Get(aTransactionId);
8205 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"
, 8205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo"
")"); do { *((volatile int*)__null) = 8205; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8206 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"
, 8206); AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo->mRunning"
")"); do { *((volatile int*)__null) = 8206; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8207 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"
, 8207); AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo->mFinished"
")"); do { *((volatile int*)__null) = 8207; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8208
8209 transactionInfo->mRunning = false;
8210
8211 DatabaseInfo& dbInfo = transactionInfo->mDatabaseInfo;
8212 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"
, 8212); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabases.Get(transactionInfo->mDatabaseId) == &dbInfo"
")"); do { *((volatile int*)__null) = 8212; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8213 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"
, 8213); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mEventTarget"
")"); do { *((volatile int*)__null) = 8213; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8214
8215 // Schedule the next write transaction if there are any queued.
8216 if (dbInfo.mRunningWriteTransaction &&
8217 dbInfo.mRunningWriteTransaction.refEquals(*transactionInfo)) {
8218 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"
, 8218); AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo->mIsWriteTransaction"
")"); do { *((volatile int*)__null) = 8218; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8219 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"
, 8219); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mNeedsCheckpoint"
")"); do { *((volatile int*)__null) = 8219; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8220
8221 dbInfo.mRunningWriteTransaction = Nothing();
8222
8223 if (!dbInfo.mScheduledWriteTransactions.IsEmpty()) {
8224 const auto nextWriteTransaction = dbInfo.mScheduledWriteTransactions[0];
8225
8226 dbInfo.mScheduledWriteTransactions.RemoveElementAt(0);
8227
8228 MOZ_ALWAYS_TRUE(ScheduleTransaction(*nextWriteTransaction,do { if ((__builtin_expect(!!(ScheduleTransaction(*nextWriteTransaction
, false)), 1))) { } else { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "ScheduleTransaction(*nextWriteTransaction, false)"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8229); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "ScheduleTransaction(*nextWriteTransaction, false)" ")"
); do { *((volatile int*)__null) = 8229; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
8229 /* aFromQueuedTransactions */ false))do { if ((__builtin_expect(!!(ScheduleTransaction(*nextWriteTransaction
, false)), 1))) { } else { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "ScheduleTransaction(*nextWriteTransaction, false)"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8229); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "ScheduleTransaction(*nextWriteTransaction, false)" ")"
); do { *((volatile int*)__null) = 8229; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
8230 }
8231 }
8232
8233 for (const auto& objectStoreName : transactionInfo->mObjectStoreNames) {
8234 TransactionInfoPair* blockInfo =
8235 dbInfo.mBlockingTransactions.Get(objectStoreName);
8236 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"
, 8236); AnnotateMozCrashReason("MOZ_ASSERT" "(" "blockInfo" ")"
); do { *((volatile int*)__null) = 8236; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8237
8238 if (transactionInfo->mIsWriteTransaction && blockInfo->mLastBlockingReads &&
8239 blockInfo->mLastBlockingReads.refEquals(*transactionInfo)) {
8240 blockInfo->mLastBlockingReads = Nothing();
8241 }
8242
8243 blockInfo->mLastBlockingWrites.RemoveElement(transactionInfo);
8244 }
8245
8246 transactionInfo->RemoveBlockingTransactions();
8247
8248 if (transactionInfo->mIsWriteTransaction) {
8249 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"
, 8249); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mWriteTransactionCount"
")"); do { *((volatile int*)__null) = 8249; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8250 dbInfo.mWriteTransactionCount--;
8251 } else {
8252 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"
, 8252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mReadTransactionCount"
")"); do { *((volatile int*)__null) = 8252; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8253 dbInfo.mReadTransactionCount--;
8254 }
8255
8256 mTransactions.Remove(aTransactionId);
8257
8258 if (!dbInfo.TotalTransactionCount()) {
8259 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"
, 8259); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo.mIdle"
")"); do { *((volatile int*)__null) = 8259; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8260 dbInfo.mIdle = true;
8261
8262 NoteIdleDatabase(dbInfo);
8263 }
8264}
8265
8266void ConnectionPool::ScheduleQueuedTransactions() {
8267 AssertIsOnOwningThread();
8268 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"
, 8268); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mQueuedTransactions.IsEmpty()"
")"); do { *((volatile int*)__null) = 8268; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8269
8270 AUTO_PROFILER_LABEL("ConnectionPool::ScheduleQueuedTransactions", DOM)mozilla::AutoProfilerLabel raiiObject8270( "ConnectionPool::ScheduleQueuedTransactions"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8271
8272 const auto foundIt = std::find_if(
8273 mQueuedTransactions.begin(), mQueuedTransactions.end(),
8274 [&me = *this](const auto& queuedTransaction) {
8275 return !me.ScheduleTransaction(*queuedTransaction,
8276 /* aFromQueuedTransactions */ true);
8277 });
8278
8279 mQueuedTransactions.RemoveElementsRange(mQueuedTransactions.begin(), foundIt);
8280
8281 AdjustIdleTimer();
8282}
8283
8284void ConnectionPool::NoteIdleDatabase(DatabaseInfo& aDatabaseInfo) {
8285 AssertIsOnOwningThread();
8286 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"
, 8286); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseInfo.TotalTransactionCount()"
")"); do { *((volatile int*)__null) = 8286; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8287 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"
, 8287); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mEventTarget"
")"); do { *((volatile int*)__null) = 8287; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8288 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"
, 8288); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mIdleDatabases.Contains(&aDatabaseInfo)"
")"); do { *((volatile int*)__null) = 8288; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8289
8290 AUTO_PROFILER_LABEL("ConnectionPool::NoteIdleDatabase", DOM)mozilla::AutoProfilerLabel raiiObject8290( "ConnectionPool::NoteIdleDatabase"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8291
8292 const bool otherDatabasesWaiting = !mQueuedTransactions.IsEmpty();
8293
8294 // We check mShutdownRequested because when it is true, mIdleTimer is null.
8295 if (mShutdownRequested || otherDatabasesWaiting ||
8296 aDatabaseInfo.mCloseOnIdle) {
8297 // Make sure we close the connection if we're shutting down or giving the
8298 // thread to another database.
8299 CloseDatabase(aDatabaseInfo);
8300
8301 if (otherDatabasesWaiting) {
8302 ScheduleQueuedTransactions();
8303 }
8304
8305 return;
8306 }
8307
8308 mIdleDatabases.InsertElementSorted(IdleDatabaseInfo{aDatabaseInfo});
8309
8310 AdjustIdleTimer();
8311}
8312
8313void ConnectionPool::NoteClosedDatabase(DatabaseInfo& aDatabaseInfo) {
8314 AssertIsOnOwningThread();
8315 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"
, 8315); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mClosing"
")"); do { *((volatile int*)__null) = 8315; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8316 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"
, 8316); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mIdleDatabases.Contains(&aDatabaseInfo)"
")"); do { *((volatile int*)__null) = 8316; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8317
8318 AUTO_PROFILER_LABEL("ConnectionPool::NoteClosedDatabase", DOM)mozilla::AutoProfilerLabel raiiObject8318( "ConnectionPool::NoteClosedDatabase"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8319
8320 aDatabaseInfo.mClosing = false;
8321
8322 // Schedule any transactions that were started while we were closing the
8323 // connection.
8324 if (!mQueuedTransactions.IsEmpty()) {
8325 ScheduleQueuedTransactions();
8326 } else if (!aDatabaseInfo.TotalTransactionCount() && !mShutdownRequested) {
8327 AdjustIdleTimer();
8328 }
8329
8330 // Schedule any transactions that were started while we were closing the
8331 // connection.
8332 if (aDatabaseInfo.TotalTransactionCount()) {
8333 auto& scheduledTransactions =
8334 aDatabaseInfo.mTransactionsScheduledDuringClose;
8335
8336 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"
, 8336); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!scheduledTransactions.IsEmpty()"
")"); do { *((volatile int*)__null) = 8336; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8337
8338 for (const auto& scheduledTransaction : scheduledTransactions) {
8339 Unused << ScheduleTransaction(*scheduledTransaction,
8340 /* aFromQueuedTransactions */ false);
8341 }
8342
8343 scheduledTransactions.Clear();
8344
8345 return;
8346 }
8347
8348 // There are no more transactions and the connection has been closed. We're
8349 // done with this database.
8350 {
8351 MutexAutoLock lock(mDatabasesMutex);
8352
8353 mDatabases.Remove(aDatabaseInfo.mDatabaseId);
8354 }
8355
8356 // That just deleted |aDatabaseInfo|, we must not access that below.
8357
8358 // See if we need to fire any complete callbacks now that the database is
8359 // finished.
8360 mCompleteCallbacks.RemoveLastElements(
8361 mCompleteCallbacks.end() -
8362 std::remove_if(mCompleteCallbacks.begin(), mCompleteCallbacks.end(),
8363 [&me = *this](const auto& completeCallback) {
8364 return me.MaybeFireCallback(completeCallback.get());
8365 }));
8366
8367 // If that was the last database and we're supposed to be shutting down then
8368 // we are finished.
8369 if (mShutdownRequested && !mDatabases.Count()) {
8370 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"
, 8370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Count()"
")"); do { *((volatile int*)__null) = 8370; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8371 Cleanup();
8372 }
8373}
8374
8375bool ConnectionPool::MaybeFireCallback(DatabaseCompleteCallback* aCallback) {
8376 AssertIsOnOwningThread();
8377 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"
, 8377); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback" ")"
); do { *((volatile int*)__null) = 8377; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8378 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"
, 8378); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aCallback->mDatabaseId.IsEmpty()"
")"); do { *((volatile int*)__null) = 8378; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8379 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"
, 8379); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback->mCallback"
")"); do { *((volatile int*)__null) = 8379; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8380
8381 AUTO_PROFILER_LABEL("ConnectionPool::MaybeFireCallback", DOM)mozilla::AutoProfilerLabel raiiObject8381( "ConnectionPool::MaybeFireCallback"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8382
8383 if (mDatabases.Get(aCallback->mDatabaseId)) {
8384 return false;
8385 }
8386
8387 Unused << aCallback->mCallback->Run();
8388 return true;
8389}
8390
8391void ConnectionPool::PerformIdleDatabaseMaintenance(
8392 DatabaseInfo& aDatabaseInfo) {
8393 AssertIsOnOwningThread();
8394 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"
, 8394); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseInfo.TotalTransactionCount()"
")"); do { *((volatile int*)__null) = 8394; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8395 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"
, 8395); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mEventTarget"
")"); do { *((volatile int*)__null) = 8395; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8396 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"
, 8396); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mIdle"
")"); do { *((volatile int*)__null) = 8396; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8397 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"
, 8397); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseInfo.mCloseOnIdle"
")"); do { *((volatile int*)__null) = 8397; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8398 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"
, 8398); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseInfo.mClosing"
")"); do { *((volatile int*)__null) = 8398; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8399 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"
, 8399); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleDatabases.Contains(&aDatabaseInfo)"
")"); do { *((volatile int*)__null) = 8399; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8400 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"
, 8400); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabasesPerformingIdleMaintenance.Contains(&aDatabaseInfo)"
")"); do { *((volatile int*)__null) = 8400; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8401
8402 const bool neededCheckpoint = aDatabaseInfo.mNeedsCheckpoint;
8403
8404 aDatabaseInfo.mNeedsCheckpoint = false;
8405 aDatabaseInfo.mIdle = false;
8406
8407 auto idleConnectionRunnable =
8408 MakeRefPtr<IdleConnectionRunnable>(aDatabaseInfo, neededCheckpoint);
8409
8410 mDatabasesPerformingIdleMaintenance.AppendElement(
8411 PerformingIdleMaintenanceDatabaseInfo{aDatabaseInfo,
8412 idleConnectionRunnable});
8413
8414 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 { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(aDatabaseInfo.mEventTarget->Dispatch( idleConnectionRunnable.forget(), nsIEventTarget::DISPATCH_NORMAL))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8415); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(aDatabaseInfo.mEventTarget->Dispatch( idleConnectionRunnable.forget(), nsIEventTarget::DISPATCH_NORMAL))"
")"); do { *((volatile int*)__null) = 8415; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
8415 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 { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(aDatabaseInfo.mEventTarget->Dispatch( idleConnectionRunnable.forget(), nsIEventTarget::DISPATCH_NORMAL))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8415); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(aDatabaseInfo.mEventTarget->Dispatch( idleConnectionRunnable.forget(), nsIEventTarget::DISPATCH_NORMAL))"
")"); do { *((volatile int*)__null) = 8415; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
8416}
8417
8418void ConnectionPool::CloseDatabase(DatabaseInfo& aDatabaseInfo) const {
8419 AssertIsOnOwningThread();
8420 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"
, 8420); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "!aDatabaseInfo.TotalTransactionCount()"
")"); do { *((volatile int*)__null) = 8420; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8421 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"
, 8421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mEventTarget"
")"); do { *((volatile int*)__null) = 8421; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8422 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"
, 8422); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseInfo.mClosing"
")"); do { *((volatile int*)__null) = 8422; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8423
8424 aDatabaseInfo.mIdle = false;
8425 aDatabaseInfo.mNeedsCheckpoint = false;
8426 aDatabaseInfo.mClosing = true;
8427
8428 MOZ_ALWAYS_SUCCEEDS(aDatabaseInfo.Dispatch(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aDatabaseInfo.Dispatch( MakeAndAddRef<CloseConnectionRunnable
>(aDatabaseInfo)))), 1)))), 1))) { } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "NS_SUCCEEDED(aDatabaseInfo.Dispatch( MakeAndAddRef<CloseConnectionRunnable>(aDatabaseInfo)))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8429); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(aDatabaseInfo.Dispatch( MakeAndAddRef<CloseConnectionRunnable>(aDatabaseInfo)))"
")"); do { *((volatile int*)__null) = 8429; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
8429 MakeAndAddRef<CloseConnectionRunnable>(aDatabaseInfo)))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aDatabaseInfo.Dispatch( MakeAndAddRef<CloseConnectionRunnable
>(aDatabaseInfo)))), 1)))), 1))) { } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "NS_SUCCEEDED(aDatabaseInfo.Dispatch( MakeAndAddRef<CloseConnectionRunnable>(aDatabaseInfo)))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8429); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(aDatabaseInfo.Dispatch( MakeAndAddRef<CloseConnectionRunnable>(aDatabaseInfo)))"
")"); do { *((volatile int*)__null) = 8429; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
8430}
8431
8432bool ConnectionPool::CloseDatabaseWhenIdleInternal(
8433 const nsACString& aDatabaseId) {
8434 AssertIsOnOwningThread();
8435 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"
, 8435); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseId.IsEmpty()"
")"); do { *((volatile int*)__null) = 8435; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8436
8437 AUTO_PROFILER_LABEL("ConnectionPool::CloseDatabaseWhenIdleInternal", DOM)mozilla::AutoProfilerLabel raiiObject8437( "ConnectionPool::CloseDatabaseWhenIdleInternal"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8438
8439 if (DatabaseInfo* dbInfo = mDatabases.Get(aDatabaseId)) {
8440 if (mIdleDatabases.RemoveElement(dbInfo) ||
8441 mDatabasesPerformingIdleMaintenance.RemoveElement(dbInfo)) {
8442 CloseDatabase(*dbInfo);
8443 AdjustIdleTimer();
8444 } else {
8445 dbInfo->mCloseOnIdle.EnsureFlipped();
8446 }
8447
8448 return true;
8449 }
8450
8451 return false;
8452}
8453
8454ConnectionPool::ConnectionRunnable::ConnectionRunnable(
8455 DatabaseInfo& aDatabaseInfo)
8456 : Runnable("dom::indexedDB::ConnectionPool::ConnectionRunnable"),
8457 mDatabaseInfo(aDatabaseInfo),
8458 mOwningEventTarget(GetCurrentSerialEventTarget()) {
8459 AssertIsOnBackgroundThread();
8460 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"
, 8460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mConnectionPool"
")"); do { *((volatile int*)__null) = 8460; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8461 aDatabaseInfo.mConnectionPool->AssertIsOnOwningThread();
8462 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"
, 8462); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOwningEventTarget"
")"); do { *((volatile int*)__null) = 8462; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8463}
8464
8465NS_IMETHODIMPnsresult
8466ConnectionPool::IdleConnectionRunnable::Run() {
8467 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"
, 8467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseInfo.mIdle"
")"); do { *((volatile int*)__null) = 8467; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8468
8469 const nsCOMPtr<nsIEventTarget> owningThread = std::move(mOwningEventTarget);
8470
8471 if (owningThread) {
8472 mDatabaseInfo.AssertIsOnConnectionThread();
8473
8474 // The connection could be null if EnsureConnection() didn't run or was not
8475 // successful in TransactionDatabaseOperationBase::RunOnConnectionThread().
8476 if (mDatabaseInfo.mConnection) {
8477 mDatabaseInfo.mConnection->DoIdleProcessing(mNeedsCheckpoint,
8478 mInterrupted);
8479 }
8480
8481 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 { static_assert( mozilla::detail
::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(owningThread->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8481); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(owningThread->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { *((volatile int*)__null) = 8481; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
8482 return NS_OK;
8483 }
8484
8485 AssertIsOnBackgroundThread();
8486
8487 RefPtr<ConnectionPool> connectionPool = mDatabaseInfo.mConnectionPool;
8488 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"
, 8488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "connectionPool"
")"); do { *((volatile int*)__null) = 8488; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8489
8490 if (mDatabaseInfo.mClosing || mDatabaseInfo.TotalTransactionCount()) {
8491 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"
, 8492); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!connectionPool->mDatabasesPerformingIdleMaintenance.Contains( &mDatabaseInfo)"
")"); do { *((volatile int*)__null) = 8492; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
8492 &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"
, 8492); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!connectionPool->mDatabasesPerformingIdleMaintenance.Contains( &mDatabaseInfo)"
")"); do { *((volatile int*)__null) = 8492; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8493 } else {
8494 MOZ_ALWAYS_TRUE(do { if ((__builtin_expect(!!(connectionPool->mDatabasesPerformingIdleMaintenance
.RemoveElement( &mDatabaseInfo)), 1))) { } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement( &mDatabaseInfo)"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8496); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement( &mDatabaseInfo)"
")"); do { *((volatile int*)__null) = 8496; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
8495 connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement(do { if ((__builtin_expect(!!(connectionPool->mDatabasesPerformingIdleMaintenance
.RemoveElement( &mDatabaseInfo)), 1))) { } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement( &mDatabaseInfo)"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8496); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement( &mDatabaseInfo)"
")"); do { *((volatile int*)__null) = 8496; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
8496 &mDatabaseInfo))do { if ((__builtin_expect(!!(connectionPool->mDatabasesPerformingIdleMaintenance
.RemoveElement( &mDatabaseInfo)), 1))) { } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement( &mDatabaseInfo)"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8496); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement( &mDatabaseInfo)"
")"); do { *((volatile int*)__null) = 8496; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
8497
8498 connectionPool->NoteIdleDatabase(mDatabaseInfo);
8499 }
8500
8501 return NS_OK;
8502}
8503
8504NS_IMETHODIMPnsresult
8505ConnectionPool::CloseConnectionRunnable::Run() {
8506 AUTO_PROFILER_LABEL("ConnectionPool::CloseConnectionRunnable::Run", DOM)mozilla::AutoProfilerLabel raiiObject8506( "ConnectionPool::CloseConnectionRunnable::Run"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8507
8508 if (mOwningEventTarget) {
8509 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"
, 8509); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseInfo.mClosing"
")"); do { *((volatile int*)__null) = 8509; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8510
8511 const nsCOMPtr<nsIEventTarget> owningThread = std::move(mOwningEventTarget);
8512
8513 // The connection could be null if EnsureConnection() didn't run or was not
8514 // successful in TransactionDatabaseOperationBase::RunOnConnectionThread().
8515 if (mDatabaseInfo.mConnection) {
8516 mDatabaseInfo.AssertIsOnConnectionThread();
8517
8518 mDatabaseInfo.mConnection->Close();
8519
8520 IDB_DEBUG_LOG(("ConnectionPool closed connection 0x%p",
8521 mDatabaseInfo.mConnection.get()));
8522
8523 mDatabaseInfo.mConnection = nullptr;
8524
8525#ifdef DEBUG1
8526 mDatabaseInfo.mDEBUGConnectionEventTarget = nullptr;
8527#endif
8528 }
8529
8530 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 { static_assert( mozilla::detail
::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(owningThread->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8530); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(owningThread->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { *((volatile int*)__null) = 8530; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
8531 return NS_OK;
8532 }
8533
8534 RefPtr<ConnectionPool> connectionPool = mDatabaseInfo.mConnectionPool;
8535 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"
, 8535); AnnotateMozCrashReason("MOZ_ASSERT" "(" "connectionPool"
")"); do { *((volatile int*)__null) = 8535; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8536
8537 connectionPool->NoteClosedDatabase(mDatabaseInfo);
8538 return NS_OK;
8539}
8540
8541ConnectionPool::DatabaseInfo::DatabaseInfo(ConnectionPool* aConnectionPool,
8542 const nsACString& aDatabaseId)
8543 : mConnectionPool(aConnectionPool),
8544 mDatabaseId(aDatabaseId),
8545 mReadTransactionCount(0),
8546 mWriteTransactionCount(0),
8547 mNeedsCheckpoint(false),
8548 mIdle(false),
8549 mClosing(false)
8550#ifdef DEBUG1
8551 ,
8552 mDEBUGConnectionEventTarget(nullptr)
8553#endif
8554{
8555 AssertIsOnBackgroundThread();
8556 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"
, 8556); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnectionPool"
")"); do { *((volatile int*)__null) = 8556; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8557 aConnectionPool->AssertIsOnOwningThread();
8558 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"
, 8558); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseId.IsEmpty()"
")"); do { *((volatile int*)__null) = 8558; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8559
8560 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)
;
8561}
8562
8563ConnectionPool::DatabaseInfo::~DatabaseInfo() {
8564 AssertIsOnBackgroundThread();
8565 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"
, 8565); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mConnection"
")"); do { *((volatile int*)__null) = 8565; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8566 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"
, 8566); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mScheduledWriteTransactions.IsEmpty()"
")"); do { *((volatile int*)__null) = 8566; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8567 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"
, 8567); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mRunningWriteTransaction"
")"); do { *((volatile int*)__null) = 8567; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8568 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"
, 8568); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!TotalTransactionCount()"
")"); do { *((volatile int*)__null) = 8568; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8569
8570 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)
;
8571}
8572
8573nsresult ConnectionPool::DatabaseInfo::Dispatch(
8574 already_AddRefed<nsIRunnable> aRunnable) {
8575 nsCOMPtr<nsIRunnable> runnable = aRunnable;
8576
8577#ifdef DEBUG1
8578 if (kDEBUGTransactionThreadSleepMS) {
8579 runnable = MakeRefPtr<TransactionRunnable>(std::move(runnable));
8580 }
8581#endif
8582
8583 return mEventTarget->Dispatch(runnable.forget(), NS_DISPATCH_NORMALnsIEventTarget::DISPATCH_NORMAL);
8584}
8585
8586ConnectionPool::DatabaseCompleteCallback::DatabaseCompleteCallback(
8587 const nsCString& aDatabaseId, nsIRunnable* aCallback)
8588 : mDatabaseId(aDatabaseId), mCallback(aCallback) {
8589 AssertIsOnBackgroundThread();
8590 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"
, 8590); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseId.IsEmpty()"
")"); do { *((volatile int*)__null) = 8590; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8591 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"
, 8591); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback" ")"
); do { *((volatile int*)__null) = 8591; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8592
8593 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)
;
8594}
8595
8596ConnectionPool::DatabaseCompleteCallback::~DatabaseCompleteCallback() {
8597 AssertIsOnBackgroundThread();
8598
8599 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)
;
8600}
8601
8602ConnectionPool::FinishCallbackWrapper::FinishCallbackWrapper(
8603 ConnectionPool* aConnectionPool, uint64_t aTransactionId,
8604 FinishCallback* aCallback)
8605 : Runnable("dom::indexedDB::ConnectionPool::FinishCallbackWrapper"),
8606 mConnectionPool(aConnectionPool),
8607 mCallback(aCallback),
8608 mOwningEventTarget(GetCurrentSerialEventTarget()),
8609 mTransactionId(aTransactionId),
8610 mHasRunOnce(false) {
8611 AssertIsOnBackgroundThread();
8612 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"
, 8612); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnectionPool"
")"); do { *((volatile int*)__null) = 8612; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8613 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"
, 8613); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback" ")"
); do { *((volatile int*)__null) = 8613; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8614 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"
, 8614); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOwningEventTarget"
")"); do { *((volatile int*)__null) = 8614; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8615}
8616
8617ConnectionPool::FinishCallbackWrapper::~FinishCallbackWrapper() {
8618 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"
, 8618); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mConnectionPool"
")"); do { *((volatile int*)__null) = 8618; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8619 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"
, 8619); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCallback"
")"); do { *((volatile int*)__null) = 8619; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8620}
8621
8622nsresult ConnectionPool::FinishCallbackWrapper::Run() {
8623 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"
, 8623); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnectionPool"
")"); do { *((volatile int*)__null) = 8623; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8624 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"
, 8624); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCallback" ")"
); do { *((volatile int*)__null) = 8624; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8625 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"
, 8625); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOwningEventTarget"
")"); do { *((volatile int*)__null) = 8625; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8626
8627 AUTO_PROFILER_LABEL("ConnectionPool::FinishCallbackWrapper::Run", DOM)mozilla::AutoProfilerLabel raiiObject8627( "ConnectionPool::FinishCallbackWrapper::Run"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
8628
8629 if (!mHasRunOnce) {
8630 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"
, 8630); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 8630; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8631
8632 mHasRunOnce = true;
8633
8634 Unused << mCallback->Run();
8635
8636 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 { static_assert( mozilla::detail
::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8636); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { *((volatile int*)__null) = 8636; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
8637
8638 return NS_OK;
8639 }
8640
8641 mConnectionPool->AssertIsOnOwningThread();
8642 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"
, 8642); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mHasRunOnce"
")"); do { *((volatile int*)__null) = 8642; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8643
8644 RefPtr<ConnectionPool> connectionPool = std::move(mConnectionPool);
8645 RefPtr<FinishCallback> callback = std::move(mCallback);
8646
8647 callback->TransactionFinishedBeforeUnblock();
8648
8649 connectionPool->NoteFinishedTransaction(mTransactionId);
8650
8651 callback->TransactionFinishedAfterUnblock();
8652
8653 return NS_OK;
8654}
8655
8656uint32_t ConnectionPool::sSerialNumber = 0u;
8657
8658#ifdef DEBUG1
8659
8660ConnectionPool::TransactionRunnable::TransactionRunnable(
8661 nsCOMPtr<nsIRunnable> aRunnable)
8662 : Runnable("dom::indexedDB::ConnectionPool::TransactionRunnable"),
8663 mRunnable(std::move(aRunnable)) {
8664 AssertIsOnBackgroundThread();
8665 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"
, 8665); AnnotateMozCrashReason("MOZ_ASSERT" "(" "kDEBUGTransactionThreadSleepMS"
")"); do { *((volatile int*)__null) = 8665; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8666}
8667
8668nsresult ConnectionPool::TransactionRunnable::Run() {
8669 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"
, 8669); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 8669; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8670
8671 QM_TRY(MOZ_TO_RESULT(mRunnable->Run())){auto tryResult967 = (ToResult(mRunnable->Run())); static_assert
(std::is_empty_v<typename decltype(tryResult967)::ok_type>
); if ((__builtin_expect(!!(tryResult967.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(mRunnable->Run())", tryResult967
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8671, mozilla::dom::quota::Severity::Error); return tryResult967
.propagateErr(); }}
;
8672
8673 MOZ_ALWAYS_TRUE(PR_Sleep(PR_MillisecondsToInterval(do { if ((__builtin_expect(!!(PR_Sleep(PR_MillisecondsToInterval
( kDEBUGTransactionThreadSleepMS)) == PR_SUCCESS), 1))) { } else
{ do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "PR_Sleep(PR_MillisecondsToInterval( kDEBUGTransactionThreadSleepMS)) == PR_SUCCESS"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8674); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "PR_Sleep(PR_MillisecondsToInterval( kDEBUGTransactionThreadSleepMS)) == PR_SUCCESS"
")"); do { *((volatile int*)__null) = 8674; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
8674 kDEBUGTransactionThreadSleepMS)) == PR_SUCCESS)do { if ((__builtin_expect(!!(PR_Sleep(PR_MillisecondsToInterval
( kDEBUGTransactionThreadSleepMS)) == PR_SUCCESS), 1))) { } else
{ do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "PR_Sleep(PR_MillisecondsToInterval( kDEBUGTransactionThreadSleepMS)) == PR_SUCCESS"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8674); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "PR_Sleep(PR_MillisecondsToInterval( kDEBUGTransactionThreadSleepMS)) == PR_SUCCESS"
")"); do { *((volatile int*)__null) = 8674; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
8675
8676 return NS_OK;
8677}
8678
8679#endif
8680
8681ConnectionPool::IdleResource::IdleResource(const TimeStamp& aIdleTime)
8682 : mIdleTime(aIdleTime) {
8683 AssertIsOnBackgroundThread();
8684 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"
, 8684); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aIdleTime.IsNull()"
")"); do { *((volatile int*)__null) = 8684; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8685
8686 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)
;
8687}
8688
8689ConnectionPool::IdleResource::~IdleResource() {
8690 AssertIsOnBackgroundThread();
8691
8692 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)
;
8693}
8694
8695ConnectionPool::IdleDatabaseInfo::IdleDatabaseInfo(DatabaseInfo& aDatabaseInfo)
8696 : IdleResource(
8697 TimeStamp::NowLoRes() +
8698 (aDatabaseInfo.mIdle
8699 ? TimeDuration::FromMilliseconds(kConnectionIdleMaintenanceMS)
8700 : TimeDuration::FromMilliseconds(kConnectionIdleCloseMS))),
8701 mDatabaseInfo(WrapNotNullUnchecked(&aDatabaseInfo)) {
8702 AssertIsOnBackgroundThread();
8703
8704 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)
;
8705}
8706
8707ConnectionPool::IdleDatabaseInfo::~IdleDatabaseInfo() {
8708 AssertIsOnBackgroundThread();
8709
8710 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)
;
8711}
8712
8713ConnectionPool::PerformingIdleMaintenanceDatabaseInfo::
8714 PerformingIdleMaintenanceDatabaseInfo(
8715 DatabaseInfo& aDatabaseInfo,
8716 RefPtr<IdleConnectionRunnable> aIdleConnectionRunnable)
8717 : mDatabaseInfo(WrapNotNullUnchecked(&aDatabaseInfo)),
8718 mIdleConnectionRunnable(std::move(aIdleConnectionRunnable)) {
8719 AssertIsOnBackgroundThread();
8720 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"
, 8720); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleConnectionRunnable"
")"); do { *((volatile int*)__null) = 8720; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8721
8722 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)
;
8723}
8724
8725ConnectionPool::PerformingIdleMaintenanceDatabaseInfo::
8726 ~PerformingIdleMaintenanceDatabaseInfo() {
8727 AssertIsOnBackgroundThread();
8728
8729 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)
;
8730}
8731
8732ConnectionPool::TransactionInfo::TransactionInfo(
8733 DatabaseInfo& aDatabaseInfo, const nsID& aBackgroundChildLoggingId,
8734 const nsACString& aDatabaseId, uint64_t aTransactionId,
8735 int64_t aLoggingSerialNumber, const nsTArray<nsString>& aObjectStoreNames,
8736 bool aIsWriteTransaction, TransactionDatabaseOperationBase* aTransactionOp)
8737 : mDatabaseInfo(aDatabaseInfo),
8738 mBackgroundChildLoggingId(aBackgroundChildLoggingId),
8739 mDatabaseId(aDatabaseId),
8740 mTransactionId(aTransactionId),
8741 mLoggingSerialNumber(aLoggingSerialNumber),
8742 mObjectStoreNames(aObjectStoreNames.Clone()),
8743 mIsWriteTransaction(aIsWriteTransaction),
8744 mRunning(false) {
8745 AssertIsOnBackgroundThread();
8746 aDatabaseInfo.mConnectionPool->AssertIsOnOwningThread();
8747
8748 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)
;
8749
8750 if (aTransactionOp) {
8751 mQueuedRunnables.AppendElement(aTransactionOp);
8752 }
8753}
8754
8755ConnectionPool::TransactionInfo::~TransactionInfo() {
8756 AssertIsOnBackgroundThread();
8757 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"
, 8757); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mBlockedOn.Count()"
")"); do { *((volatile int*)__null) = 8757; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8758 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"
, 8758); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mQueuedRunnables.IsEmpty()"
")"); do { *((volatile int*)__null) = 8758; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8759 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"
, 8759); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mRunning" ")"
); do { *((volatile int*)__null) = 8759; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8760 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"
, 8760); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFinished" ")"
); do { *((volatile int*)__null) = 8760; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8761
8762 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)
;
8763}
8764
8765void ConnectionPool::TransactionInfo::AddBlockingTransaction(
8766 TransactionInfo& aTransactionInfo) {
8767 AssertIsOnBackgroundThread();
8768
8769 // XXX Does it really make sense to have both mBlocking and mBlockingOrdered,
8770 // just to reduce the algorithmic complexity of this Contains check? This was
8771 // mentioned in the context of Bug 1290853, but no real justification was
8772 // given. There was the suggestion of encapsulating this in an
8773 // insertion-ordered hashtable implementation, which seems like a good idea.
8774 // If we had that, this would be the appropriate data structure to use here.
8775 if (mBlocking.EnsureInserted(&aTransactionInfo)) {
8776 mBlockingOrdered.AppendElement(WrapNotNullUnchecked(&aTransactionInfo));
8777 }
8778}
8779
8780void ConnectionPool::TransactionInfo::RemoveBlockingTransactions() {
8781 AssertIsOnBackgroundThread();
8782
8783 for (const auto blockedInfo : mBlockingOrdered) {
8784 blockedInfo->MaybeUnblock(*this);
8785 }
8786
8787 mBlocking.Clear();
8788 mBlockingOrdered.Clear();
8789}
8790
8791void ConnectionPool::TransactionInfo::MaybeUnblock(
8792 TransactionInfo& aTransactionInfo) {
8793 AssertIsOnBackgroundThread();
8794 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"
, 8794); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mBlockedOn.Contains(&aTransactionInfo)"
")"); do { *((volatile int*)__null) = 8794; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8795
8796 mBlockedOn.Remove(&aTransactionInfo);
8797 if (mBlockedOn.IsEmpty()) {
8798 ConnectionPool* connectionPool = mDatabaseInfo.mConnectionPool;
8799 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"
, 8799); AnnotateMozCrashReason("MOZ_ASSERT" "(" "connectionPool"
")"); do { *((volatile int*)__null) = 8799; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8800 connectionPool->AssertIsOnOwningThread();
8801
8802 Unused << connectionPool->ScheduleTransaction(
8803 *this,
8804 /* aFromQueuedTransactions */ false);
8805 }
8806}
8807
8808#if defined(DEBUG1) || defined(NS_BUILD_REFCNT_LOGGING1)
8809ConnectionPool::TransactionInfoPair::TransactionInfoPair() {
8810 AssertIsOnBackgroundThread();
8811
8812 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)
;
8813}
8814
8815ConnectionPool::TransactionInfoPair::~TransactionInfoPair() {
8816 AssertIsOnBackgroundThread();
8817
8818 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)
;
8819}
8820#endif
8821
8822/*******************************************************************************
8823 * Metadata classes
8824 ******************************************************************************/
8825
8826bool FullObjectStoreMetadata::HasLiveIndexes() const {
8827 AssertIsOnBackgroundThread();
8828
8829 return std::any_of(mIndexes.Values().cbegin(), mIndexes.Values().cend(),
8830 [](const auto& entry) { return !entry->mDeleted; });
8831}
8832
8833SafeRefPtr<FullDatabaseMetadata> FullDatabaseMetadata::Duplicate() const {
8834 AssertIsOnBackgroundThread();
8835
8836 // FullDatabaseMetadata contains two hash tables of pointers that we need to
8837 // duplicate so we can't just use the copy constructor.
8838 auto newMetadata = MakeSafeRefPtr<FullDatabaseMetadata>(mCommonMetadata);
8839
8840 newMetadata->mDatabaseId = mDatabaseId;
8841 newMetadata->mFilePath = mFilePath;
8842 newMetadata->mNextObjectStoreId = mNextObjectStoreId;
8843 newMetadata->mNextIndexId = mNextIndexId;
8844
8845 for (const auto& objectStoreEntry : mObjectStores) {
8846 const auto& objectStoreValue = objectStoreEntry.GetData();
8847
8848 auto newOSMetadata = MakeSafeRefPtr<FullObjectStoreMetadata>(
8849 objectStoreValue->mCommonMetadata, [&objectStoreValue] {
8850 const auto&& srcLocked = objectStoreValue->mAutoIncrementIds.Lock();
8851 return *srcLocked;
8852 }());
8853
8854 for (const auto& indexEntry : objectStoreValue->mIndexes) {
8855 const auto& value = indexEntry.GetData();
8856
8857 auto newIndexMetadata = MakeSafeRefPtr<FullIndexMetadata>();
8858
8859 newIndexMetadata->mCommonMetadata = value->mCommonMetadata;
8860
8861 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"
, 8862)
8862 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"
, 8862)
) {
8863 return nullptr;
8864 }
8865 }
8866
8867 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"
, 8868); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreValue->mIndexes.Count() == newOSMetadata->mIndexes.Count()"
")"); do { *((volatile int*)__null) = 8868; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
8868 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"
, 8868); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreValue->mIndexes.Count() == newOSMetadata->mIndexes.Count()"
")"); do { *((volatile int*)__null) = 8868; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8869
8870 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"
, 8871)
8871 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"
, 8871)
) {
8872 return nullptr;
8873 }
8874 }
8875
8876 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"
, 8876); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mObjectStores.Count() == newMetadata->mObjectStores.Count()"
")"); do { *((volatile int*)__null) = 8876; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8877
8878 return newMetadata;
8879}
8880
8881DatabaseLoggingInfo::~DatabaseLoggingInfo() {
8882 AssertIsOnBackgroundThread();
8883
8884 if (gLoggingInfoHashtable) {
8885 const nsID& backgroundChildLoggingId =
8886 mLoggingInfo.backgroundChildLoggingId();
8887
8888 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"
, 8888); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gLoggingInfoHashtable->Get(backgroundChildLoggingId) == this"
")"); do { *((volatile int*)__null) = 8888; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8889
8890 gLoggingInfoHashtable->Remove(backgroundChildLoggingId);
8891 }
8892}
8893
8894/*******************************************************************************
8895 * Factory
8896 ******************************************************************************/
8897
8898Factory::Factory(RefPtr<DatabaseLoggingInfo> aLoggingInfo,
8899 const nsACString& aSystemLocale)
8900 : mSystemLocale(aSystemLocale),
8901 mLoggingInfo(std::move(aLoggingInfo))
8902#ifdef DEBUG1
8903 ,
8904 mActorDestroyed(false)
8905#endif
8906{
8907 AssertIsOnBackgroundThread();
8908 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"
, 8908); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!QuotaClient::IsShuttingDownOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 8908; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8909}
8910
8911Factory::~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"
, 8911); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActorDestroyed"
")"); do { *((volatile int*)__null) = 8911; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
; }
8912
8913// static
8914SafeRefPtr<Factory> Factory::Create(const LoggingInfo& aLoggingInfo,
8915 const nsACString& aSystemLocale) {
8916 AssertIsOnBackgroundThread();
8917 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"
, 8917); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!QuotaClient::IsShuttingDownOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 8917; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8918
8919 // Balanced in ActoryDestroy().
8920 IncreaseBusyCount();
8921
8922 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"
, 8922); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gLoggingInfoHashtable"
")"); do { *((volatile int*)__null) = 8922; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8923 RefPtr<DatabaseLoggingInfo> loggingInfo =
8924 gLoggingInfoHashtable->WithEntryHandle(
8925 aLoggingInfo.backgroundChildLoggingId(), [&](auto&& entry) {
8926 if (entry) {
8927 [[maybe_unused]] const auto& loggingInfo = entry.Data();
8928 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"
, 8929); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLoggingInfo.backgroundChildLoggingId() == loggingInfo->Id()"
")"); do { *((volatile int*)__null) = 8929; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
8929 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"
, 8929); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLoggingInfo.backgroundChildLoggingId() == loggingInfo->Id()"
")"); do { *((volatile int*)__null) = 8929; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8930#if !FUZZING
8931 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"
, 8934); } } while (false)
8932 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"
, 8934); } } while (false)
8933 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"
, 8934); } } while (false)
8934 "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"
, 8934); } } while (false)
;
8935 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"
, 8939); } } while (false)
8936 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"
, 8939); } } while (false)
8937 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"
, 8939); } } while (false)
8938 .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"
, 8939); } } while (false)
8939 "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"
, 8939); } } while (false)
;
8940 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"
, 8943); } } while (false)
8941 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"
, 8943); } } while (false)
8942 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"
, 8943); } } while (false)
8943 "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"
, 8943); } } while (false)
;
8944#endif // !FUZZING
8945 } else {
8946 entry.Insert(new DatabaseLoggingInfo(aLoggingInfo));
8947 }
8948
8949 return do_AddRef(entry.Data());
8950 });
8951
8952 return MakeSafeRefPtr<Factory>(std::move(loggingInfo), aSystemLocale);
8953}
8954
8955void Factory::ActorDestroy(ActorDestroyReason aWhy) {
8956 AssertIsOnBackgroundThread();
8957 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"
, 8957); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed"
")"); do { *((volatile int*)__null) = 8957; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8958
8959#ifdef DEBUG1
8960 mActorDestroyed = true;
8961#endif
8962
8963 // Match the IncreaseBusyCount in Create().
8964 DecreaseBusyCount();
8965}
8966
8967mozilla::ipc::IPCResult Factory::RecvDeleteMe() {
8968 AssertIsOnBackgroundThread();
8969 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"
, 8969); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed"
")"); do { *((volatile int*)__null) = 8969; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8970
8971 QM_WARNONLY_TRY(OkIf(PBackgroundIDBFactoryParent::Send__delete__(this))){auto tryResult968 = (OkIf(PBackgroundIDBFactoryParent::Send__delete__
(this))); static_assert(std::is_empty_v<typename decltype(
tryResult968)::ok_type>); if ((__builtin_expect(!!(tryResult968
.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(PBackgroundIDBFactoryParent::Send__delete__(this))"
, tryResult968.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 8971, mozilla::dom::quota::Severity::Warning); }}
;
8972
8973 return IPC_OK()mozilla::ipc::IPCResult::Ok();
8974}
8975
8976PBackgroundIDBFactoryRequestParent*
8977Factory::AllocPBackgroundIDBFactoryRequestParent(
8978 const FactoryRequestParams& aParams) {
8979 AssertIsOnBackgroundThread();
8980 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"
, 8980); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != FactoryRequestParams::T__None"
")"); do { *((volatile int*)__null) = 8980; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
8981
8982 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"
, 8982)
) {
8983 return nullptr;
8984 }
8985
8986 const CommonFactoryRequestParams* commonParams;
8987
8988 switch (aParams.type()) {
8989 case FactoryRequestParams::TOpenDatabaseRequestParams: {
8990 const OpenDatabaseRequestParams& params =
8991 aParams.get_OpenDatabaseRequestParams();
8992 commonParams = &params.commonParams();
8993 break;
8994 }
8995
8996 case FactoryRequestParams::TDeleteDatabaseRequestParams: {
8997 const DeleteDatabaseRequestParams& params =
8998 aParams.get_DeleteDatabaseRequestParams();
8999 commonParams = &params.commonParams();
9000 break;
9001 }
9002
9003 default:
9004 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"
, 9004); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 9004; __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
9005 }
9006
9007 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"
, 9007); AnnotateMozCrashReason("MOZ_ASSERT" "(" "commonParams"
")"); do { *((volatile int*)__null) = 9007; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9008
9009 const DatabaseMetadata& metadata = commonParams->metadata();
9010
9011 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"
, 9011); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!IsValidPersistenceType(metadata.persistenceType())" ")"); do
{ *((volatile int*)__null) = 9011; __attribute__((nomerge)) ::
abort(); } while (false); } } while (false); } return aCond; }
((!IsValidPersistenceType(metadata.persistenceType())))
) {
9012 return nullptr;
9013 }
9014
9015 const PrincipalInfo& principalInfo = commonParams->principalInfo();
9016
9017 if (NS_AUUF_OR_WARN_IF(!QuotaManager::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" " (" "!QuotaManager::IsPrincipalInfoValid(principalInfo)"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9017); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!QuotaManager::IsPrincipalInfoValid(principalInfo)" ")"); do
{ *((volatile int*)__null) = 9017; __attribute__((nomerge)) ::
abort(); } while (false); } } while (false); } return aCond; }
((!QuotaManager::IsPrincipalInfoValid(principalInfo)))
) {
9018 IPC_FAIL(this, "Invalid principal!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Invalid principal!"
))
;
9019 return nullptr;
9020 }
9021
9022 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"
, 9023); AnnotateMozCrashReason("MOZ_ASSERT" "(" "principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || principalInfo.type() == PrincipalInfo::TContentPrincipalInfo"
")"); do { *((volatile int*)__null) = 9023; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9023 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"
, 9023); AnnotateMozCrashReason("MOZ_ASSERT" "(" "principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || principalInfo.type() == PrincipalInfo::TContentPrincipalInfo"
")"); do { *((volatile int*)__null) = 9023; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9024
9025 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"
, 9027); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT"
")"); do { *((volatile int*)__null) = 9027; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo
&& metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT
))
9026 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"
, 9027); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT"
")"); do { *((volatile int*)__null) = 9027; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo
&& metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT
))
9027 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"
, 9027); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT"
")"); do { *((volatile int*)__null) = 9027; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo
&& metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT
))
) {
9028 return nullptr;
9029 }
9030
9031 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"
, 9035); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"principalInfo.type() == PrincipalInfo::TContentPrincipalInfo && QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo().originNoSuffix()) && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT"
")"); do { *((volatile int*)__null) = 9035; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((principalInfo.type() == PrincipalInfo::TContentPrincipalInfo
&& QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo
().originNoSuffix()) && metadata.persistenceType() !=
PERSISTENCE_TYPE_PERSISTENT))
9032 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"
, 9035); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"principalInfo.type() == PrincipalInfo::TContentPrincipalInfo && QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo().originNoSuffix()) && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT"
")"); do { *((volatile int*)__null) = 9035; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((principalInfo.type() == PrincipalInfo::TContentPrincipalInfo
&& QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo
().originNoSuffix()) && metadata.persistenceType() !=
PERSISTENCE_TYPE_PERSISTENT))
9033 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"
, 9035); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"principalInfo.type() == PrincipalInfo::TContentPrincipalInfo && QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo().originNoSuffix()) && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT"
")"); do { *((volatile int*)__null) = 9035; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((principalInfo.type() == PrincipalInfo::TContentPrincipalInfo
&& QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo
().originNoSuffix()) && metadata.persistenceType() !=
PERSISTENCE_TYPE_PERSISTENT))
9034 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"
, 9035); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"principalInfo.type() == PrincipalInfo::TContentPrincipalInfo && QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo().originNoSuffix()) && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT"
")"); do { *((volatile int*)__null) = 9035; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((principalInfo.type() == PrincipalInfo::TContentPrincipalInfo
&& QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo
().originNoSuffix()) && metadata.persistenceType() !=
PERSISTENCE_TYPE_PERSISTENT))
9035 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"
, 9035); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"principalInfo.type() == PrincipalInfo::TContentPrincipalInfo && QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo().originNoSuffix()) && metadata.persistenceType() != PERSISTENCE_TYPE_PERSISTENT"
")"); do { *((volatile int*)__null) = 9035; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((principalInfo.type() == PrincipalInfo::TContentPrincipalInfo
&& QuotaManager::IsOriginInternal( principalInfo.get_ContentPrincipalInfo
().originNoSuffix()) && metadata.persistenceType() !=
PERSISTENCE_TYPE_PERSISTENT))
) {
9036 return nullptr;
9037 }
9038
9039 Maybe<ContentParentId> contentParentId = GetContentParentId();
9040
9041 auto actor = [&]() -> RefPtr<FactoryRequestOp> {
9042 if (aParams.type() == FactoryRequestParams::TOpenDatabaseRequestParams) {
9043 return MakeRefPtr<OpenDatabaseOp>(SafeRefPtrFromThis(), contentParentId,
9044 *commonParams);
9045 } else {
9046 return MakeRefPtr<DeleteDatabaseOp>(SafeRefPtrFromThis(), contentParentId,
9047 *commonParams);
9048 }
9049 }();
9050
9051 gFactoryOps->AppendElement(actor);
9052
9053 // Balanced in CleanupMetadata() which is/must always called by SendResults().
9054 IncreaseBusyCount();
9055
9056 // Transfer ownership to IPDL.
9057 return actor.forget().take();
9058}
9059
9060mozilla::ipc::IPCResult Factory::RecvPBackgroundIDBFactoryRequestConstructor(
9061 PBackgroundIDBFactoryRequestParent* aActor,
9062 const FactoryRequestParams& aParams) {
9063 AssertIsOnBackgroundThread();
9064 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"
, 9064); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { *((volatile int*)__null) = 9064; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9065 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"
, 9065); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != FactoryRequestParams::T__None"
")"); do { *((volatile int*)__null) = 9065; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9066 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"
, 9066); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!QuotaClient::IsShuttingDownOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 9066; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9067
9068 auto* op = static_cast<FactoryRequestOp*>(aActor);
9069
9070 MOZ_ALWAYS_SUCCEEDS(NS_DispatchToCurrentThread(op))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(NS_DispatchToCurrentThread(op))), 1)))), 1))) { } else { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "NS_SUCCEEDED(NS_DispatchToCurrentThread(op))" ")"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9070); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(NS_DispatchToCurrentThread(op))" ")"); do
{ *((volatile int*)__null) = 9070; __attribute__((nomerge)) ::
abort(); } while (false); } } while (false); } } while (false
)
;
9071 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9072}
9073
9074bool Factory::DeallocPBackgroundIDBFactoryRequestParent(
9075 PBackgroundIDBFactoryRequestParent* aActor) {
9076 AssertIsOnBackgroundThread();
9077 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"
, 9077); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { *((volatile int*)__null) = 9077; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9078
9079 // Transfer ownership back from IPDL.
9080 RefPtr<FactoryRequestOp> op =
9081 dont_AddRef(static_cast<FactoryRequestOp*>(aActor));
9082 return true;
9083}
9084
9085mozilla::ipc::IPCResult Factory::RecvGetDatabases(
9086 const PersistenceType& aPersistenceType,
9087 const PrincipalInfo& aPrincipalInfo, GetDatabasesResolver&& aResolve) {
9088 AssertIsOnBackgroundThread();
9089
9090 auto ResolveGetDatabasesAndReturn = [&aResolve](const nsresult rv) {
9091 aResolve(rv);
9092 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9093 };
9094
9095 QM_TRY(MOZ_TO_RESULT(!QuotaClient::IsShuttingDownOnBackgroundThread()),{auto tryResult969 = (ToResult(!QuotaClient::IsShuttingDownOnBackgroundThread
())); 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(!QuotaClient::IsShuttingDownOnBackgroundThread())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9096, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(!QuotaClient::IsShuttingDownOnBackgroundThread())"
, tryTempError, ResolveGetDatabasesAndReturn); }}
9096 ResolveGetDatabasesAndReturn){auto tryResult969 = (ToResult(!QuotaClient::IsShuttingDownOnBackgroundThread
())); 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(!QuotaClient::IsShuttingDownOnBackgroundThread())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9096, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(!QuotaClient::IsShuttingDownOnBackgroundThread())"
, tryTempError, ResolveGetDatabasesAndReturn); }}
;
9097
9098 QM_TRY(MOZ_TO_RESULT(IsValidPersistenceType(aPersistenceType)),{auto tryResult970 = (ToResult(IsValidPersistenceType(aPersistenceType
))); 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(IsValidPersistenceType(aPersistenceType))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9099, 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))); }}
9099 QM_IPC_FAIL(this)){auto tryResult970 = (ToResult(IsValidPersistenceType(aPersistenceType
))); 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(IsValidPersistenceType(aPersistenceType))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9099, 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))); }}
;
9100
9101 QM_TRY(MOZ_TO_RESULT(QuotaManager::IsPrincipalInfoValid(aPrincipalInfo)),{auto tryResult971 = (ToResult(QuotaManager::IsPrincipalInfoValid
(aPrincipalInfo))); 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(QuotaManager::IsPrincipalInfoValid(aPrincipalInfo))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9102, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(QuotaManager::IsPrincipalInfoValid(aPrincipalInfo))"
, tryTempError, mozilla::dom::quota::detail::IpcFailCustomRetVal
(mozilla::WrapNotNull(this))); }}
9102 QM_IPC_FAIL(this)){auto tryResult971 = (ToResult(QuotaManager::IsPrincipalInfoValid
(aPrincipalInfo))); 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(QuotaManager::IsPrincipalInfoValid(aPrincipalInfo))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9102, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(QuotaManager::IsPrincipalInfoValid(aPrincipalInfo))"
, tryTempError, mozilla::dom::quota::detail::IpcFailCustomRetVal
(mozilla::WrapNotNull(this))); }}
;
9103
9104 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"
, 9105); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo"
")"); do { *((volatile int*)__null) = 9105; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9105 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"
, 9105); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo"
")"); do { *((volatile int*)__null) = 9105; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9106
9107 PersistenceType persistenceType =
9108 IDBFactory::GetPersistenceType(aPrincipalInfo);
9109
9110 QM_TRY(MOZ_TO_RESULT(aPersistenceType == persistenceType), QM_IPC_FAIL(this)){auto tryResult972 = (ToResult(aPersistenceType == persistenceType
)); static_assert(std::is_empty_v<typename decltype(tryResult972
)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr(
)), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult972
.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(aPersistenceType == persistenceType)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9110, 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))); }}
;
9111
9112 Maybe<ContentParentId> contentParentId = GetContentParentId();
9113
9114 auto op = MakeRefPtr<GetDatabasesOp>(SafeRefPtrFromThis(), contentParentId,
9115 aPersistenceType, aPrincipalInfo,
9116 std::move(aResolve));
9117
9118 gFactoryOps->AppendElement(op);
9119
9120 // Balanced in CleanupMetadata() which is/must always called by SendResults().
9121 IncreaseBusyCount();
9122
9123 MOZ_ALWAYS_SUCCEEDS(NS_DispatchToCurrentThread(op))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(NS_DispatchToCurrentThread(op))), 1)))), 1))) { } else { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "NS_SUCCEEDED(NS_DispatchToCurrentThread(op))" ")"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9123); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(NS_DispatchToCurrentThread(op))" ")"); do
{ *((volatile int*)__null) = 9123; __attribute__((nomerge)) ::
abort(); } while (false); } } while (false); } } while (false
)
;
9124
9125 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9126}
9127
9128Maybe<ContentParentId> Factory::GetContentParentId() const {
9129 uint64_t childID = BackgroundParent::GetChildID(Manager());
9130 if (childID) {
9131 // If childID is not zero we are dealing with an other-process actor. We
9132 // want to initialize OpenDatabaseOp/DeleteDatabaseOp here with the ID
9133 // (and later also Database) in that case, so Database::IsOwnedByProcess
9134 // can find Databases belonging to a particular content process when
9135 // QuotaClient::AbortOperationsForProcess is called which is currently used
9136 // to abort operations for content processes only.
9137 return Some(ContentParentId(childID));
9138 }
9139
9140 return Nothing();
9141}
9142
9143/*******************************************************************************
9144 * WaitForTransactionsHelper
9145 ******************************************************************************/
9146
9147void WaitForTransactionsHelper::WaitForTransactions() {
9148 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"
, 9148); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial"
")"); do { *((volatile int*)__null) = 9148; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9149
9150 Unused << this->Run();
9151}
9152
9153void WaitForTransactionsHelper::MaybeWaitForTransactions() {
9154 AssertIsOnBackgroundThread();
9155 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"
, 9155); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial"
")"); do { *((volatile int*)__null) = 9155; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9156
9157 RefPtr<ConnectionPool> connectionPool = gConnectionPool.get();
9158 if (connectionPool) {
9159 mState = State::WaitingForTransactions;
9160
9161 connectionPool->WaitForDatabaseToComplete(mDatabaseId, this);
9162
9163 return;
9164 }
9165
9166 CallCallback();
9167}
9168
9169void WaitForTransactionsHelper::CallCallback() {
9170 AssertIsOnBackgroundThread();
9171 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"
, 9172); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial || mState == State::WaitingForTransactions"
")"); do { *((volatile int*)__null) = 9172; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9172 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"
, 9172); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial || mState == State::WaitingForTransactions"
")"); do { *((volatile int*)__null) = 9172; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9173
9174 const nsCOMPtr<nsIRunnable> callback = std::move(mCallback);
9175
9176 callback->Run();
9177
9178 mState = State::Complete;
9179}
9180
9181NS_IMETHODIMPnsresult
9182WaitForTransactionsHelper::Run() {
9183 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"
, 9183); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState != State::Complete"
")"); do { *((volatile int*)__null) = 9183; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9184 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"
, 9184); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCallback" ")"
); do { *((volatile int*)__null) = 9184; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9185
9186 switch (mState) {
9187 case State::Initial:
9188 MaybeWaitForTransactions();
9189 break;
9190
9191 case State::WaitingForTransactions:
9192 CallCallback();
9193 break;
9194
9195 default:
9196 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"
, 9196); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 9196; __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
9197 }
9198
9199 return NS_OK;
9200}
9201
9202/*******************************************************************************
9203 * Database
9204 ******************************************************************************/
9205
9206Database::Database(SafeRefPtr<Factory> aFactory,
9207 const PrincipalInfo& aPrincipalInfo,
9208 const Maybe<ContentParentId>& aOptionalContentParentId,
9209 const quota::OriginMetadata& aOriginMetadata,
9210 uint32_t aTelemetryId,
9211 SafeRefPtr<FullDatabaseMetadata> aMetadata,
9212 SafeRefPtr<DatabaseFileManager> aFileManager,
9213 RefPtr<DirectoryLock> aDirectoryLock,
9214 bool aInPrivateBrowsing,
9215 const Maybe<const CipherKey>& aMaybeKey)
9216 : mFactory(std::move(aFactory)),
9217 mMetadata(std::move(aMetadata)),
9218 mFileManager(std::move(aFileManager)),
9219 mDirectoryLock(std::move(aDirectoryLock)),
9220 mPrincipalInfo(aPrincipalInfo),
9221 mOptionalContentParentId(aOptionalContentParentId),
9222 mOriginMetadata(aOriginMetadata),
9223 mId(mMetadata->mDatabaseId),
9224 mFilePath(mMetadata->mFilePath),
9225 mKey(aMaybeKey),
9226 mTelemetryId(aTelemetryId),
9227 mPersistenceType(mMetadata->mCommonMetadata.persistenceType()),
9228 mInPrivateBrowsing(aInPrivateBrowsing),
9229 mBackgroundThread(GetCurrentSerialEventTarget())
9230#ifdef DEBUG1
9231 ,
9232 mAllBlobsUnmapped(false)
9233#endif
9234{
9235 AssertIsOnBackgroundThread();
9236 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"
, 9236); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFactory" ")"
); do { *((volatile int*)__null) = 9236; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9237 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"
, 9237); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata" ")"
); do { *((volatile int*)__null) = 9237; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9238 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"
, 9238); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileManager"
")"); do { *((volatile int*)__null) = 9238; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9239
9240 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"
, 9240); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock"
")"); do { *((volatile int*)__null) = 9240; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9241 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"
, 9241); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock->Id() >= 0"
")"); do { *((volatile int*)__null) = 9241; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9242 mDirectoryLockId = mDirectoryLock->Id();
9243}
9244
9245template <typename T>
9246bool Database::InvalidateAll(const nsTBaseHashSet<nsPtrHashKey<T>>& aTable) {
9247 AssertIsOnBackgroundThread();
9248
9249 const uint32_t count = aTable.Count();
9250 if (!count) {
9251 return true;
9252 }
9253
9254 // XXX Does this really need to be fallible?
9255 QM_TRY_INSPECT(const auto& elementsToInvalidate,auto tryResult973 = (TransformIntoNewArray( aTable, [](const auto
& entry) { return entry; }, fallible)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult973.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"
, 9258, 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
= tryResult973.inspect();
9256 TransformIntoNewArray(auto tryResult973 = (TransformIntoNewArray( aTable, [](const auto
& entry) { return entry; }, fallible)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult973.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"
, 9258, 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
= tryResult973.inspect();
9257 aTable, [](const auto& entry) { return entry; }, fallible),auto tryResult973 = (TransformIntoNewArray( aTable, [](const auto
& entry) { return entry; }, fallible)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult973.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"
, 9258, 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
= tryResult973.inspect();
9258 false)auto tryResult973 = (TransformIntoNewArray( aTable, [](const auto
& entry) { return entry; }, fallible)); if ((__builtin_expect
(!!(tryResult973.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult973.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"
, 9258, 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
= tryResult973.inspect();
;
9259
9260 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9260, "UnknownErr")
;
9261
9262 for (const auto& elementToInvalidate : elementsToInvalidate) {
9263 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"
, 9263); AnnotateMozCrashReason("MOZ_ASSERT" "(" "elementToInvalidate"
")"); do { *((volatile int*)__null) = 9263; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9264
9265 elementToInvalidate->Invalidate();
9266 }
9267
9268 return true;
9269}
9270
9271void Database::Invalidate() {
9272 AssertIsOnBackgroundThread();
9273
9274 if (mInvalidated) {
9275 return;
9276 }
9277
9278 mInvalidated.Flip();
9279
9280 if (mActorWasAlive && !mActorDestroyed) {
9281 Unused << SendInvalidate();
9282 }
9283
9284 QM_WARNONLY_TRY(OkIf(InvalidateAll(mTransactions))){auto tryResult974 = (OkIf(InvalidateAll(mTransactions))); static_assert
(std::is_empty_v<typename decltype(tryResult974)::ok_type>
); if ((__builtin_expect(!!(tryResult974.isErr()), 0))) { mozilla
::dom::quota::HandleError("OkIf(InvalidateAll(mTransactions))"
, tryResult974.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9284, mozilla::dom::quota::Severity::Warning); }}
;
9285
9286 MOZ_ALWAYS_TRUE(CloseInternal())do { if ((__builtin_expect(!!(CloseInternal()), 1))) { } else
{ do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "CloseInternal()"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9286); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "CloseInternal()" ")"); do { *((volatile int*)__null) =
9286; __attribute__((nomerge)) ::abort(); } while (false); }
} while (false); } } while (false)
;
9287}
9288
9289nsresult Database::EnsureConnection() {
9290 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"
, 9290); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { *((volatile int*)__null) = 9290; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9291 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"
, 9291); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 9291; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9292
9293 AUTO_PROFILER_LABEL("Database::EnsureConnection", DOM)mozilla::AutoProfilerLabel raiiObject9293( "Database::EnsureConnection"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
9294
9295 if (!mConnection || !mConnection->HasStorageConnection()) {
9296 QM_TRY_UNWRAP(mConnection, gConnectionPool->GetOrCreateConnection(*this))auto tryResult975 = (gConnectionPool->GetOrCreateConnection
(*this)); if ((__builtin_expect(!!(tryResult975.isErr()), 0))
) { mozilla::dom::quota::HandleError("gConnectionPool->GetOrCreateConnection(*this)"
, tryResult975.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9296, mozilla::dom::quota::Severity::Error); return tryResult975
.propagateErr(); } mConnection = tryResult975.unwrap();
;
9297 }
9298
9299 AssertIsOnConnectionThread();
9300
9301 return NS_OK;
9302}
9303
9304bool Database::RegisterTransaction(TransactionBase& aTransaction) {
9305 AssertIsOnBackgroundThread();
9306 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"
, 9306); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Contains(&aTransaction)"
")"); do { *((volatile int*)__null) = 9306; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9307 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"
, 9307); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock"
")"); do { *((volatile int*)__null) = 9307; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9308 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"
, 9308); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInvalidated"
")"); do { *((volatile int*)__null) = 9308; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9309 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"
, 9309); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mClosed" ")"
); do { *((volatile int*)__null) = 9309; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9310
9311 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"
, 9311)
) {
9312 return false;
9313 }
9314
9315 return true;
9316}
9317
9318void Database::UnregisterTransaction(TransactionBase& aTransaction) {
9319 AssertIsOnBackgroundThread();
9320 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"
, 9320); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransactions.Contains(&aTransaction)"
")"); do { *((volatile int*)__null) = 9320; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9321
9322 mTransactions.Remove(&aTransaction);
9323
9324 MaybeCloseConnection();
9325}
9326
9327void Database::SetActorAlive() {
9328 AssertIsOnBackgroundThread();
9329 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"
, 9329); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed"
")"); do { *((volatile int*)__null) = 9329; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9330
9331 mActorWasAlive.Flip();
9332}
9333
9334void Database::MapBlob(const IPCBlob& aIPCBlob,
9335 SafeRefPtr<DatabaseFileInfo> aFileInfo) {
9336 AssertIsOnBackgroundThread();
9337
9338 const RemoteLazyStream& stream = aIPCBlob.inputStream();
9339 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"
, 9339); AnnotateMozCrashReason("MOZ_ASSERT" "(" "stream.type() == RemoteLazyStream::TRemoteLazyInputStream"
")"); do { *((volatile int*)__null) = 9339; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9340
9341 nsID id{};
9342 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(stream.get_RemoteLazyInputStream()->GetInternalStreamID(id
))), 1)))), 1))) { } else { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(stream.get_RemoteLazyInputStream()->GetInternalStreamID(id))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9343); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(stream.get_RemoteLazyInputStream()->GetInternalStreamID(id))"
")"); do { *((volatile int*)__null) = 9343; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
9343 stream.get_RemoteLazyInputStream()->GetInternalStreamID(id))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(stream.get_RemoteLazyInputStream()->GetInternalStreamID(id
))), 1)))), 1))) { } else { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(stream.get_RemoteLazyInputStream()->GetInternalStreamID(id))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9343); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(stream.get_RemoteLazyInputStream()->GetInternalStreamID(id))"
")"); do { *((volatile int*)__null) = 9343; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
9344
9345 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"
, 9345); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mMappedBlobs.Contains(id)"
")"); do { *((volatile int*)__null) = 9345; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9346 mMappedBlobs.InsertOrUpdate(id, std::move(aFileInfo));
9347
9348 RefPtr<UnmapBlobCallback> callback =
9349 new UnmapBlobCallback(SafeRefPtrFromThis());
9350
9351 auto storage = RemoteLazyInputStreamStorage::Get();
9352 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"
, 9352); AnnotateMozCrashReason("MOZ_ASSERT" "(" "storage.isOk()"
")"); do { *((volatile int*)__null) = 9352; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9353 storage.inspect()->StoreCallback(id, callback);
9354}
9355
9356void Database::Stringify(nsACString& aResult) const {
9357 AssertIsOnBackgroundThread();
9358
9359 constexpr auto kQuotaGenericDelimiterString = "|"_ns;
9360
9361 aResult.Append(
9362 "DirectoryLock:"_ns + IntToCString(!!mDirectoryLock) +
9363 kQuotaGenericDelimiterString +
9364 //
9365 "Transactions:"_ns + IntToCString(mTransactions.Count()) +
9366 kQuotaGenericDelimiterString +
9367 //
9368 "OtherProcessActor:"_ns +
9369 IntToCString(
9370 BackgroundParent::IsOtherProcessActor(GetBackgroundParent())) +
9371 kQuotaGenericDelimiterString +
9372 //
9373 "Origin:"_ns + AnonymizedOriginString(mOriginMetadata.mOrigin) +
9374 kQuotaGenericDelimiterString +
9375 //
9376 "PersistenceType:"_ns + PersistenceTypeToString(mPersistenceType) +
9377 kQuotaGenericDelimiterString +
9378 //
9379 "Closed:"_ns + IntToCString(static_cast<bool>(mClosed)) +
9380 kQuotaGenericDelimiterString +
9381 //
9382 "Invalidated:"_ns + IntToCString(static_cast<bool>(mInvalidated)) +
9383 kQuotaGenericDelimiterString +
9384 //
9385 "ActorWasAlive:"_ns + IntToCString(static_cast<bool>(mActorWasAlive)) +
9386 kQuotaGenericDelimiterString +
9387 //
9388 "ActorDestroyed:"_ns + IntToCString(static_cast<bool>(mActorDestroyed)));
9389}
9390
9391SafeRefPtr<DatabaseFileInfo> Database::GetBlob(const IPCBlob& aIPCBlob) {
9392 AssertIsOnBackgroundThread();
9393
9394 RefPtr<RemoteLazyInputStream> lazyStream;
9395 switch (aIPCBlob.inputStream().type()) {
9396 case RemoteLazyStream::TIPCStream: {
9397 const InputStreamParams& inputStreamParams =
9398 aIPCBlob.inputStream().get_IPCStream().stream();
9399 if (inputStreamParams.type() !=
9400 InputStreamParams::TRemoteLazyInputStreamParams) {
9401 return nullptr;
9402 }
9403 lazyStream = inputStreamParams.get_RemoteLazyInputStreamParams().stream();
9404 break;
9405 }
9406 case RemoteLazyStream::TRemoteLazyInputStream:
9407 lazyStream = aIPCBlob.inputStream().get_RemoteLazyInputStream();
9408 break;
9409 default:
9410 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"
, 9410); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"MOZ_ASSERT_UNREACHABLE: " "Unknown RemoteLazyStream type" ")"
); do { *((volatile int*)__null) = 9410; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9411 return nullptr;
9412 }
9413
9414 if (!lazyStream) {
9415 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"
, 9415); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"MOZ_ASSERT_UNREACHABLE: " "Unexpected null stream" ")"); do
{ *((volatile int*)__null) = 9415; __attribute__((nomerge)) ::
abort(); } while (false); } } while (false)
;
9416 return nullptr;
9417 }
9418
9419 nsID id{};
9420 nsresult rv = lazyStream->GetInternalStreamID(id);
9421 if (NS_FAILED(rv)((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) {
9422 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"
, 9423); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"MOZ_ASSERT_UNREACHABLE: " "Received RemoteLazyInputStream doesn't have an actor connection"
")"); do { *((volatile int*)__null) = 9423; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9423 "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"
, 9423); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"MOZ_ASSERT_UNREACHABLE: " "Received RemoteLazyInputStream doesn't have an actor connection"
")"); do { *((volatile int*)__null) = 9423; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9424 return nullptr;
9425 }
9426
9427 const auto fileInfo = mMappedBlobs.Lookup(id);
9428 return fileInfo ? fileInfo->clonePtr() : nullptr;
9429}
9430
9431void Database::UnmapBlob(const nsID& aID) {
9432 AssertIsOnBackgroundThread();
9433
9434 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"
, 9434); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMappedBlobs.Contains(aID)"
")"); do { *((volatile int*)__null) = 9434; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
9435 mMappedBlobs.Remove(aID);
9436}
9437
9438void Database::UnmapAllBlobs() {
9439 AssertIsOnBackgroundThread();
9440
9441#ifdef DEBUG1
9442 mAllBlobsUnmapped = true;
9443#endif
9444
9445 mMappedBlobs.Clear();
9446}
9447
9448bool Database::CloseInternal() {
9449 AssertIsOnBackgroundThread();
9450
9451 if (mClosed) {
9452 if (NS_WARN_IF(!IsInvalidated())NS_warn_if_impl(!IsInvalidated(), "!IsInvalidated()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9452)
) {
9453 // Signal misbehaving child for sending the close message twice.
9454 return false;
9455 }
9456
9457 // Ignore harmless race when we just invalidated the database.
9458 return true;
9459 }
9460
9461 mClosed.Flip();
9462
9463 if (gConnectionPool) {
9464 gConnectionPool->CloseDatabaseWhenIdle(Id());
9465 }
9466
9467 DatabaseActorInfo* info;
9468 MOZ_ALWAYS_TRUE(gLiveDatabaseHashtable->Get(Id(), &info))do { if ((__builtin_expect(!!(gLiveDatabaseHashtable->Get(
Id(), &info)), 1))) { } else { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(false)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "gLiveDatabaseHashtable->Get(Id(), &info)"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9468); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "gLiveDatabaseHashtable->Get(Id(), &info)" ")")
; do { *((volatile int*)__null) = 9468; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
9469
9470 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"
, 9470); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mLiveDatabases.Contains(this)"
")"); do { *((volatile int*)__null) = 9470; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9471
9472 if (info->mWaitingFactoryOp) {
9473 info->mWaitingFactoryOp->NoteDatabaseClosed(this);
9474 }
9475
9476 MaybeCloseConnection();
9477
9478 return true;
9479}
9480
9481void Database::MaybeCloseConnection() {
9482 AssertIsOnBackgroundThread();
9483
9484 if (!mTransactions.Count() && IsClosed() && mDirectoryLock) {
9485 nsCOMPtr<nsIRunnable> callback =
9486 NewRunnableMethod("dom::indexedDB::Database::ConnectionClosedCallback",
9487 this, &Database::ConnectionClosedCallback);
9488
9489 RefPtr<WaitForTransactionsHelper> helper =
9490 new WaitForTransactionsHelper(Id(), callback);
9491 helper->WaitForTransactions();
9492 }
9493}
9494
9495void Database::ConnectionClosedCallback() {
9496 AssertIsOnBackgroundThread();
9497 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"
, 9497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mClosed" ")"
); do { *((volatile int*)__null) = 9497; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9498 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"
, 9498); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Count()"
")"); do { *((volatile int*)__null) = 9498; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9499
9500 DropDirectoryLock(mDirectoryLock);
9501
9502 CleanupMetadata();
9503
9504 UnmapAllBlobs();
9505
9506 if (IsInvalidated() && IsActorAlive()) {
9507 // Step 3 and 4 of "5.2 Closing a Database":
9508 // 1. Wait for all transactions to complete.
9509 // 2. Fire a close event if forced flag is set, i.e., IsInvalidated() in our
9510 // implementation.
9511 Unused << SendCloseAfterInvalidationComplete();
9512 }
9513}
9514
9515void Database::CleanupMetadata() {
9516 AssertIsOnBackgroundThread();
9517
9518 DatabaseActorInfo* info;
9519 MOZ_ALWAYS_TRUE(gLiveDatabaseHashtable->Get(Id(), &info))do { if ((__builtin_expect(!!(gLiveDatabaseHashtable->Get(
Id(), &info)), 1))) { } else { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(false)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "gLiveDatabaseHashtable->Get(Id(), &info)"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9519); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "gLiveDatabaseHashtable->Get(Id(), &info)" ")")
; do { *((volatile int*)__null) = 9519; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
9520 MOZ_ALWAYS_TRUE(info->mLiveDatabases.RemoveElement(this))do { if ((__builtin_expect(!!(info->mLiveDatabases.RemoveElement
(this)), 1))) { } else { do { static_assert( mozilla::detail::
AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "info->mLiveDatabases.RemoveElement(this)"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9520); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "info->mLiveDatabases.RemoveElement(this)" ")"); do
{ *((volatile int*)__null) = 9520; __attribute__((nomerge)) ::
abort(); } while (false); } } while (false); } } while (false
)
;
9521
9522 QuotaManager::MaybeRecordQuotaClientShutdownStep(
9523 quota::Client::IDB, "Live database entry removed"_ns);
9524
9525 if (info->mLiveDatabases.IsEmpty()) {
9526 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"
, 9527); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp || !info->mWaitingFactoryOp->HasBlockedDatabases()"
")"); do { *((volatile int*)__null) = 9527; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9527 !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"
, 9527); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp || !info->mWaitingFactoryOp->HasBlockedDatabases()"
")"); do { *((volatile int*)__null) = 9527; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9528 gLiveDatabaseHashtable->Remove(Id());
9529
9530 QuotaManager::MaybeRecordQuotaClientShutdownStep(
9531 quota::Client::IDB, "gLiveDatabaseHashtable entry removed"_ns);
9532 }
9533
9534 // Match the IncreaseBusyCount in OpenDatabaseOp::EnsureDatabaseActor().
9535 DecreaseBusyCount();
9536}
9537
9538void Database::ActorDestroy(ActorDestroyReason aWhy) {
9539 AssertIsOnBackgroundThread();
9540
9541 mActorDestroyed.Flip();
9542
9543 if (!IsInvalidated()) {
9544 Invalidate();
9545 }
9546}
9547
9548PBackgroundIDBDatabaseFileParent*
9549Database::AllocPBackgroundIDBDatabaseFileParent(const IPCBlob& aIPCBlob) {
9550 AssertIsOnBackgroundThread();
9551
9552 SafeRefPtr<DatabaseFileInfo> fileInfo = GetBlob(aIPCBlob);
9553 RefPtr<DatabaseFile> actor;
9554
9555 if (fileInfo) {
9556 actor = new DatabaseFile(std::move(fileInfo));
9557 } else {
9558 // This is a blob we haven't seen before.
9559 fileInfo = mFileManager->CreateFileInfo();
9560 if (NS_WARN_IF(!fileInfo)NS_warn_if_impl(!fileInfo, "!fileInfo", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9560)
) {
9561 return nullptr;
9562 }
9563
9564 actor = new DatabaseFile(IPCBlobUtils::Deserialize(aIPCBlob),
9565 std::move(fileInfo));
9566 }
9567
9568 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"
, 9568); AnnotateMozCrashReason("MOZ_ASSERT" "(" "actor" ")")
; do { *((volatile int*)__null) = 9568; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9569
9570 return actor.forget().take();
9571}
9572
9573bool Database::DeallocPBackgroundIDBDatabaseFileParent(
9574 PBackgroundIDBDatabaseFileParent* aActor) {
9575 AssertIsOnBackgroundThread();
9576 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"
, 9576); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { *((volatile int*)__null) = 9576; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9577
9578 RefPtr<DatabaseFile> actor = dont_AddRef(static_cast<DatabaseFile*>(aActor));
9579 return true;
9580}
9581
9582already_AddRefed<PBackgroundIDBTransactionParent>
9583Database::AllocPBackgroundIDBTransactionParent(
9584 const nsTArray<nsString>& aObjectStoreNames, const Mode& aMode,
9585 const Durability& aDurability) {
9586 AssertIsOnBackgroundThread();
9587
9588 // Once a database is closed it must not try to open new transactions.
9589 if (NS_WARN_IF(mClosed)NS_warn_if_impl(mClosed, "mClosed", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9589)
) {
9590 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"
, 9590); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInvalidated"
")"); do { *((volatile int*)__null) = 9590; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9591 return nullptr;
9592 }
9593
9594 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"
, 9594); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"aObjectStoreNames.IsEmpty()" ")"); do { *((volatile int*)__null
) = 9594; __attribute__((nomerge)) ::abort(); } while (false)
; } } while (false); } return aCond; }((aObjectStoreNames.IsEmpty
()))
) {
9595 return nullptr;
9596 }
9597
9598 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"
, 9601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup"
")"); do { *((volatile int*)__null) = 9601; __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))
9599 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"
, 9601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup"
")"); do { *((volatile int*)__null) = 9601; __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))
9600 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"
, 9601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup"
")"); do { *((volatile int*)__null) = 9601; __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))
9601 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"
, 9601); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup"
")"); do { *((volatile int*)__null) = 9601; __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))
) {
9602 return nullptr;
9603 }
9604
9605 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"
, 9607); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed"
")"); do { *((volatile int*)__null) = 9607; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((aDurability != IDBTransaction::Durability::Default &&
aDurability != IDBTransaction::Durability::Strict &&
aDurability != IDBTransaction::Durability::Relaxed))
9606 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"
, 9607); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed"
")"); do { *((volatile int*)__null) = 9607; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((aDurability != IDBTransaction::Durability::Default &&
aDurability != IDBTransaction::Durability::Strict &&
aDurability != IDBTransaction::Durability::Relaxed))
9607 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"
, 9607); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed"
")"); do { *((volatile int*)__null) = 9607; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((aDurability != IDBTransaction::Durability::Default &&
aDurability != IDBTransaction::Durability::Strict &&
aDurability != IDBTransaction::Durability::Relaxed))
) {
9608 return nullptr;
9609 }
9610
9611 const ObjectStoreTable& objectStores = mMetadata->mObjectStores;
9612 const uint32_t nameCount = aObjectStoreNames.Length();
9613
9614 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"
, 9614); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"nameCount > objectStores.Count()" ")"); do { *((volatile
int*)__null) = 9614; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); } return aCond; }((nameCount >
objectStores.Count()))
) {
9615 return nullptr;
9616 }
9617
9618 QM_TRY_UNWRAP(auto tryResult976 = (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"
, 9628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9628; __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"
, 9638); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9638; __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"
, 9643); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9643; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult976.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult976.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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __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"
, 9650, 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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult976
.unwrap();
9619 auto objectStoreMetadatas,auto tryResult976 = (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"
, 9628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9628; __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"
, 9638); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9638; __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"
, 9643); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9643; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult976.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult976.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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __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"
, 9650, 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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult976
.unwrap();
9620 TransformIntoNewArrayAbortOnErr(auto tryResult976 = (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"
, 9628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9628; __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"
, 9638); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9638; __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"
, 9643); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9643; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult976.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult976.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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __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"
, 9650, 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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult976
.unwrap();
9621 aObjectStoreNames,auto tryResult976 = (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"
, 9628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9628; __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"
, 9638); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9638; __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"
, 9643); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9643; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult976.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult976.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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __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"
, 9650, 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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult976
.unwrap();
9622 [lastName = Maybe<const nsString&>{},auto tryResult976 = (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"
, 9628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9628; __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"
, 9638); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9638; __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"
, 9643); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9643; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult976.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult976.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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __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"
, 9650, 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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult976
.unwrap();
9623 &objectStores](const nsString& name) mutableauto tryResult976 = (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"
, 9628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9628; __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"
, 9638); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9638; __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"
, 9643); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9643; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult976.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult976.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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __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"
, 9650, 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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult976
.unwrap();
9624 -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>, nsresult> {auto tryResult976 = (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"
, 9628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9628; __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"
, 9638); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9638; __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"
, 9643); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9643; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult976.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult976.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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __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"
, 9650, 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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult976
.unwrap();
9625 if (lastName) {auto tryResult976 = (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"
, 9628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9628; __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"
, 9638); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9638; __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"
, 9643); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9643; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult976.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult976.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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __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"
, 9650, 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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult976
.unwrap();
9626 // Make sure that this name is sorted properly and not aauto tryResult976 = (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"
, 9628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9628; __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"
, 9638); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9638; __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"
, 9643); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9643; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult976.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult976.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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __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"
, 9650, 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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult976
.unwrap();
9627 // duplicate.auto tryResult976 = (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"
, 9628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9628; __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"
, 9638); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9638; __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"
, 9643); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9643; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult976.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult976.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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __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"
, 9650, 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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult976
.unwrap();
9628 if (NS_AUUF_OR_WARN_IF(name <= lastName.ref())) {auto tryResult976 = (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"
, 9628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9628; __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"
, 9638); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9638; __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"
, 9643); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9643; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult976.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult976.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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __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"
, 9650, 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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult976
.unwrap();
9629 return Err(NS_ERROR_FAILURE);auto tryResult976 = (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"
, 9628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9628; __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"
, 9638); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9638; __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"
, 9643); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9643; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult976.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult976.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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __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"
, 9650, 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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult976
.unwrap();
9630 }auto tryResult976 = (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"
, 9628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9628; __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"
, 9638); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9638; __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"
, 9643); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9643; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult976.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult976.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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __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"
, 9650, 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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult976
.unwrap();
9631 }auto tryResult976 = (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"
, 9628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9628; __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"
, 9638); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9638; __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"
, 9643); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9643; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult976.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult976.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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __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"
, 9650, 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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult976
.unwrap();
9632 lastName = SomeRef(name);auto tryResult976 = (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"
, 9628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9628; __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"
, 9638); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9638; __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"
, 9643); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9643; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult976.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult976.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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __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"
, 9650, 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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult976
.unwrap();
9633
9634 const auto foundIt =auto tryResult976 = (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"
, 9628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9628; __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"
, 9638); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9638; __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"
, 9643); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9643; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult976.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult976.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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __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"
, 9650, 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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult976
.unwrap();
9635 std::find_if(objectStores.cbegin(), objectStores.cend(),auto tryResult976 = (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"
, 9628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9628; __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"
, 9638); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9638; __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"
, 9643); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9643; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult976.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult976.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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __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"
, 9650, 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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult976
.unwrap();
9636 [&name](const auto& entry) {auto tryResult976 = (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"
, 9628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9628; __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"
, 9638); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9638; __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"
, 9643); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9643; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult976.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult976.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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __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"
, 9650, 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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult976
.unwrap();
9637 const auto& value = entry.GetData();auto tryResult976 = (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"
, 9628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9628; __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"
, 9638); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9638; __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"
, 9643); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9643; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult976.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult976.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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __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"
, 9650, 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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult976
.unwrap();
9638 MOZ_ASSERT(entry.GetKey());auto tryResult976 = (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"
, 9628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9628; __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"
, 9638); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9638; __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"
, 9643); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9643; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult976.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult976.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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __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"
, 9650, 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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult976
.unwrap();
9639 return name == value->mCommonMetadata.name() &&auto tryResult976 = (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"
, 9628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9628; __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"
, 9638); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9638; __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"
, 9643); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9643; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult976.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult976.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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __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"
, 9650, 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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult976
.unwrap();
9640 !value->mDeleted;auto tryResult976 = (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"
, 9628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9628; __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"
, 9638); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9638; __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"
, 9643); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9643; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult976.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult976.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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __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"
, 9650, 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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult976
.unwrap();
9641 });auto tryResult976 = (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"
, 9628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9628; __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"
, 9638); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9638; __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"
, 9643); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9643; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult976.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult976.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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __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"
, 9650, 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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult976
.unwrap();
9642 if (foundIt == objectStores.cend()) {auto tryResult976 = (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"
, 9628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9628; __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"
, 9638); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9638; __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"
, 9643); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9643; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult976.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult976.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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __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"
, 9650, 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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult976
.unwrap();
9643 MOZ_ASSERT_UNLESS_FUZZING(false, "ObjectStore not found.");auto tryResult976 = (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"
, 9628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9628; __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"
, 9638); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9638; __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"
, 9643); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9643; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult976.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult976.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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __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"
, 9650, 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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult976
.unwrap();
9644 return Err(NS_ERROR_FAILURE);auto tryResult976 = (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"
, 9628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9628; __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"
, 9638); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9638; __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"
, 9643); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9643; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult976.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult976.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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __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"
, 9650, 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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult976
.unwrap();
9645 }auto tryResult976 = (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"
, 9628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9628; __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"
, 9638); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9638; __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"
, 9643); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9643; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult976.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult976.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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __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"
, 9650, 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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult976
.unwrap();
9646
9647 return foundIt->GetData().clonePtr();auto tryResult976 = (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"
, 9628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9628; __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"
, 9638); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9638; __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"
, 9643); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9643; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult976.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult976.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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __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"
, 9650, 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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult976
.unwrap();
9648 },auto tryResult976 = (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"
, 9628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9628; __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"
, 9638); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9638; __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"
, 9643); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9643; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult976.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult976.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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __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"
, 9650, 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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult976
.unwrap();
9649 fallible),auto tryResult976 = (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"
, 9628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9628; __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"
, 9638); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9638; __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"
, 9643); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9643; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult976.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult976.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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __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"
, 9650, 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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult976
.unwrap();
9650 nullptr)auto tryResult976 = (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"
, 9628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"name <= lastName.ref()" ")"); do { *((volatile int*)__null
) = 9628; __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"
, 9638); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()"
")"); do { *((volatile int*)__null) = 9638; __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"
, 9643); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"ObjectStore not found." ")"); do { *((volatile int*)__null)
= 9643; __attribute__((nomerge)) ::abort(); } while (false);
} } while (false); return Err(NS_ERROR_FAILURE); } return foundIt
->GetData().clonePtr(); }, fallible)); if ((__builtin_expect
(!!(tryResult976.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult976.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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __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"
, 9650, 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\", 9628); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { *((volatile int*)__null) = 9628; __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\", 9638); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { *((volatile int*)__null) = 9638; __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\", 9643); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { *((volatile int*)__null) = 9643; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)"
, tryTempError, nullptr); } auto objectStoreMetadatas = tryResult976
.unwrap();
;
9651
9652 return MakeSafeRefPtr<NormalTransaction>(SafeRefPtrFromThis(), aMode,
9653 aDurability,
9654 std::move(objectStoreMetadatas))
9655 .forget();
9656}
9657
9658mozilla::ipc::IPCResult Database::RecvPBackgroundIDBTransactionConstructor(
9659 PBackgroundIDBTransactionParent* aActor,
9660 nsTArray<nsString>&& aObjectStoreNames, const Mode& aMode,
9661 const Durability& aDurability) {
9662 AssertIsOnBackgroundThread();
9663 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"
, 9663); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { *((volatile int*)__null) = 9663; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9664 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"
, 9664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aObjectStoreNames.IsEmpty()"
")"); do { *((volatile int*)__null) = 9664; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9665 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"
, 9668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup"
")"); do { *((volatile int*)__null) = 9668; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9666 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"
, 9668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup"
")"); do { *((volatile int*)__null) = 9668; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9667 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"
, 9668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup"
")"); do { *((volatile int*)__null) = 9668; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9668 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"
, 9668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup"
")"); do { *((volatile int*)__null) = 9668; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9669 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"
, 9671); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDurability == IDBTransaction::Durability::Default || aDurability == IDBTransaction::Durability::Strict || aDurability == IDBTransaction::Durability::Relaxed"
")"); do { *((volatile int*)__null) = 9671; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9670 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"
, 9671); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDurability == IDBTransaction::Durability::Default || aDurability == IDBTransaction::Durability::Strict || aDurability == IDBTransaction::Durability::Relaxed"
")"); do { *((volatile int*)__null) = 9671; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
9671 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"
, 9671); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDurability == IDBTransaction::Durability::Default || aDurability == IDBTransaction::Durability::Strict || aDurability == IDBTransaction::Durability::Relaxed"
")"); do { *((volatile int*)__null) = 9671; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9672 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"
, 9672); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mClosed" ")"
); do { *((volatile int*)__null) = 9672; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9673
9674 if (IsInvalidated()) {
9675 // This is an expected race. We don't want the child to die here, just don't
9676 // actually do any work.
9677 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9678 }
9679
9680 if (!gConnectionPool) {
9681 gConnectionPool = new ConnectionPool();
9682 }
9683
9684 auto* transaction = static_cast<NormalTransaction*>(aActor);
9685
9686 RefPtr<StartTransactionOp> startOp = new StartTransactionOp(
9687 SafeRefPtr{transaction, AcquireStrongRefFromRawPtr{}});
9688
9689 uint64_t transactionId = startOp->StartOnConnectionPool(
9690 GetLoggingInfo()->Id(), mMetadata->mDatabaseId,
9691 transaction->LoggingSerialNumber(), aObjectStoreNames,
9692 aMode != IDBTransaction::Mode::ReadOnly);
9693
9694 transaction->Init(transactionId);
9695
9696 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"
, 9696)
) {
9697 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9697, "UnknownErr")
;
9698 transaction->Abort(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, /* aForce */ false);
9699 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9700 }
9701
9702 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9703}
9704
9705mozilla::ipc::IPCResult Database::RecvDeleteMe() {
9706 AssertIsOnBackgroundThread();
9707 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"
, 9707); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed"
")"); do { *((volatile int*)__null) = 9707; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9708
9709 QM_WARNONLY_TRY(OkIf(PBackgroundIDBDatabaseParent::Send__delete__(this))){auto tryResult977 = (OkIf(PBackgroundIDBDatabaseParent::Send__delete__
(this))); static_assert(std::is_empty_v<typename decltype(
tryResult977)::ok_type>); if ((__builtin_expect(!!(tryResult977
.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(PBackgroundIDBDatabaseParent::Send__delete__(this))"
, tryResult977.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9709, mozilla::dom::quota::Severity::Warning); }}
;
9710
9711 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9712}
9713
9714mozilla::ipc::IPCResult Database::RecvBlocked() {
9715 AssertIsOnBackgroundThread();
9716
9717 if (NS_WARN_IF(mClosed)NS_warn_if_impl(mClosed, "mClosed", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9717)
) {
9718 // Even though the sender checks the DB for not being closed, too,
9719 // there is a potential race with an ongoing origin clearing which
9720 // might have invalidated the DB in the meantime. Just ignore.
9721 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9722 }
9723
9724 DatabaseActorInfo* info;
9725 MOZ_ALWAYS_TRUE(gLiveDatabaseHashtable->Get(Id(), &info))do { if ((__builtin_expect(!!(gLiveDatabaseHashtable->Get(
Id(), &info)), 1))) { } else { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(false)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "gLiveDatabaseHashtable->Get(Id(), &info)"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9725); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "gLiveDatabaseHashtable->Get(Id(), &info)" ")")
; do { *((volatile int*)__null) = 9725; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
9726 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"
, 9726); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mLiveDatabases.Contains(this)"
")"); do { *((volatile int*)__null) = 9726; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9727
9728 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"
, 9728)
) {
9729 return IPC_FAIL(this, "Database info has no mWaitingFactoryOp!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Database info has no mWaitingFactoryOp!"
))
;
9730 }
9731
9732 info->mWaitingFactoryOp->NoteDatabaseBlocked(this);
9733
9734 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9735}
9736
9737mozilla::ipc::IPCResult Database::RecvClose() {
9738 AssertIsOnBackgroundThread();
9739
9740 if (NS_WARN_IF(!CloseInternal())NS_warn_if_impl(!CloseInternal(), "!CloseInternal()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9740)
) {
9741 return IPC_FAIL(this, "CloseInternal failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("CloseInternal failed!"
))
;
9742 }
9743
9744 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9745}
9746
9747void Database::StartTransactionOp::RunOnConnectionThread() {
9748 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"
, 9748); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 9748; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9749 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"
, 9749); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!HasFailed()"
")"); do { *((volatile int*)__null) = 9749; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9750
9751 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)
9752 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)
9753 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)
;
9754
9755 TransactionDatabaseOperationBase::RunOnConnectionThread();
9756}
9757
9758nsresult Database::StartTransactionOp::DoDatabaseWork(
9759 DatabaseConnection* aConnection) {
9760 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"
, 9760); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 9760; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9761 aConnection->AssertIsOnConnectionThread();
9762
9763 Transaction().SetActiveOnConnectionThread();
9764
9765 if (Transaction().GetMode() == IDBTransaction::Mode::Cleanup) {
9766 DebugOnly<nsresult> rv = aConnection->DisableQuotaChecks();
9767 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"
, 9769); } } while (false)
9768 "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"
, 9769); } } while (false)
9769 "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"
, 9769); } } while (false)
;
9770 }
9771
9772 if (Transaction().GetMode() != IDBTransaction::Mode::ReadOnly) {
9773 QM_TRY(MOZ_TO_RESULT({auto tryResult978 = (ToResult(aConnection->BeginWriteTransaction
(Transaction().GetDurability()))); static_assert(std::is_empty_v
<typename decltype(tryResult978)::ok_type>); if ((__builtin_expect
(!!(tryResult978.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->BeginWriteTransaction(Transaction().GetDurability()))"
, tryResult978.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9774, mozilla::dom::quota::Severity::Error); return tryResult978
.propagateErr(); }}
9774 aConnection->BeginWriteTransaction(Transaction().GetDurability()))){auto tryResult978 = (ToResult(aConnection->BeginWriteTransaction
(Transaction().GetDurability()))); static_assert(std::is_empty_v
<typename decltype(tryResult978)::ok_type>); if ((__builtin_expect
(!!(tryResult978.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->BeginWriteTransaction(Transaction().GetDurability()))"
, tryResult978.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9774, mozilla::dom::quota::Severity::Error); return tryResult978
.propagateErr(); }}
;
9775 }
9776
9777 return NS_OK;
9778}
9779
9780nsresult Database::StartTransactionOp::SendSuccessResult() {
9781 // We don't need to do anything here.
9782 return NS_OK;
9783}
9784
9785bool Database::StartTransactionOp::SendFailureResult(
9786 nsresult /* aResultCode */) {
9787 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9787, "UnknownErr")
;
9788
9789 // Abort the transaction.
9790 return false;
9791}
9792
9793void Database::StartTransactionOp::Cleanup() {
9794#ifdef DEBUG1
9795 // StartTransactionOp is not a normal database operation that is tied to an
9796 // actor. Do this to make our assertions happy.
9797 NoteActorDestroyed();
9798#endif
9799
9800 TransactionDatabaseOperationBase::Cleanup();
9801}
9802
9803/*******************************************************************************
9804 * TransactionBase
9805 ******************************************************************************/
9806
9807TransactionBase::TransactionBase(SafeRefPtr<Database> aDatabase, Mode aMode,
9808 Durability aDurability)
9809 : mDatabase(std::move(aDatabase)),
9810 mDatabaseId(mDatabase->Id()),
9811 mLoggingSerialNumber(
9812 mDatabase->GetLoggingInfo()->NextTransactionSN(aMode)),
9813 mActiveRequestCount(0),
9814 mInvalidatedOnAnyThread(false),
9815 mMode(aMode),
9816 mDurability(aDurability),
9817 mResultCode(NS_OK) {
9818 AssertIsOnBackgroundThread();
9819 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"
, 9819); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"
); do { *((volatile int*)__null) = 9819; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9820 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"
, 9820); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingSerialNumber"
")"); do { *((volatile int*)__null) = 9820; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9821}
9822
9823TransactionBase::~TransactionBase() {
9824 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"
, 9824); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActiveRequestCount"
")"); do { *((volatile int*)__null) = 9824; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9825 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"
, 9825); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActorDestroyed"
")"); do { *((volatile int*)__null) = 9825; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9826 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"
, 9826); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCommittedOrAborted"
")"); do { *((volatile int*)__null) = 9826; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
9827}
9828
9829void TransactionBase::Abort(nsresult aResultCode, bool aForce) {
9830 AssertIsOnBackgroundThread();
9831 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"
, 9831); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aResultCode)), 0)))"
")"); do { *((volatile int*)__null) = 9831; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9832
9833 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
9834 mResultCode = aResultCode;
9835 }
9836
9837 if (aForce) {
9838 mForceAborted.EnsureFlipped();
9839 }
9840
9841 MaybeCommitOrAbort();
9842}
9843
9844mozilla::ipc::IPCResult TransactionBase::RecvCommit(
9845 IProtocol* aActor, const Maybe<int64_t> aLastRequest) {
9846 AssertIsOnBackgroundThread();
9847
9848 if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9848)
) {
9849 return IPC_FAIL(mozilla::ipc::IPCResult::Fail(WrapNotNull(aActor), __func__, (
"Attempt to commit an already comitted/aborted transaction!")
)
9850 aActor, "Attempt to commit an already comitted/aborted transaction!")mozilla::ipc::IPCResult::Fail(WrapNotNull(aActor), __func__, (
"Attempt to commit an already comitted/aborted transaction!")
)
;
9851 }
9852
9853 mCommitOrAbortReceived.Flip();
9854 mLastRequestBeforeCommit.init(aLastRequest);
9855 MaybeCommitOrAbort();
9856
9857 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9858}
9859
9860mozilla::ipc::IPCResult TransactionBase::RecvAbort(IProtocol* aActor,
9861 nsresult aResultCode) {
9862 AssertIsOnBackgroundThread();
9863
9864 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"
, 9864)
) {
9865 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!"))
;
9866 }
9867
9868 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"
, 9869)
9869 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"
, 9869)
) {
9870 return IPC_FAIL(aActor, "aResultCode does not refer to IndexedDB!")mozilla::ipc::IPCResult::Fail(WrapNotNull(aActor), __func__, (
"aResultCode does not refer to IndexedDB!"))
;
9871 }
9872
9873 if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 9873)
) {
9874 return IPC_FAIL(mozilla::ipc::IPCResult::Fail(WrapNotNull(aActor), __func__, (
"Attempt to abort an already comitted/aborted transaction!"))
9875 aActor, "Attempt to abort an already comitted/aborted transaction!")mozilla::ipc::IPCResult::Fail(WrapNotNull(aActor), __func__, (
"Attempt to abort an already comitted/aborted transaction!"))
;
9876 }
9877
9878 mCommitOrAbortReceived.Flip();
9879 Abort(aResultCode, /* aForce */ false);
9880
9881 return IPC_OK()mozilla::ipc::IPCResult::Ok();
9882}
9883
9884void TransactionBase::CommitOrAbort() {
9885 AssertIsOnBackgroundThread();
9886
9887 mCommittedOrAborted.Flip();
9888
9889 if (!mInitialized) {
9890 return;
9891 }
9892
9893 // In case of a failed request and explicitly committed transaction, abort
9894 // (cf. https://w3c.github.io/IndexedDB/#async-execute-request step 5.3
9895 // vs. 5.4). It's worth emphasizing this can only happen here when we are
9896 // committing explicitly, otherwise the decision is made by the child.
9897 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
&& mLastFailedRequest &&
9898 *mLastRequestBeforeCommit &&
9899 *mLastFailedRequest == **mLastRequestBeforeCommit) {
9900 mResultCode = NS_ERROR_DOM_INDEXEDDB_ABORT_ERR;
9901 }
9902
9903 RefPtr<CommitOp> commitOp =
9904 new CommitOp(SafeRefPtrFromThis(), ClampResultCode(mResultCode));
9905
9906 gConnectionPool->Finish(TransactionId(), commitOp);
9907}
9908
9909SafeRefPtr<FullObjectStoreMetadata>
9910TransactionBase::GetMetadataForObjectStoreId(
9911 IndexOrObjectStoreId aObjectStoreId) const {
9912 AssertIsOnBackgroundThread();
9913 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"
, 9913); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aObjectStoreId"
")"); do { *((volatile int*)__null) = 9913; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9914
9915 if (!aObjectStoreId) {
9916 return nullptr;
9917 }
9918
9919 auto metadata = mDatabase->Metadata().mObjectStores.Lookup(aObjectStoreId);
9920 if (!metadata || (*metadata)->mDeleted) {
9921 return nullptr;
9922 }
9923
9924 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"
, 9924); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*metadata)->mCommonMetadata.id() == aObjectStoreId"
")"); do { *((volatile int*)__null) = 9924; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9925
9926 return metadata->clonePtr();
9927}
9928
9929SafeRefPtr<FullIndexMetadata> TransactionBase::GetMetadataForIndexId(
9930 FullObjectStoreMetadata& aObjectStoreMetadata,
9931 IndexOrObjectStoreId aIndexId) const {
9932 AssertIsOnBackgroundThread();
9933 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"
, 9933); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aIndexId" ")"
); do { *((volatile int*)__null) = 9933; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9934
9935 if (!aIndexId) {
9936 return nullptr;
9937 }
9938
9939 auto metadata = aObjectStoreMetadata.mIndexes.Lookup(aIndexId);
9940 if (!metadata || (*metadata)->mDeleted) {
9941 return nullptr;
9942 }
9943
9944 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"
, 9944); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*metadata)->mCommonMetadata.id() == aIndexId"
")"); do { *((volatile int*)__null) = 9944; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9945
9946 return metadata->clonePtr();
9947}
9948
9949void TransactionBase::NoteModifiedAutoIncrementObjectStore(
9950 const SafeRefPtr<FullObjectStoreMetadata>& aMetadata) {
9951 AssertIsOnConnectionThread();
9952
9953 if (!mModifiedAutoIncrementObjectStoreMetadataArray.Contains(aMetadata)) {
9954 mModifiedAutoIncrementObjectStoreMetadataArray.AppendElement(
9955 aMetadata.clonePtr());
9956 }
9957}
9958
9959void TransactionBase::ForgetModifiedAutoIncrementObjectStore(
9960 FullObjectStoreMetadata& aMetadata) {
9961 AssertIsOnConnectionThread();
9962
9963 mModifiedAutoIncrementObjectStoreMetadataArray.RemoveElement(&aMetadata);
9964}
9965
9966bool TransactionBase::VerifyRequestParams(const RequestParams& aParams) const {
9967 AssertIsOnBackgroundThread();
9968 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"
, 9968); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None"
")"); do { *((volatile int*)__null) = 9968; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
9969
9970 switch (aParams.type()) {
9971 case RequestParams::TObjectStoreAddParams: {
9972 const ObjectStoreAddPutParams& params =
9973 aParams.get_ObjectStoreAddParams().commonParams();
9974 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"
, 9974); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(params)" ")"); do { *((volatile int*)__null
) = 9974; __attribute__((nomerge)) ::abort(); } while (false)
; } } while (false); } return aCond; }((!VerifyRequestParams(
params)))
) {
9975 return false;
9976 }
9977 break;
9978 }
9979
9980 case RequestParams::TObjectStorePutParams: {
9981 const ObjectStoreAddPutParams& params =
9982 aParams.get_ObjectStorePutParams().commonParams();
9983 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"
, 9983); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(params)" ")"); do { *((volatile int*)__null
) = 9983; __attribute__((nomerge)) ::abort(); } while (false)
; } } while (false); } return aCond; }((!VerifyRequestParams(
params)))
) {
9984 return false;
9985 }
9986 break;
9987 }
9988
9989 case RequestParams::TObjectStoreGetParams: {
9990 const ObjectStoreGetParams& params = aParams.get_ObjectStoreGetParams();
9991 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
9992 GetMetadataForObjectStoreId(params.objectStoreId());
9993 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"
, 9993); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { *((volatile int*)__null) =
9993; __attribute__((nomerge)) ::abort(); } while (false); }
} while (false); } return aCond; }((!objectStoreMetadata))
) {
9994 return false;
9995 }
9996 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"
, 9996); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(params.keyRange())" ")"); do { *((volatile
int*)__null) = 9996; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); } return aCond; }((!VerifyRequestParams
(params.keyRange())))
) {
9997 return false;
9998 }
9999 break;
10000 }
10001
10002 case RequestParams::TObjectStoreGetKeyParams: {
10003 const ObjectStoreGetKeyParams& params =
10004 aParams.get_ObjectStoreGetKeyParams();
10005 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10006 GetMetadataForObjectStoreId(params.objectStoreId());
10007 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"
, 10007); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { *((volatile int*)__null) =
10007; __attribute__((nomerge)) ::abort(); } while (false); }
} while (false); } return aCond; }((!objectStoreMetadata))
) {
10008 return false;
10009 }
10010 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"
, 10010); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(params.keyRange())" ")"); do { *((volatile
int*)__null) = 10010; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); } return aCond; }((!VerifyRequestParams
(params.keyRange())))
) {
10011 return false;
10012 }
10013 break;
10014 }
10015
10016 case RequestParams::TObjectStoreGetAllParams: {
10017 const ObjectStoreGetAllParams& params =
10018 aParams.get_ObjectStoreGetAllParams();
10019 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10020 GetMetadataForObjectStoreId(params.objectStoreId());
10021 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"
, 10021); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { *((volatile int*)__null) =
10021; __attribute__((nomerge)) ::abort(); } while (false); }
} while (false); } return aCond; }((!objectStoreMetadata))
) {
10022 return false;
10023 }
10024 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"
, 10024); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(params.optionalKeyRange())" ")"); do {
*((volatile int*)__null) = 10024; __attribute__((nomerge)) ::
abort(); } while (false); } } while (false); } return aCond; }
((!VerifyRequestParams(params.optionalKeyRange())))
) {
10025 return false;
10026 }
10027 break;
10028 }
10029
10030 case RequestParams::TObjectStoreGetAllKeysParams: {
10031 const ObjectStoreGetAllKeysParams& params =
10032 aParams.get_ObjectStoreGetAllKeysParams();
10033 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10034 GetMetadataForObjectStoreId(params.objectStoreId());
10035 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"
, 10035); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { *((volatile int*)__null) =
10035; __attribute__((nomerge)) ::abort(); } while (false); }
} while (false); } return aCond; }((!objectStoreMetadata))
) {
10036 return false;
10037 }
10038 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"
, 10038); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(params.optionalKeyRange())" ")"); do {
*((volatile int*)__null) = 10038; __attribute__((nomerge)) ::
abort(); } while (false); } } while (false); } return aCond; }
((!VerifyRequestParams(params.optionalKeyRange())))
) {
10039 return false;
10040 }
10041 break;
10042 }
10043
10044 case RequestParams::TObjectStoreDeleteParams: {
10045 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"
, 10048); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 10048; __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))
10046 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"
, 10048); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 10048; __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))
10047 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"
, 10048); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 10048; __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))
10048 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"
, 10048); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 10048; __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))
) {
10049 return false;
10050 }
10051
10052 const ObjectStoreDeleteParams& params =
10053 aParams.get_ObjectStoreDeleteParams();
10054 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10055 GetMetadataForObjectStoreId(params.objectStoreId());
10056 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"
, 10056); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { *((volatile int*)__null) =
10056; __attribute__((nomerge)) ::abort(); } while (false); }
} while (false); } return aCond; }((!objectStoreMetadata))
) {
10057 return false;
10058 }
10059 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"
, 10059); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(params.keyRange())" ")"); do { *((volatile
int*)__null) = 10059; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); } return aCond; }((!VerifyRequestParams
(params.keyRange())))
) {
10060 return false;
10061 }
10062 break;
10063 }
10064
10065 case RequestParams::TObjectStoreClearParams: {
10066 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"
, 10069); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 10069; __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))
10067 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"
, 10069); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 10069; __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))
10068 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"
, 10069); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 10069; __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))
10069 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"
, 10069); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 10069; __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))
) {
10070 return false;
10071 }
10072
10073 const ObjectStoreClearParams& params =
10074 aParams.get_ObjectStoreClearParams();
10075 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10076 GetMetadataForObjectStoreId(params.objectStoreId());
10077 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"
, 10077); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { *((volatile int*)__null) =
10077; __attribute__((nomerge)) ::abort(); } while (false); }
} while (false); } return aCond; }((!objectStoreMetadata))
) {
10078 return false;
10079 }
10080 break;
10081 }
10082
10083 case RequestParams::TObjectStoreCountParams: {
10084 const ObjectStoreCountParams& params =
10085 aParams.get_ObjectStoreCountParams();
10086 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10087 GetMetadataForObjectStoreId(params.objectStoreId());
10088 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"
, 10088); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { *((volatile int*)__null) =
10088; __attribute__((nomerge)) ::abort(); } while (false); }
} while (false); } return aCond; }((!objectStoreMetadata))
) {
10089 return false;
10090 }
10091 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"
, 10091); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(params.optionalKeyRange())" ")"); do {
*((volatile int*)__null) = 10091; __attribute__((nomerge)) ::
abort(); } while (false); } } while (false); } return aCond; }
((!VerifyRequestParams(params.optionalKeyRange())))
) {
10092 return false;
10093 }
10094 break;
10095 }
10096
10097 case RequestParams::TIndexGetParams: {
10098 const IndexGetParams& params = aParams.get_IndexGetParams();
10099 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10100 GetMetadataForObjectStoreId(params.objectStoreId());
10101 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"
, 10101); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { *((volatile int*)__null) =
10101; __attribute__((nomerge)) ::abort(); } while (false); }
} while (false); } return aCond; }((!objectStoreMetadata))
) {
10102 return false;
10103 }
10104 const SafeRefPtr<FullIndexMetadata> indexMetadata =
10105 GetMetadataForIndexId(*objectStoreMetadata, params.indexId());
10106 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"
, 10106); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!indexMetadata" ")"); do { *((volatile int*)__null) = 10106
; __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!indexMetadata))
) {
10107 return false;
10108 }
10109 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"
, 10109); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(params.keyRange())" ")"); do { *((volatile
int*)__null) = 10109; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); } return aCond; }((!VerifyRequestParams
(params.keyRange())))
) {
10110 return false;
10111 }
10112 break;
10113 }
10114
10115 case RequestParams::TIndexGetKeyParams: {
10116 const IndexGetKeyParams& params = aParams.get_IndexGetKeyParams();
10117 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10118 GetMetadataForObjectStoreId(params.objectStoreId());
10119 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"
, 10119); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { *((volatile int*)__null) =
10119; __attribute__((nomerge)) ::abort(); } while (false); }
} while (false); } return aCond; }((!objectStoreMetadata))
) {
10120 return false;
10121 }
10122 const SafeRefPtr<FullIndexMetadata> indexMetadata =
10123 GetMetadataForIndexId(*objectStoreMetadata, params.indexId());
10124 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"
, 10124); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!indexMetadata" ")"); do { *((volatile int*)__null) = 10124
; __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!indexMetadata))
) {
10125 return false;
10126 }
10127 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"
, 10127); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(params.keyRange())" ")"); do { *((volatile
int*)__null) = 10127; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); } return aCond; }((!VerifyRequestParams
(params.keyRange())))
) {
10128 return false;
10129 }
10130 break;
10131 }
10132
10133 case RequestParams::TIndexGetAllParams: {
10134 const IndexGetAllParams& params = aParams.get_IndexGetAllParams();
10135 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10136 GetMetadataForObjectStoreId(params.objectStoreId());
10137 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"
, 10137); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { *((volatile int*)__null) =
10137; __attribute__((nomerge)) ::abort(); } while (false); }
} while (false); } return aCond; }((!objectStoreMetadata))
) {
10138 return false;
10139 }
10140 const SafeRefPtr<FullIndexMetadata> indexMetadata =
10141 GetMetadataForIndexId(*objectStoreMetadata, params.indexId());
10142 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"
, 10142); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!indexMetadata" ")"); do { *((volatile int*)__null) = 10142
; __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!indexMetadata))
) {
10143 return false;
10144 }
10145 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"
, 10145); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(params.optionalKeyRange())" ")"); do {
*((volatile int*)__null) = 10145; __attribute__((nomerge)) ::
abort(); } while (false); } } while (false); } return aCond; }
((!VerifyRequestParams(params.optionalKeyRange())))
) {
10146 return false;
10147 }
10148 break;
10149 }
10150
10151 case RequestParams::TIndexGetAllKeysParams: {
10152 const IndexGetAllKeysParams& params = aParams.get_IndexGetAllKeysParams();
10153 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10154 GetMetadataForObjectStoreId(params.objectStoreId());
10155 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"
, 10155); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { *((volatile int*)__null) =
10155; __attribute__((nomerge)) ::abort(); } while (false); }
} while (false); } return aCond; }((!objectStoreMetadata))
) {
10156 return false;
10157 }
10158 const SafeRefPtr<FullIndexMetadata> indexMetadata =
10159 GetMetadataForIndexId(*objectStoreMetadata, params.indexId());
10160 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"
, 10160); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!indexMetadata" ")"); do { *((volatile int*)__null) = 10160
; __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!indexMetadata))
) {
10161 return false;
10162 }
10163 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"
, 10163); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(params.optionalKeyRange())" ")"); do {
*((volatile int*)__null) = 10163; __attribute__((nomerge)) ::
abort(); } while (false); } } while (false); } return aCond; }
((!VerifyRequestParams(params.optionalKeyRange())))
) {
10164 return false;
10165 }
10166 break;
10167 }
10168
10169 case RequestParams::TIndexCountParams: {
10170 const IndexCountParams& params = aParams.get_IndexCountParams();
10171 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
10172 GetMetadataForObjectStoreId(params.objectStoreId());
10173 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"
, 10173); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { *((volatile int*)__null) =
10173; __attribute__((nomerge)) ::abort(); } while (false); }
} while (false); } return aCond; }((!objectStoreMetadata))
) {
10174 return false;
10175 }
10176 const SafeRefPtr<FullIndexMetadata> indexMetadata =
10177 GetMetadataForIndexId(*objectStoreMetadata, params.indexId());
10178 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"
, 10178); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!indexMetadata" ")"); do { *((volatile int*)__null) = 10178
; __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!indexMetadata))
) {
10179 return false;
10180 }
10181 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"
, 10181); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(params.optionalKeyRange())" ")"); do {
*((volatile int*)__null) = 10181; __attribute__((nomerge)) ::
abort(); } while (false); } } while (false); } return aCond; }
((!VerifyRequestParams(params.optionalKeyRange())))
) {
10182 return false;
10183 }
10184 break;
10185 }
10186
10187 default:
10188 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"
, 10188); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 10188; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
10189 }
10190
10191 return true;
10192}
10193
10194bool TransactionBase::VerifyRequestParams(
10195 const SerializedKeyRange& aParams) const {
10196 AssertIsOnBackgroundThread();
10197
10198 // XXX Check more here?
10199
10200 if (aParams.isOnly()) {
10201 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"
, 10201); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"aParams.lower().IsUnset()" ")"); do { *((volatile int*)__null
) = 10201; __attribute__((nomerge)) ::abort(); } while (false
); } } while (false); } return aCond; }((aParams.lower().IsUnset
()))
) {
10202 return false;
10203 }
10204 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"
, 10204); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!aParams.upper().IsUnset()" ")"); do { *((volatile int*)__null
) = 10204; __attribute__((nomerge)) ::abort(); } while (false
); } } while (false); } return aCond; }((!aParams.upper().IsUnset
()))
) {
10205 return false;
10206 }
10207 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"
, 10207); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"aParams.lowerOpen()" ")"); do { *((volatile int*)__null) = 10207
; __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((aParams.lowerOpen()))
) {
10208 return false;
10209 }
10210 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"
, 10210); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"aParams.upperOpen()" ")"); do { *((volatile int*)__null) = 10210
; __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((aParams.upperOpen()))
) {
10211 return false;
10212 }
10213 } 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"
, 10214); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"aParams.lower().IsUnset() && aParams.upper().IsUnset()"
")"); do { *((volatile int*)__null) = 10214; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((aParams.lower().IsUnset() && aParams.upper
().IsUnset()))
10214 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"
, 10214); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"aParams.lower().IsUnset() && aParams.upper().IsUnset()"
")"); do { *((volatile int*)__null) = 10214; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((aParams.lower().IsUnset() && aParams.upper
().IsUnset()))
) {
10215 return false;
10216 }
10217
10218 return true;
10219}
10220
10221bool TransactionBase::VerifyRequestParams(
10222 const ObjectStoreAddPutParams& aParams) const {
10223 AssertIsOnBackgroundThread();
10224
10225 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"
, 10227); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 10227; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((mMode != IDBTransaction::Mode::ReadWrite &&
mMode != IDBTransaction::Mode::ReadWriteFlush && mMode
!= IDBTransaction::Mode::VersionChange))
10226 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"
, 10227); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 10227; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((mMode != IDBTransaction::Mode::ReadWrite &&
mMode != IDBTransaction::Mode::ReadWriteFlush && mMode
!= IDBTransaction::Mode::VersionChange))
10227 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"
, 10227); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 10227; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((mMode != IDBTransaction::Mode::ReadWrite &&
mMode != IDBTransaction::Mode::ReadWriteFlush && mMode
!= IDBTransaction::Mode::VersionChange))
) {
10228 return false;
10229 }
10230
10231 SafeRefPtr<FullObjectStoreMetadata> objMetadata =
10232 GetMetadataForObjectStoreId(aParams.objectStoreId());
10233 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"
, 10233); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objMetadata" ")"); do { *((volatile int*)__null) = 10233; __attribute__
((nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((!objMetadata))
) {
10234 return false;
10235 }
10236
10237 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"
, 10237); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!aParams.cloneInfo().data().data.Size()" ")"); do { *((volatile
int*)__null) = 10237; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); } return aCond; }((!aParams.cloneInfo
().data().data.Size()))
) {
10238 return false;
10239 }
10240
10241 if (objMetadata->mCommonMetadata.autoIncrement() &&
10242 objMetadata->mCommonMetadata.keyPath().IsValid() &&
10243 aParams.key().IsUnset()) {
10244 const SerializedStructuredCloneWriteInfo& cloneInfo = aParams.cloneInfo();
10245
10246 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"
, 10246); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!cloneInfo.offsetToKeyProp()" ")"); do { *((volatile int*)__null
) = 10246; __attribute__((nomerge)) ::abort(); } while (false
); } } while (false); } return aCond; }((!cloneInfo.offsetToKeyProp
()))
) {
10247 return false;
10248 }
10249
10250 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"
, 10250); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"cloneInfo.data().data.Size() < sizeof(uint64_t)" ")"); do
{ *((volatile int*)__null) = 10250; __attribute__((nomerge))
::abort(); } while (false); } } while (false); } return aCond
; }((cloneInfo.data().data.Size() < sizeof(uint64_t)))
) {
10251 return false;
10252 }
10253
10254 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"
, 10255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"cloneInfo.offsetToKeyProp() > (cloneInfo.data().data.Size() - sizeof(uint64_t))"
")"); do { *((volatile int*)__null) = 10255; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((cloneInfo.offsetToKeyProp() > (cloneInfo.data()
.data.Size() - sizeof(uint64_t))))
10255 (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"
, 10255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"cloneInfo.offsetToKeyProp() > (cloneInfo.data().data.Size() - sizeof(uint64_t))"
")"); do { *((volatile int*)__null) = 10255; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((cloneInfo.offsetToKeyProp() > (cloneInfo.data()
.data.Size() - sizeof(uint64_t))))
) {
10256 return false;
10257 }
10258 } 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"
, 10258); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"aParams.cloneInfo().offsetToKeyProp()" ")"); do { *((volatile
int*)__null) = 10258; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); } return aCond; }((aParams.cloneInfo
().offsetToKeyProp()))
) {
10259 return false;
10260 }
10261
10262 for (const auto& updateInfo : aParams.indexUpdateInfos()) {
10263 SafeRefPtr<FullIndexMetadata> indexMetadata =
10264 GetMetadataForIndexId(*objMetadata, updateInfo.indexId());
10265 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"
, 10265); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!indexMetadata" ")"); do { *((volatile int*)__null) = 10265
; __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!indexMetadata))
) {
10266 return false;
10267 }
10268
10269 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"
, 10269); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"updateInfo.value().IsUnset()" ")"); do { *((volatile int*)__null
) = 10269; __attribute__((nomerge)) ::abort(); } while (false
); } } while (false); } return aCond; }((updateInfo.value().IsUnset
()))
) {
10270 return false;
10271 }
10272
10273 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"
, 10273); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!updateInfo.value().GetBuffer().IsEmpty()"
")"); do { *((volatile int*)__null) = 10273; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10274 }
10275
10276 for (const FileAddInfo& fileAddInfo : aParams.fileAddInfos()) {
10277 const PBackgroundIDBDatabaseFileParent* file =
10278 fileAddInfo.file().AsParent();
10279
10280 switch (fileAddInfo.type()) {
10281 case StructuredCloneFileBase::eBlob:
10282 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"
, 10282); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!file" ")"); do { *((volatile int*)__null) = 10282; __attribute__
((nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((!file))
) {
10283 return false;
10284 }
10285 break;
10286
10287 case StructuredCloneFileBase::eMutableFile: {
10288 return false;
10289 }
10290
10291 case StructuredCloneFileBase::eStructuredClone:
10292 case StructuredCloneFileBase::eWasmBytecode:
10293 case StructuredCloneFileBase::eWasmCompiled:
10294 case StructuredCloneFileBase::eEndGuard:
10295 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"
, 10295); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"Unsupported." ")"); do { *((volatile int*)__null) = 10295; __attribute__
((nomerge)) ::abort(); } while (false); } } while (false)
;
10296 return false;
10297
10298 default:
10299 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"
, 10299); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 10299; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
10300 }
10301 }
10302
10303 return true;
10304}
10305
10306bool TransactionBase::VerifyRequestParams(
10307 const Maybe<SerializedKeyRange>& aParams) const {
10308 AssertIsOnBackgroundThread();
10309
10310 if (aParams.isSome()) {
10311 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"
, 10311); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams(aParams.ref())" ")"); do { *((volatile
int*)__null) = 10311; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); } return aCond; }((!VerifyRequestParams
(aParams.ref())))
) {
10312 return false;
10313 }
10314 }
10315
10316 return true;
10317}
10318
10319void TransactionBase::NoteActiveRequest() {
10320 AssertIsOnBackgroundThread();
10321 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"
, 10321); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActiveRequestCount < (18446744073709551615UL)"
")"); do { *((volatile int*)__null) = 10321; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10322
10323 mActiveRequestCount++;
10324}
10325
10326void TransactionBase::NoteFinishedRequest(const int64_t aRequestId,
10327 const nsresult aResultCode) {
10328 AssertIsOnBackgroundThread();
10329 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"
, 10329); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActiveRequestCount"
")"); do { *((volatile int*)__null) = 10329; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10330
10331 mActiveRequestCount--;
10332
10333 if (NS_FAILED(aResultCode)((bool)(__builtin_expect(!!(NS_FAILED_impl(aResultCode)), 0))
)
) {
10334 mLastFailedRequest = Some(aRequestId);
10335 }
10336
10337 MaybeCommitOrAbort();
10338}
10339
10340void TransactionBase::Invalidate() {
10341 AssertIsOnBackgroundThread();
10342 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"
, 10342); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInvalidated == mInvalidatedOnAnyThread"
")"); do { *((volatile int*)__null) = 10342; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10343
10344 if (!mInvalidated) {
10345 mInvalidated.Flip();
10346 mInvalidatedOnAnyThread = true;
10347
10348 Abort(NS_ERROR_DOM_INDEXEDDB_ABORT_ERR, /* aForce */ false);
10349 }
10350}
10351
10352PBackgroundIDBRequestParent* TransactionBase::AllocRequest(
10353 const int64_t aRequestId, RequestParams&& aParams, bool aTrustParams) {
10354 AssertIsOnBackgroundThread();
10355 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"
, 10355); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None"
")"); do { *((volatile int*)__null) = 10355; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10356
10357#ifdef DEBUG1
10358 // Always verify parameters in DEBUG builds!
10359 aTrustParams = false;
10360#endif
10361
10362 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"
, 10362); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!aTrustParams && !VerifyRequestParams(aParams)" ")"
); do { *((volatile int*)__null) = 10362; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((!aTrustParams && !VerifyRequestParams(aParams)))
) {
10363 return nullptr;
10364 }
10365
10366 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"
, 10366); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"mCommitOrAbortReceived" ")"); do { *((volatile int*)__null)
= 10366; __attribute__((nomerge)) ::abort(); } while (false)
; } } while (false); } return aCond; }((mCommitOrAbortReceived
))
) {
10367 return nullptr;
10368 }
10369
10370 RefPtr<NormalTransactionOp> actor;
10371
10372 switch (aParams.type()) {
10373 case RequestParams::TObjectStoreAddParams:
10374 case RequestParams::TObjectStorePutParams:
10375 actor = new ObjectStoreAddOrPutRequestOp(SafeRefPtrFromThis(), aRequestId,
10376 std::move(aParams));
10377 break;
10378
10379 case RequestParams::TObjectStoreGetParams:
10380 actor =
10381 new ObjectStoreGetRequestOp(SafeRefPtrFromThis(), aRequestId, aParams,
10382 /* aGetAll */ false);
10383 break;
10384
10385 case RequestParams::TObjectStoreGetAllParams:
10386 actor =
10387 new ObjectStoreGetRequestOp(SafeRefPtrFromThis(), aRequestId, aParams,
10388 /* aGetAll */ true);
10389 break;
10390
10391 case RequestParams::TObjectStoreGetKeyParams:
10392 actor = new ObjectStoreGetKeyRequestOp(SafeRefPtrFromThis(), aRequestId,
10393 aParams,
10394 /* aGetAll */ false);
10395 break;
10396
10397 case RequestParams::TObjectStoreGetAllKeysParams:
10398 actor = new ObjectStoreGetKeyRequestOp(SafeRefPtrFromThis(), aRequestId,
10399 aParams,
10400 /* aGetAll */ true);
10401 break;
10402
10403 case RequestParams::TObjectStoreDeleteParams:
10404 actor =
10405 new ObjectStoreDeleteRequestOp(SafeRefPtrFromThis(), aRequestId,
10406 aParams.get_ObjectStoreDeleteParams());
10407 break;
10408
10409 case RequestParams::TObjectStoreClearParams:
10410 actor =
10411 new ObjectStoreClearRequestOp(SafeRefPtrFromThis(), aRequestId,
10412 aParams.get_ObjectStoreClearParams());
10413 break;
10414
10415 case RequestParams::TObjectStoreCountParams:
10416 actor =
10417 new ObjectStoreCountRequestOp(SafeRefPtrFromThis(), aRequestId,
10418 aParams.get_ObjectStoreCountParams());
10419 break;
10420
10421 case RequestParams::TIndexGetParams:
10422 actor = new IndexGetRequestOp(SafeRefPtrFromThis(), aRequestId, aParams,
10423 /* aGetAll */ false);
10424 break;
10425
10426 case RequestParams::TIndexGetKeyParams:
10427 actor =
10428 new IndexGetKeyRequestOp(SafeRefPtrFromThis(), aRequestId, aParams,
10429 /* aGetAll */ false);
10430 break;
10431
10432 case RequestParams::TIndexGetAllParams:
10433 actor = new IndexGetRequestOp(SafeRefPtrFromThis(), aRequestId, aParams,
10434 /* aGetAll */ true);
10435 break;
10436
10437 case RequestParams::TIndexGetAllKeysParams:
10438 actor =
10439 new IndexGetKeyRequestOp(SafeRefPtrFromThis(), aRequestId, aParams,
10440 /* aGetAll */ true);
10441 break;
10442
10443 case RequestParams::TIndexCountParams:
10444 actor =
10445 new IndexCountRequestOp(SafeRefPtrFromThis(), aRequestId, aParams);
10446 break;
10447
10448 default:
10449 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"
, 10449); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 10449; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
10450 }
10451
10452 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"
, 10452); AnnotateMozCrashReason("MOZ_ASSERT" "(" "actor" ")"
); do { *((volatile int*)__null) = 10452; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10453
10454 // Transfer ownership to IPDL.
10455 return actor.forget().take();
10456}
10457
10458bool TransactionBase::StartRequest(PBackgroundIDBRequestParent* aActor) {
10459 AssertIsOnBackgroundThread();
10460 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"
, 10460); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { *((volatile int*)__null) = 10460; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10461
10462 auto* op = static_cast<NormalTransactionOp*>(aActor);
10463
10464 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"
, 10464)
) {
10465 op->Cleanup();
10466 return false;
10467 }
10468
10469 op->DispatchToConnectionPool();
10470 return true;
10471}
10472
10473bool TransactionBase::DeallocRequest(
10474 PBackgroundIDBRequestParent* const aActor) {
10475 AssertIsOnBackgroundThread();
10476 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"
, 10476); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { *((volatile int*)__null) = 10476; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10477
10478 // Transfer ownership back from IPDL.
10479 const RefPtr<NormalTransactionOp> actor =
10480 dont_AddRef(static_cast<NormalTransactionOp*>(aActor));
10481 return true;
10482}
10483
10484already_AddRefed<PBackgroundIDBCursorParent> TransactionBase::AllocCursor(
10485 const OpenCursorParams& aParams, bool aTrustParams) {
10486 AssertIsOnBackgroundThread();
10487 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"
, 10487); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != OpenCursorParams::T__None"
")"); do { *((volatile int*)__null) = 10487; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10488
10489#ifdef DEBUG1
10490 // Always verify parameters in DEBUG builds!
10491 aTrustParams = false;
10492#endif
10493
10494 const OpenCursorParams::Type type = aParams.type();
10495 SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata;
10496 SafeRefPtr<FullIndexMetadata> indexMetadata;
10497 CursorBase::Direction direction;
10498
10499 // First extract the parameters common to all open cursor variants.
10500 const auto& commonParams = GetCommonOpenCursorParams(aParams);
10501 objectStoreMetadata =
10502 GetMetadataForObjectStoreId(commonParams.objectStoreId());
10503 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"
, 10503); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!objectStoreMetadata" ")"); do { *((volatile int*)__null) =
10503; __attribute__((nomerge)) ::abort(); } while (false); }
} while (false); } return aCond; }((!objectStoreMetadata))
) {
10504 return nullptr;
10505 }
10506 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"
, 10507); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams( commonParams.optionalKeyRange())" ")"
); do { *((volatile int*)__null) = 10507; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((!VerifyRequestParams( commonParams.optionalKeyRange())))
10507 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"
, 10507); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!VerifyRequestParams( commonParams.optionalKeyRange())" ")"
); do { *((volatile int*)__null) = 10507; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } return aCond
; }((!VerifyRequestParams( commonParams.optionalKeyRange())))
) {
10508 return nullptr;
10509 }
10510 direction = commonParams.direction();
10511
10512 // Now, for the index open cursor variants, extract the additional parameter.
10513 if (type == OpenCursorParams::TIndexOpenCursorParams ||
10514 type == OpenCursorParams::TIndexOpenKeyCursorParams) {
10515 const auto& commonIndexParams = GetCommonIndexOpenCursorParams(aParams);
10516 indexMetadata = GetMetadataForIndexId(*objectStoreMetadata,
10517 commonIndexParams.indexId());
10518 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"
, 10518); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!indexMetadata" ")"); do { *((volatile int*)__null) = 10518
; __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((!indexMetadata))
) {
10519 return nullptr;
10520 }
10521 }
10522
10523 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"
, 10523); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"mCommitOrAbortReceived" ")"); do { *((volatile int*)__null)
= 10523; __attribute__((nomerge)) ::abort(); } while (false)
; } } while (false); } return aCond; }((mCommitOrAbortReceived
))
) {
10524 return nullptr;
10525 }
10526
10527 // Create Cursor and transfer ownership to IPDL.
10528 switch (type) {
10529 case OpenCursorParams::TObjectStoreOpenCursorParams:
10530 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"
, 10530); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!indexMetadata"
")"); do { *((volatile int*)__null) = 10530; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10531 return MakeAndAddRef<Cursor<IDBCursorType::ObjectStore>>(
10532 SafeRefPtrFromThis(), std::move(objectStoreMetadata), direction,
10533 CursorBase::ConstructFromTransactionBase{});
10534 case OpenCursorParams::TObjectStoreOpenKeyCursorParams:
10535 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"
, 10535); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!indexMetadata"
")"); do { *((volatile int*)__null) = 10535; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10536 return MakeAndAddRef<Cursor<IDBCursorType::ObjectStoreKey>>(
10537 SafeRefPtrFromThis(), std::move(objectStoreMetadata), direction,
10538 CursorBase::ConstructFromTransactionBase{});
10539 case OpenCursorParams::TIndexOpenCursorParams:
10540 return MakeAndAddRef<Cursor<IDBCursorType::Index>>(
10541 SafeRefPtrFromThis(), std::move(objectStoreMetadata),
10542 std::move(indexMetadata), direction,
10543 CursorBase::ConstructFromTransactionBase{});
10544 case OpenCursorParams::TIndexOpenKeyCursorParams:
10545 return MakeAndAddRef<Cursor<IDBCursorType::IndexKey>>(
10546 SafeRefPtrFromThis(), std::move(objectStoreMetadata),
10547 std::move(indexMetadata), direction,
10548 CursorBase::ConstructFromTransactionBase{});
10549 default:
10550 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"
, 10550); AnnotateMozCrashReason("MOZ_CRASH(" "Cannot get here."
")"); do { *((volatile int*)__null) = 10550; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
10551 }
10552}
10553
10554bool TransactionBase::StartCursor(PBackgroundIDBCursorParent* const aActor,
10555 const int64_t aRequestId,
10556 const OpenCursorParams& aParams) {
10557 AssertIsOnBackgroundThread();
10558 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"
, 10558); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { *((volatile int*)__null) = 10558; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10559 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"
, 10559); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != OpenCursorParams::T__None"
")"); do { *((volatile int*)__null) = 10559; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10560
10561 auto* const op = static_cast<CursorBase*>(aActor);
10562
10563 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"
, 10563)
) {
10564 return false;
10565 }
10566
10567 return true;
10568}
10569
10570/*******************************************************************************
10571 * NormalTransaction
10572 ******************************************************************************/
10573
10574NormalTransaction::NormalTransaction(
10575 SafeRefPtr<Database> aDatabase, TransactionBase::Mode aMode,
10576 TransactionBase::Durability aDurability,
10577 nsTArray<SafeRefPtr<FullObjectStoreMetadata>>&& aObjectStores)
10578 : TransactionBase(std::move(aDatabase), aMode, aDurability),
10579 mObjectStores{std::move(aObjectStores)} {
10580 AssertIsOnBackgroundThread();
10581 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"
, 10581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mObjectStores.IsEmpty()"
")"); do { *((volatile int*)__null) = 10581; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10582}
10583
10584bool NormalTransaction::IsSameProcessActor() {
10585 AssertIsOnBackgroundThread();
10586
10587 PBackgroundParent* const actor = Manager()->Manager()->Manager();
10588 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"
, 10588); AnnotateMozCrashReason("MOZ_ASSERT" "(" "actor" ")"
); do { *((volatile int*)__null) = 10588; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10589
10590 return !BackgroundParent::IsOtherProcessActor(actor);
10591}
10592
10593void NormalTransaction::SendCompleteNotification(nsresult aResult) {
10594 AssertIsOnBackgroundThread();
10595
10596 if (!IsActorDestroyed()) {
10597 Unused << SendComplete(aResult);
10598 }
10599}
10600
10601void NormalTransaction::ActorDestroy(ActorDestroyReason aWhy) {
10602 AssertIsOnBackgroundThread();
10603
10604 NoteActorDestroyed();
10605
10606 if (!mCommittedOrAborted) {
10607 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
10608 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10608, "UnknownErr")
;
10609 mResultCode = NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
10610 }
10611
10612 mForceAborted.EnsureFlipped();
10613
10614 MaybeCommitOrAbort();
10615 }
10616}
10617
10618mozilla::ipc::IPCResult NormalTransaction::RecvDeleteMe() {
10619 AssertIsOnBackgroundThread();
10620 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"
, 10620); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()"
")"); do { *((volatile int*)__null) = 10620; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10621
10622 QM_WARNONLY_TRY(OkIf(PBackgroundIDBTransactionParent::Send__delete__(this))){auto tryResult979 = (OkIf(PBackgroundIDBTransactionParent::Send__delete__
(this))); static_assert(std::is_empty_v<typename decltype(
tryResult979)::ok_type>); if ((__builtin_expect(!!(tryResult979
.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(PBackgroundIDBTransactionParent::Send__delete__(this))"
, tryResult979.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10622, mozilla::dom::quota::Severity::Warning); }}
;
10623
10624 return IPC_OK()mozilla::ipc::IPCResult::Ok();
10625}
10626
10627mozilla::ipc::IPCResult NormalTransaction::RecvCommit(
10628 const Maybe<int64_t>& aLastRequest) {
10629 AssertIsOnBackgroundThread();
10630
10631 return TransactionBase::RecvCommit(this, aLastRequest);
10632}
10633
10634mozilla::ipc::IPCResult NormalTransaction::RecvAbort(
10635 const nsresult& aResultCode) {
10636 AssertIsOnBackgroundThread();
10637
10638 return TransactionBase::RecvAbort(this, aResultCode);
10639}
10640
10641PBackgroundIDBRequestParent*
10642NormalTransaction::AllocPBackgroundIDBRequestParent(
10643 const int64_t& aRequestId, const RequestParams& aParams) {
10644 AssertIsOnBackgroundThread();
10645 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"
, 10645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None"
")"); do { *((volatile int*)__null) = 10645; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10646
10647 return AllocRequest(aRequestId,
10648 std::move(const_cast<RequestParams&>(aParams)),
10649 IsSameProcessActor());
10650}
10651
10652mozilla::ipc::IPCResult NormalTransaction::RecvPBackgroundIDBRequestConstructor(
10653 PBackgroundIDBRequestParent* const aActor, const int64_t& aRequestId,
10654 const RequestParams& aParams) {
10655 AssertIsOnBackgroundThread();
10656 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"
, 10656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { *((volatile int*)__null) = 10656; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10657 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"
, 10657); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None"
")"); do { *((volatile int*)__null) = 10657; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10658
10659 if (!StartRequest(aActor)) {
10660 return IPC_FAIL(this, "StartRequest failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("StartRequest failed!"
))
;
10661 }
10662 return IPC_OK()mozilla::ipc::IPCResult::Ok();
10663}
10664
10665bool NormalTransaction::DeallocPBackgroundIDBRequestParent(
10666 PBackgroundIDBRequestParent* const aActor) {
10667 AssertIsOnBackgroundThread();
10668 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"
, 10668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { *((volatile int*)__null) = 10668; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10669
10670 return DeallocRequest(aActor);
10671}
10672
10673already_AddRefed<PBackgroundIDBCursorParent>
10674NormalTransaction::AllocPBackgroundIDBCursorParent(
10675 const int64_t& aRequestId, const OpenCursorParams& aParams) {
10676 AssertIsOnBackgroundThread();
10677
10678 return AllocCursor(aParams, IsSameProcessActor());
10679}
10680
10681mozilla::ipc::IPCResult NormalTransaction::RecvPBackgroundIDBCursorConstructor(
10682 PBackgroundIDBCursorParent* const aActor, const int64_t& aRequestId,
10683 const OpenCursorParams& aParams) {
10684 AssertIsOnBackgroundThread();
10685 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"
, 10685); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { *((volatile int*)__null) = 10685; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10686 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"
, 10686); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != OpenCursorParams::T__None"
")"); do { *((volatile int*)__null) = 10686; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10687
10688 if (!StartCursor(aActor, aRequestId, aParams)) {
10689 return IPC_FAIL(this, "StartCursor failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("StartCursor failed!"
))
;
10690 }
10691 return IPC_OK()mozilla::ipc::IPCResult::Ok();
10692}
10693
10694/*******************************************************************************
10695 * VersionChangeTransaction
10696 ******************************************************************************/
10697
10698VersionChangeTransaction::VersionChangeTransaction(
10699 OpenDatabaseOp* aOpenDatabaseOp)
10700 : TransactionBase(aOpenDatabaseOp->mDatabase.clonePtr(),
10701 IDBTransaction::Mode::VersionChange,
10702 // VersionChange must not change durability.
10703 IDBTransaction::Durability::Default), // Not used.
10704 mOpenDatabaseOp(aOpenDatabaseOp) {
10705 AssertIsOnBackgroundThread();
10706 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"
, 10706); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aOpenDatabaseOp"
")"); do { *((volatile int*)__null) = 10706; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10707}
10708
10709VersionChangeTransaction::~VersionChangeTransaction() {
10710#ifdef DEBUG1
10711 // Silence the base class' destructor assertion if we never made this actor
10712 // live.
10713 FakeActorDestroyed();
10714#endif
10715}
10716
10717bool VersionChangeTransaction::IsSameProcessActor() {
10718 AssertIsOnBackgroundThread();
10719
10720 PBackgroundParent* actor = Manager()->Manager()->Manager();
10721 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"
, 10721); AnnotateMozCrashReason("MOZ_ASSERT" "(" "actor" ")"
); do { *((volatile int*)__null) = 10721; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10722
10723 return !BackgroundParent::IsOtherProcessActor(actor);
10724}
10725
10726void VersionChangeTransaction::SetActorAlive() {
10727 AssertIsOnBackgroundThread();
10728 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"
, 10728); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()"
")"); do { *((volatile int*)__null) = 10728; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10729
10730 mActorWasAlive.Flip();
10731}
10732
10733bool VersionChangeTransaction::CopyDatabaseMetadata() {
10734 AssertIsOnBackgroundThread();
10735 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"
, 10735); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOldMetadata"
")"); do { *((volatile int*)__null) = 10735; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10736
10737 const auto& origMetadata = GetDatabase().Metadata();
10738
10739 SafeRefPtr<FullDatabaseMetadata> newMetadata = origMetadata.Duplicate();
10740 if (NS_WARN_IF(!newMetadata)NS_warn_if_impl(!newMetadata, "!newMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10740)
) {
10741 return false;
10742 }
10743
10744 // Replace the live metadata with the new mutable copy.
10745 DatabaseActorInfo* info;
10746 MOZ_ALWAYS_TRUE(gLiveDatabaseHashtable->Get(origMetadata.mDatabaseId, &info))do { if ((__builtin_expect(!!(gLiveDatabaseHashtable->Get(
origMetadata.mDatabaseId, &info)), 1))) { } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "gLiveDatabaseHashtable->Get(origMetadata.mDatabaseId, &info)"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10746); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "gLiveDatabaseHashtable->Get(origMetadata.mDatabaseId, &info)"
")"); do { *((volatile int*)__null) = 10746; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
10747 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"
, 10747); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mLiveDatabases.IsEmpty()"
")"); do { *((volatile int*)__null) = 10747; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10748 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"
, 10748); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mMetadata == &origMetadata"
")"); do { *((volatile int*)__null) = 10748; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10749
10750 mOldMetadata = std::move(info->mMetadata);
10751 info->mMetadata = std::move(newMetadata);
10752
10753 // Replace metadata pointers for all live databases.
10754 for (const auto& liveDatabase : info->mLiveDatabases) {
10755 liveDatabase->mMetadata = info->mMetadata.clonePtr();
10756 }
10757
10758 return true;
10759}
10760
10761void VersionChangeTransaction::UpdateMetadata(nsresult aResult) {
10762 AssertIsOnBackgroundThread();
10763 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"
, 10763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp"
")"); do { *((volatile int*)__null) = 10763; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10764 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"
, 10764); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!!mActorWasAlive == !!mOpenDatabaseOp->mDatabase"
")"); do { *((volatile int*)__null) = 10764; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10765 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"
, 10765); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOpenDatabaseOp->mDatabaseId.ref().IsEmpty()"
")"); do { *((volatile int*)__null) = 10765; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
10766
10767 if (IsActorDestroyed() || !mActorWasAlive) {
10768 return;
10769 }
10770
10771 SafeRefPtr<FullDatabaseMetadata> oldMetadata = std::move(mOldMetadata);
10772
10773 DatabaseActorInfo* info;
10774 if (!gLiveDatabaseHashtable->Get(oldMetadata->mDatabaseId, &info)) {
10775 return;
10776 }
10777
10778 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"
, 10778); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mLiveDatabases.IsEmpty()"
")"); do { *((volatile int*)__null) = 10778; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10779
10780 if (NS_SUCCEEDED(aResult)((bool)(__builtin_expect(!!(!NS_FAILED_impl(aResult)), 1)))) {
10781 // Remove all deleted objectStores and indexes, then mark immutable.
10782 info->mMetadata->mObjectStores.RemoveIf([](const auto& objectStoreIter) {
10783 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"
, 10783); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreIter.Key()"
")"); do { *((volatile int*)__null) = 10783; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10784 const SafeRefPtr<FullObjectStoreMetadata>& metadata =
10785 objectStoreIter.Data();
10786 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"
, 10786); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 10786; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10787
10788 if (metadata->mDeleted) {
10789 return true;
10790 }
10791
10792 metadata->mIndexes.RemoveIf([](const auto& indexIter) -> bool {
10793 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"
, 10793); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexIter.Key()"
")"); do { *((volatile int*)__null) = 10793; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10794 const SafeRefPtr<FullIndexMetadata>& index = indexIter.Data();
10795 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"
, 10795); AnnotateMozCrashReason("MOZ_ASSERT" "(" "index" ")"
); do { *((volatile int*)__null) = 10795; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
10796
10797 return index->mDeleted;
10798 });
10799 metadata->mIndexes.MarkImmutable();
10800
10801 return false;
10802 });
10803
10804 info->mMetadata->mObjectStores.MarkImmutable();
10805 } else {
10806 // Replace metadata pointers for all live databases.
10807 info->mMetadata = std::move(oldMetadata);
10808
10809 for (auto& liveDatabase : info->mLiveDatabases) {
10810 liveDatabase->mMetadata = info->mMetadata.clonePtr();
10811 }
10812 }
10813}
10814
10815void VersionChangeTransaction::SendCompleteNotification(nsresult aResult) {
10816 AssertIsOnBackgroundThread();
10817 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"
, 10817); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp"
")"); do { *((volatile int*)__null) = 10817; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10818 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"
, 10818); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->HasFailed()"
")"); do { *((volatile int*)__null) = 10818; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
10819 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"
, 10820); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mState > OpenDatabaseOp::State::SendingResults"
")"); do { *((volatile int*)__null) = 10820; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
10820 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"
, 10820); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mState > OpenDatabaseOp::State::SendingResults"
")"); do { *((volatile int*)__null) = 10820; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
10821
10822 const RefPtr<OpenDatabaseOp> openDatabaseOp = std::move(mOpenDatabaseOp);
10823
10824 if (!mActorWasAlive) {
10825 return;
10826 }
10827
10828 if (NS_FAILED(aResult)((bool)(__builtin_expect(!!(NS_FAILED_impl(aResult)), 0)))) {
10829 // 3.3.1 Opening a database:
10830 // "If the upgrade transaction was aborted, run the steps for closing a
10831 // database connection with connection, create and return a new AbortError
10832 // exception and abort these steps."
10833 openDatabaseOp->SetFailureCodeIfUnset(NS_ERROR_DOM_INDEXEDDB_ABORT_ERR);
10834 }
10835
10836 openDatabaseOp->mState = OpenDatabaseOp::State::SendingResults;
10837
10838 if (!IsActorDestroyed()) {
10839 Unused << SendComplete(aResult);
10840 }
10841
10842 MOZ_ALWAYS_SUCCEEDS(openDatabaseOp->Run())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(openDatabaseOp->Run())), 1)))), 1))) { } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "NS_SUCCEEDED(openDatabaseOp->Run())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10842); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(openDatabaseOp->Run())" ")"); do { *(
(volatile int*)__null) = 10842; __attribute__((nomerge)) ::abort
(); } while (false); } } while (false); } } while (false)
;
10843}
10844
10845void VersionChangeTransaction::ActorDestroy(ActorDestroyReason aWhy) {
10846 AssertIsOnBackgroundThread();
10847
10848 NoteActorDestroyed();
10849
10850 if (!mCommittedOrAborted) {
10851 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
10852 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10852, "UnknownErr")
;
10853 mResultCode = NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
10854 }
10855
10856 mForceAborted.EnsureFlipped();
10857
10858 MaybeCommitOrAbort();
10859 }
10860}
10861
10862mozilla::ipc::IPCResult VersionChangeTransaction::RecvDeleteMe() {
10863 AssertIsOnBackgroundThread();
10864 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"
, 10864); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()"
")"); do { *((volatile int*)__null) = 10864; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10865
10866 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"
, 10867, mozilla::dom::quota::Severity::Warning); }}
10867 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"
, 10867, mozilla::dom::quota::Severity::Warning); }}
;
10868
10869 return IPC_OK()mozilla::ipc::IPCResult::Ok();
10870}
10871
10872mozilla::ipc::IPCResult VersionChangeTransaction::RecvCommit(
10873 const Maybe<int64_t>& aLastRequest) {
10874 AssertIsOnBackgroundThread();
10875
10876 return TransactionBase::RecvCommit(this, aLastRequest);
10877}
10878
10879mozilla::ipc::IPCResult VersionChangeTransaction::RecvAbort(
10880 const nsresult& aResultCode) {
10881 AssertIsOnBackgroundThread();
10882
10883 return TransactionBase::RecvAbort(this, aResultCode);
10884}
10885
10886mozilla::ipc::IPCResult VersionChangeTransaction::RecvCreateObjectStore(
10887 const ObjectStoreMetadata& aMetadata) {
10888 AssertIsOnBackgroundThread();
10889
10890 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"
, 10890)
) {
10891 return IPC_FAIL(this, "No metadata ID!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No metadata ID!"
))
;
10892 }
10893
10894 const SafeRefPtr<FullDatabaseMetadata> dbMetadata =
10895 GetDatabase().MetadataPtr();
10896
10897 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"
, 10897)
) {
10898 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!"
))
;
10899 }
10900
10901 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"
, 10904)
10902 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"
, 10904)
10903 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"
, 10904)
10904 .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"
, 10904)
) {
10905 return IPC_FAIL(this, "MatchMetadataNameOrId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("MatchMetadataNameOrId failed!"
))
;
10906 }
10907
10908 if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10908)
) {
10909 return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!"
))
;
10910 }
10911
10912 const int64_t initialAutoIncrementId = aMetadata.autoIncrement() ? 1 : 0;
10913 auto newMetadata = MakeSafeRefPtr<FullObjectStoreMetadata>(
10914 aMetadata, FullObjectStoreMetadata::AutoIncrementIds{
10915 initialAutoIncrementId, initialAutoIncrementId});
10916
10917 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"
, 10918)
10918 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"
, 10918)
) {
10919 return IPC_FAIL(this, "mObjectStores.InsertOrUpdate failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("mObjectStores.InsertOrUpdate failed!"
))
;
10920 }
10921
10922 dbMetadata->mNextObjectStoreId++;
10923
10924 RefPtr<CreateObjectStoreOp> op = new CreateObjectStoreOp(
10925 SafeRefPtrFromThis().downcast<VersionChangeTransaction>(), aMetadata);
10926
10927 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"
, 10927)
) {
10928 op->Cleanup();
10929 return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!"
))
;
10930 }
10931
10932 op->DispatchToConnectionPool();
10933
10934 return IPC_OK()mozilla::ipc::IPCResult::Ok();
10935}
10936
10937mozilla::ipc::IPCResult VersionChangeTransaction::RecvDeleteObjectStore(
10938 const IndexOrObjectStoreId& aObjectStoreId) {
10939 AssertIsOnBackgroundThread();
10940
10941 if (NS_WARN_IF(!aObjectStoreId)NS_warn_if_impl(!aObjectStoreId, "!aObjectStoreId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10941)
) {
10942 return IPC_FAIL(this, "No ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No ObjectStoreId!"
))
;
10943 }
10944
10945 const auto& dbMetadata = GetDatabase().Metadata();
10946 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"
, 10946); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata.mNextObjectStoreId > 0"
")"); do { *((volatile int*)__null) = 10946; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10947
10948 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"
, 10948)
) {
10949 return IPC_FAIL(this, "Invalid ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Invalid ObjectStoreId!"
))
;
10950 }
10951
10952 SafeRefPtr<FullObjectStoreMetadata> foundMetadata =
10953 GetMetadataForObjectStoreId(aObjectStoreId);
10954
10955 if (NS_WARN_IF(!foundMetadata)NS_warn_if_impl(!foundMetadata, "!foundMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10955)
) {
10956 return IPC_FAIL(this, "No metadata found for ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No metadata found for ObjectStoreId!"
))
;
10957 }
10958
10959 if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10959)
) {
10960 return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!"
))
;
10961 }
10962
10963 foundMetadata->mDeleted.Flip();
10964
10965 DebugOnly<bool> foundTargetId = false;
10966 const bool isLastObjectStore = std::all_of(
10967 dbMetadata.mObjectStores.begin(), dbMetadata.mObjectStores.end(),
10968 [&foundTargetId, aObjectStoreId](const auto& objectStoreEntry) -> bool {
10969 if (uint64_t(aObjectStoreId) == objectStoreEntry.GetKey()) {
10970 foundTargetId = true;
10971 return true;
10972 }
10973
10974 return objectStoreEntry.GetData()->mDeleted;
10975 });
10976 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"
, 10976); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundTargetId"
")"); do { *((volatile int*)__null) = 10976; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
10977
10978 RefPtr<DeleteObjectStoreOp> op = new DeleteObjectStoreOp(
10979 SafeRefPtrFromThis().downcast<VersionChangeTransaction>(),
10980 std::move(foundMetadata), isLastObjectStore);
10981
10982 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"
, 10982)
) {
10983 op->Cleanup();
10984 return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!"
))
;
10985 }
10986
10987 op->DispatchToConnectionPool();
10988
10989 return IPC_OK()mozilla::ipc::IPCResult::Ok();
10990}
10991
10992mozilla::ipc::IPCResult VersionChangeTransaction::RecvRenameObjectStore(
10993 const IndexOrObjectStoreId& aObjectStoreId, const nsAString& aName) {
10994 AssertIsOnBackgroundThread();
10995
10996 if (NS_WARN_IF(!aObjectStoreId)NS_warn_if_impl(!aObjectStoreId, "!aObjectStoreId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 10996)
) {
10997 return IPC_FAIL(this, "No ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No ObjectStoreId!"
))
;
10998 }
10999
11000 {
11001 const auto& dbMetadata = GetDatabase().Metadata();
11002 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"
, 11002); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata.mNextObjectStoreId > 0"
")"); do { *((volatile int*)__null) = 11002; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11003
11004 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"
, 11004)
) {
11005 return IPC_FAIL(this, "Invalid ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Invalid ObjectStoreId!"
))
;
11006 }
11007 }
11008
11009 SafeRefPtr<FullObjectStoreMetadata> foundMetadata =
11010 GetMetadataForObjectStoreId(aObjectStoreId);
11011
11012 if (NS_WARN_IF(!foundMetadata)NS_warn_if_impl(!foundMetadata, "!foundMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11012)
) {
11013 return IPC_FAIL(this, "No metadata found for ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No metadata found for ObjectStoreId!"
))
;
11014 }
11015
11016 if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11016)
) {
11017 return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!"
))
;
11018 }
11019
11020 foundMetadata->mCommonMetadata.name() = aName;
11021
11022 RefPtr<RenameObjectStoreOp> renameOp = new RenameObjectStoreOp(
11023 SafeRefPtrFromThis().downcast<VersionChangeTransaction>(),
11024 *foundMetadata);
11025
11026 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"
, 11026)
) {
11027 renameOp->Cleanup();
11028 return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!"
))
;
11029 }
11030
11031 renameOp->DispatchToConnectionPool();
11032
11033 return IPC_OK()mozilla::ipc::IPCResult::Ok();
11034}
11035
11036mozilla::ipc::IPCResult VersionChangeTransaction::RecvCreateIndex(
11037 const IndexOrObjectStoreId& aObjectStoreId,
11038 const IndexMetadata& aMetadata) {
11039 AssertIsOnBackgroundThread();
11040
11041 if (NS_WARN_IF(!aObjectStoreId)NS_warn_if_impl(!aObjectStoreId, "!aObjectStoreId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11041)
) {
11042 return IPC_FAIL(this, "No ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No ObjectStoreId!"
))
;
11043 }
11044
11045 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"
, 11045)
) {
11046 return IPC_FAIL(this, "No Metadata id!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No Metadata id!"
))
;
11047 }
11048
11049 const auto dbMetadata = GetDatabase().MetadataPtr();
11050
11051 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"
, 11051)
) {
11052 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!"
))
;
11053 }
11054
11055 SafeRefPtr<FullObjectStoreMetadata> foundObjectStoreMetadata =
11056 GetMetadataForObjectStoreId(aObjectStoreId);
11057
11058 if (NS_WARN_IF(!foundObjectStoreMetadata)NS_warn_if_impl(!foundObjectStoreMetadata, "!foundObjectStoreMetadata"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11058)
) {
11059 return IPC_FAIL(this, "GetMetadataForObjectStoreId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("GetMetadataForObjectStoreId failed!"
))
;
11060 }
11061
11062 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"
, 11065)
11063 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"
, 11065)
11064 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"
, 11065)
11065 .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"
, 11065)
) {
11066 return IPC_FAIL(this, "MatchMetadataNameOrId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("MatchMetadataNameOrId failed!"
))
;
11067 }
11068
11069 if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11069)
) {
11070 return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!"
))
;
11071 }
11072
11073 auto newMetadata = MakeSafeRefPtr<FullIndexMetadata>();
11074 newMetadata->mCommonMetadata = aMetadata;
11075
11076 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"
, 11077)
11077 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"
, 11077)
) {
11078 return IPC_FAIL(this, "mIndexes.InsertOrUpdate failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("mIndexes.InsertOrUpdate failed!"
))
;
11079 }
11080
11081 dbMetadata->mNextIndexId++;
11082
11083 RefPtr<CreateIndexOp> op = new CreateIndexOp(
11084 SafeRefPtrFromThis().downcast<VersionChangeTransaction>(), aObjectStoreId,
11085 aMetadata);
11086
11087 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"
, 11087)
) {
11088 op->Cleanup();
11089 return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!"
))
;
11090 }
11091
11092 op->DispatchToConnectionPool();
11093
11094 return IPC_OK()mozilla::ipc::IPCResult::Ok();
11095}
11096
11097mozilla::ipc::IPCResult VersionChangeTransaction::RecvDeleteIndex(
11098 const IndexOrObjectStoreId& aObjectStoreId,
11099 const IndexOrObjectStoreId& aIndexId) {
11100 AssertIsOnBackgroundThread();
11101
11102 if (NS_WARN_IF(!aObjectStoreId)NS_warn_if_impl(!aObjectStoreId, "!aObjectStoreId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11102)
) {
11103 return IPC_FAIL(this, "No ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No ObjectStoreId!"
))
;
11104 }
11105
11106 if (NS_WARN_IF(!aIndexId)NS_warn_if_impl(!aIndexId, "!aIndexId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11106)
) {
11107 return IPC_FAIL(this, "No Index id!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No Index id!"
))
;
11108 }
11109 {
11110 const auto& dbMetadata = GetDatabase().Metadata();
11111 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"
, 11111); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata.mNextObjectStoreId > 0"
")"); do { *((volatile int*)__null) = 11111; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11112 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"
, 11112); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata.mNextIndexId > 0"
")"); do { *((volatile int*)__null) = 11112; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11113
11114 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"
, 11114)
) {
11115 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!"
))
;
11116 }
11117
11118 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"
, 11118)
) {
11119 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!"
))
;
11120 }
11121 }
11122
11123 SafeRefPtr<FullObjectStoreMetadata> foundObjectStoreMetadata =
11124 GetMetadataForObjectStoreId(aObjectStoreId);
11125
11126 if (NS_WARN_IF(!foundObjectStoreMetadata)NS_warn_if_impl(!foundObjectStoreMetadata, "!foundObjectStoreMetadata"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11126)
) {
11127 return IPC_FAIL(this, "GetMetadataForObjectStoreId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("GetMetadataForObjectStoreId failed!"
))
;
11128 }
11129
11130 SafeRefPtr<FullIndexMetadata> foundIndexMetadata =
11131 GetMetadataForIndexId(*foundObjectStoreMetadata, aIndexId);
11132
11133 if (NS_WARN_IF(!foundIndexMetadata)NS_warn_if_impl(!foundIndexMetadata, "!foundIndexMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11133)
) {
11134 return IPC_FAIL(this, "GetMetadataForIndexId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("GetMetadataForIndexId failed!"
))
;
11135 }
11136
11137 if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11137)
) {
11138 return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!"
))
;
11139 }
11140
11141 foundIndexMetadata->mDeleted.Flip();
11142
11143 DebugOnly<bool> foundTargetId = false;
11144 const bool isLastIndex =
11145 std::all_of(foundObjectStoreMetadata->mIndexes.cbegin(),
11146 foundObjectStoreMetadata->mIndexes.cend(),
11147 [&foundTargetId, aIndexId](const auto& indexEntry) -> bool {
11148 if (uint64_t(aIndexId) == indexEntry.GetKey()) {
11149 foundTargetId = true;
11150 return true;
11151 }
11152
11153 return indexEntry.GetData()->mDeleted;
11154 });
11155 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"
, 11155); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundTargetId"
")"); do { *((volatile int*)__null) = 11155; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
11156
11157 RefPtr<DeleteIndexOp> op = new DeleteIndexOp(
11158 SafeRefPtrFromThis().downcast<VersionChangeTransaction>(), aObjectStoreId,
11159 aIndexId, foundIndexMetadata->mCommonMetadata.unique(), isLastIndex);
11160
11161 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"
, 11161)
) {
11162 op->Cleanup();
11163 return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!"
))
;
11164 }
11165
11166 op->DispatchToConnectionPool();
11167
11168 return IPC_OK()mozilla::ipc::IPCResult::Ok();
11169}
11170
11171mozilla::ipc::IPCResult VersionChangeTransaction::RecvRenameIndex(
11172 const IndexOrObjectStoreId& aObjectStoreId,
11173 const IndexOrObjectStoreId& aIndexId, const nsAString& aName) {
11174 AssertIsOnBackgroundThread();
11175
11176 if (NS_WARN_IF(!aObjectStoreId)NS_warn_if_impl(!aObjectStoreId, "!aObjectStoreId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11176)
) {
11177 return IPC_FAIL(this, "No ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No ObjectStoreId!"
))
;
11178 }
11179
11180 if (NS_WARN_IF(!aIndexId)NS_warn_if_impl(!aIndexId, "!aIndexId", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11180)
) {
11181 return IPC_FAIL(this, "No Index id!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No Index id!"
))
;
11182 }
11183
11184 const SafeRefPtr<FullDatabaseMetadata> dbMetadata =
11185 GetDatabase().MetadataPtr();
11186 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"
, 11186); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata"
")"); do { *((volatile int*)__null) = 11186; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11187 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"
, 11187); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata->mNextObjectStoreId > 0"
")"); do { *((volatile int*)__null) = 11187; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11188 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"
, 11188); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata->mNextIndexId > 0"
")"); do { *((volatile int*)__null) = 11188; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11189
11190 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"
, 11190)
) {
11191 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!"
))
;
11192 }
11193
11194 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"
, 11194)
) {
11195 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!"
))
;
11196 }
11197
11198 SafeRefPtr<FullObjectStoreMetadata> foundObjectStoreMetadata =
11199 GetMetadataForObjectStoreId(aObjectStoreId);
11200
11201 if (NS_WARN_IF(!foundObjectStoreMetadata)NS_warn_if_impl(!foundObjectStoreMetadata, "!foundObjectStoreMetadata"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11201)
) {
11202 return IPC_FAIL(this, "GetMetadataForObjectStoreId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("GetMetadataForObjectStoreId failed!"
))
;
11203 }
11204
11205 SafeRefPtr<FullIndexMetadata> foundIndexMetadata =
11206 GetMetadataForIndexId(*foundObjectStoreMetadata, aIndexId);
11207
11208 if (NS_WARN_IF(!foundIndexMetadata)NS_warn_if_impl(!foundIndexMetadata, "!foundIndexMetadata", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11208)
) {
11209 return IPC_FAIL(this, "GetMetadataForIndexId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("GetMetadataForIndexId failed!"
))
;
11210 }
11211
11212 if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11212)
) {
11213 return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!"
))
;
11214 }
11215
11216 foundIndexMetadata->mCommonMetadata.name() = aName;
11217
11218 RefPtr<RenameIndexOp> renameOp = new RenameIndexOp(
11219 SafeRefPtrFromThis().downcast<VersionChangeTransaction>(),
11220 *foundIndexMetadata, aObjectStoreId);
11221
11222 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"
, 11222)
) {
11223 renameOp->Cleanup();
11224 return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!"
))
;
11225 }
11226
11227 renameOp->DispatchToConnectionPool();
11228
11229 return IPC_OK()mozilla::ipc::IPCResult::Ok();
11230}
11231
11232PBackgroundIDBRequestParent*
11233VersionChangeTransaction::AllocPBackgroundIDBRequestParent(
11234 const int64_t& aRequestId, const RequestParams& aParams) {
11235 AssertIsOnBackgroundThread();
11236 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"
, 11236); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None"
")"); do { *((volatile int*)__null) = 11236; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11237
11238 return AllocRequest(aRequestId,
11239 std::move(const_cast<RequestParams&>(aParams)),
11240 IsSameProcessActor());
11241}
11242
11243mozilla::ipc::IPCResult
11244VersionChangeTransaction::RecvPBackgroundIDBRequestConstructor(
11245 PBackgroundIDBRequestParent* aActor, const int64_t& aRequestId,
11246 const RequestParams& aParams) {
11247 AssertIsOnBackgroundThread();
11248 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"
, 11248); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { *((volatile int*)__null) = 11248; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
11249 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"
, 11249); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None"
")"); do { *((volatile int*)__null) = 11249; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11250
11251 if (!StartRequest(aActor)) {
11252 return IPC_FAIL(this, "StartRequest failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("StartRequest failed!"
))
;
11253 }
11254 return IPC_OK()mozilla::ipc::IPCResult::Ok();
11255}
11256
11257bool VersionChangeTransaction::DeallocPBackgroundIDBRequestParent(
11258 PBackgroundIDBRequestParent* aActor) {
11259 AssertIsOnBackgroundThread();
11260 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"
, 11260); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { *((volatile int*)__null) = 11260; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
11261
11262 return DeallocRequest(aActor);
11263}
11264
11265already_AddRefed<PBackgroundIDBCursorParent>
11266VersionChangeTransaction::AllocPBackgroundIDBCursorParent(
11267 const int64_t& aRequestId, const OpenCursorParams& aParams) {
11268 AssertIsOnBackgroundThread();
11269
11270 return AllocCursor(aParams, IsSameProcessActor());
11271}
11272
11273mozilla::ipc::IPCResult
11274VersionChangeTransaction::RecvPBackgroundIDBCursorConstructor(
11275 PBackgroundIDBCursorParent* aActor, const int64_t& aRequestId,
11276 const OpenCursorParams& aParams) {
11277 AssertIsOnBackgroundThread();
11278 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"
, 11278); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")"
); do { *((volatile int*)__null) = 11278; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
11279 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"
, 11279); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != OpenCursorParams::T__None"
")"); do { *((volatile int*)__null) = 11279; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11280
11281 if (!StartCursor(aActor, aRequestId, aParams)) {
11282 return IPC_FAIL(this, "StartCursor failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("StartCursor failed!"
))
;
11283 }
11284 return IPC_OK()mozilla::ipc::IPCResult::Ok();
11285}
11286
11287/*******************************************************************************
11288 * CursorBase
11289 ******************************************************************************/
11290
11291CursorBase::CursorBase(SafeRefPtr<TransactionBase> aTransaction,
11292 SafeRefPtr<FullObjectStoreMetadata> aObjectStoreMetadata,
11293 const Direction aDirection,
11294 const ConstructFromTransactionBase /*aConstructionTag*/)
11295 : mTransaction(std::move(aTransaction)),
11296 mObjectStoreMetadata(WrapNotNull(std::move(aObjectStoreMetadata))),
11297 mObjectStoreId((*mObjectStoreMetadata)->mCommonMetadata.id()),
11298 mDirection(aDirection),
11299 mMaxExtraCount(IndexedDatabaseManager::MaxPreloadExtraRecords()),
11300 mIsSameProcessActor(!BackgroundParent::IsOtherProcessActor(
11301 mTransaction->GetBackgroundParent())) {
11302 AssertIsOnBackgroundThread();
11303 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"
, 11303); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction"
")"); do { *((volatile int*)__null) = 11303; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11304
11305 static_assert(
11306 OpenCursorParams::T__None == 0 && OpenCursorParams::T__Last == 4,
11307 "Lots of code here assumes only four types of cursors!");
11308}
11309
11310template <IDBCursorType CursorType>
11311bool Cursor<CursorType>::VerifyRequestParams(
11312 const CursorRequestParams& aParams,
11313 const CursorPosition<CursorType>& aPosition) const {
11314 AssertIsOnBackgroundThread();
11315 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"
, 11315); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != CursorRequestParams::T__None"
")"); do { *((volatile int*)__null) = 11315; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11316 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"
, 11316); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mObjectStoreMetadata"
")"); do { *((volatile int*)__null) = 11316; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11317 if constexpr (IsIndexCursor) {
11318 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"
, 11318); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mIndexMetadata"
")"); do { *((volatile int*)__null) = 11318; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11319 }
11320
11321#ifdef DEBUG1
11322 {
11323 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
11324 mTransaction->GetMetadataForObjectStoreId(mObjectStoreId);
11325 if (objectStoreMetadata) {
11326 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"
, 11326); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreMetadata == (*this->mObjectStoreMetadata)"
")"); do { *((volatile int*)__null) = 11326; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11327 } else {
11328 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"
, 11328); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*this->mObjectStoreMetadata)->mDeleted"
")"); do { *((volatile int*)__null) = 11328; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11329 }
11330
11331 if constexpr (IsIndexCursor) {
11332 if (objectStoreMetadata) {
11333 const SafeRefPtr<FullIndexMetadata> indexMetadata =
11334 mTransaction->GetMetadataForIndexId(*objectStoreMetadata,
11335 this->mIndexId);
11336 if (indexMetadata) {
11337 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"
, 11337); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata == *this->mIndexMetadata"
")"); do { *((volatile int*)__null) = 11337; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11338 } else {
11339 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"
, 11339); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*this->mIndexMetadata)->mDeleted"
")"); do { *((volatile int*)__null) = 11339; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11340 }
11341 }
11342 }
11343 }
11344#endif
11345
11346 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"
, 11346); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"(*this->mObjectStoreMetadata)->mDeleted" ")"); do { *
((volatile int*)__null) = 11346; __attribute__((nomerge)) ::abort
(); } while (false); } } while (false); } return aCond; }(((*
this->mObjectStoreMetadata)->mDeleted))
) {
11347 return false;
11348 }
11349
11350 if constexpr (IsIndexCursor) {
11351 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"
, 11352); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"this->mIndexMetadata && (*this->mIndexMetadata)->mDeleted"
")"); do { *((volatile int*)__null) = 11352; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((this->mIndexMetadata && (*this->mIndexMetadata
)->mDeleted))
11352 (*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"
, 11352); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"this->mIndexMetadata && (*this->mIndexMetadata)->mDeleted"
")"); do { *((volatile int*)__null) = 11352; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((this->mIndexMetadata && (*this->mIndexMetadata
)->mDeleted))
) {
11353 return false;
11354 }
11355 }
11356
11357 const Key& sortKey = aPosition.GetSortKey(this->IsLocaleAware());
11358
11359 switch (aParams.type()) {
11360 case CursorRequestParams::TContinueParams: {
11361 const Key& key = aParams.get_ContinueParams().key();
11362 if (!key.IsUnset()) {
11363 switch (mDirection) {
11364 case IDBCursorDirection::Next:
11365 case IDBCursorDirection::Nextunique:
11366 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"
, 11366); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"key <= sortKey" ")"); do { *((volatile int*)__null) = 11366
; __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((key <= sortKey))
) {
11367 return false;
11368 }
11369 break;
11370
11371 case IDBCursorDirection::Prev:
11372 case IDBCursorDirection::Prevunique:
11373 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"
, 11373); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"key >= sortKey" ")"); do { *((volatile int*)__null) = 11373
; __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((key >= sortKey))
) {
11374 return false;
11375 }
11376 break;
11377
11378 default:
11379 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"
, 11379); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 11379; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
11380 }
11381 }
11382 break;
11383 }
11384
11385 case CursorRequestParams::TContinuePrimaryKeyParams: {
11386 if constexpr (IsIndexCursor) {
11387 const Key& key = aParams.get_ContinuePrimaryKeyParams().key();
11388 const Key& primaryKey =
11389 aParams.get_ContinuePrimaryKeyParams().primaryKey();
11390 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"
, 11390); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!key.IsUnset()"
")"); do { *((volatile int*)__null) = 11390; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11391 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"
, 11391); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!primaryKey.IsUnset()"
")"); do { *((volatile int*)__null) = 11391; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11392 switch (mDirection) {
11393 case IDBCursorDirection::Next:
11394 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"
, 11396); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey)"
")"); do { *((volatile int*)__null) = 11396; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((key < sortKey || (key == sortKey && primaryKey
<= aPosition.mObjectStoreKey)))
11395 (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"
, 11396); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey)"
")"); do { *((volatile int*)__null) = 11396; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((key < sortKey || (key == sortKey && primaryKey
<= aPosition.mObjectStoreKey)))
11396 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"
, 11396); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey)"
")"); do { *((volatile int*)__null) = 11396; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((key < sortKey || (key == sortKey && primaryKey
<= aPosition.mObjectStoreKey)))
) {
11397 return false;
11398 }
11399 break;
11400
11401 case IDBCursorDirection::Prev:
11402 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"
, 11404); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey)"
")"); do { *((volatile int*)__null) = 11404; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((key > sortKey || (key == sortKey && primaryKey
>= aPosition.mObjectStoreKey)))
11403 (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"
, 11404); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey)"
")"); do { *((volatile int*)__null) = 11404; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((key > sortKey || (key == sortKey && primaryKey
>= aPosition.mObjectStoreKey)))
11404 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"
, 11404); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey)"
")"); do { *((volatile int*)__null) = 11404; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } return
aCond; }((key > sortKey || (key == sortKey && primaryKey
>= aPosition.mObjectStoreKey)))
) {
11405 return false;
11406 }
11407 break;
11408
11409 default:
11410 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"
, 11410); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 11410; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
11411 }
11412 }
11413 break;
11414 }
11415
11416 case CursorRequestParams::TAdvanceParams:
11417 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"
, 11417); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!aParams.get_AdvanceParams().count()" ")"); do { *((volatile
int*)__null) = 11417; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); } return aCond; }((!aParams.get_AdvanceParams
().count()))
) {
11418 return false;
11419 }
11420 break;
11421
11422 default:
11423 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"
, 11423); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 11423; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
11424 }
11425
11426 return true;
11427}
11428
11429template <IDBCursorType CursorType>
11430bool Cursor<CursorType>::Start(const int64_t aRequestId,
11431 const OpenCursorParams& aParams) {
11432 AssertIsOnBackgroundThread();
11433 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"
, 11433); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == ToOpenCursorParamsType(CursorType)"
")"); do { *((volatile int*)__null) = 11433; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11434 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"
, 11434); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mObjectStoreMetadata"
")"); do { *((volatile int*)__null) = 11434; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11435
11436 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"
, 11436); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"mCurrentlyRunningOp" ")"); do { *((volatile int*)__null) = 11436
; __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } return aCond; }((mCurrentlyRunningOp))
) {
11437 return false;
11438 }
11439
11440 const Maybe<SerializedKeyRange>& optionalKeyRange =
11441 GetCommonOpenCursorParams(aParams).optionalKeyRange();
11442
11443 const RefPtr<OpenOp> openOp = new OpenOp(this, aRequestId, optionalKeyRange);
11444
11445 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"
, 11445)
) {
11446 openOp->Cleanup();
11447 return false;
11448 }
11449
11450 openOp->DispatchToConnectionPool();
11451 mCurrentlyRunningOp = openOp;
11452
11453 return true;
11454}
11455
11456void ValueCursorBase::ProcessFiles(CursorResponse& aResponse,
11457 const FilesArray& aFiles) {
11458 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"
, 11464); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()"
")"); do { *((volatile int*)__null) = 11464; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
11459 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"
, 11464); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()"
")"); do { *((volatile int*)__null) = 11464; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
11460 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"
, 11464); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()"
")"); do { *((volatile int*)__null) = 11464; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
11461 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"
, 11464); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()"
")"); do { *((volatile int*)__null) = 11464; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
11462 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"
, 11464); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()"
")"); do { *((volatile int*)__null) = 11464; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
11463 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"
, 11464); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()"
")"); do { *((volatile int*)__null) = 11464; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
11464 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"
, 11464); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()"
")"); do { *((volatile int*)__null) = 11464; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
11465
11466 for (size_t i = 0; i < aFiles.Length(); ++i) {
11467 const auto& files = aFiles[i];
11468 if (!files.IsEmpty()) {
11469 // TODO: Replace this assertion by one that checks if the response type
11470 // matches the cursor type, at a more generic location.
11471 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"
, 11474); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse"
")"); do { *((volatile int*)__null) = 11474; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
11472 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"
, 11474); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse"
")"); do { *((volatile int*)__null) = 11474; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
11473 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"
, 11474); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse"
")"); do { *((volatile int*)__null) = 11474; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
11474 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"
, 11474); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse"
")"); do { *((volatile int*)__null) = 11474; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11475
11476 SerializedStructuredCloneReadInfo* serializedInfo = nullptr;
11477 switch (aResponse.type()) {
11478 case CursorResponse::TArrayOfObjectStoreCursorResponse: {
11479 auto& responses = aResponse.get_ArrayOfObjectStoreCursorResponse();
11480 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"
, 11480); AnnotateMozCrashReason("MOZ_ASSERT" "(" "i < responses.Length()"
")"); do { *((volatile int*)__null) = 11480; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11481 serializedInfo = &responses[i].cloneInfo();
11482 break;
11483 }
11484
11485 case CursorResponse::TArrayOfIndexCursorResponse: {
11486 auto& responses = aResponse.get_ArrayOfIndexCursorResponse();
11487 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"
, 11487); AnnotateMozCrashReason("MOZ_ASSERT" "(" "i < responses.Length()"
")"); do { *((volatile int*)__null) = 11487; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11488 serializedInfo = &responses[i].cloneInfo();
11489 break;
11490 }
11491
11492 default:
11493 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"
, 11493); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 11493; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
11494 }
11495
11496 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"
, 11496); AnnotateMozCrashReason("MOZ_ASSERT" "(" "serializedInfo"
")"); do { *((volatile int*)__null) = 11496; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11497 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"
, 11497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "serializedInfo->files().IsEmpty()"
")"); do { *((volatile int*)__null) = 11497; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11498 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"
, 11498); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mDatabase"
")"); do { *((volatile int*)__null) = 11498; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11499
11500 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"
, 11505, 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();
11501 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"
, 11505, 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();
11502 /* 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"
, 11505, 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();
11503 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"
, 11505, 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();
11504 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"
, 11505, 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();
11505 })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"
, 11505, 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();
;
11506 }
11507 }
11508}
11509
11510template <IDBCursorType CursorType>
11511void Cursor<CursorType>::SendResponseInternal(
11512 CursorResponse& aResponse, const FilesArrayT<CursorType>& aFiles) {
11513 AssertIsOnBackgroundThread();
11514 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"
, 11514); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResponse.type() != CursorResponse::T__None"
")"); do { *((volatile int*)__null) = 11514; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11515 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"
, 11516); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aResponse.get_nsresult())), 0)))"
")"); do { *((volatile int*)__null) = 11516; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
11516 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"
, 11516); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aResponse.get_nsresult())), 0)))"
")"); do { *((volatile int*)__null) = 11516; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
11517 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"
, 11519); AnnotateMozCrashReason("MOZ_ASSERT" "(" "NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33"
")"); do { *((volatile int*)__null) = 11519; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
11518 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"
, 11519); AnnotateMozCrashReason("MOZ_ASSERT" "(" "NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33"
")"); do { *((volatile int*)__null) = 11519; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
11519 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"
, 11519); AnnotateMozCrashReason("MOZ_ASSERT" "(" "NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33"
")"); do { *((volatile int*)__null) = 11519; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
11520 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"
, 11520); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mObjectStoreMetadata"
")"); do { *((volatile int*)__null) = 11520; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11521 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"
, 11521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCurrentlyRunningOp"
")"); do { *((volatile int*)__null) = 11521; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11522
11523 KeyValueBase::ProcessFiles(aResponse, aFiles);
11524
11525 // Work around the deleted function by casting to the base class.
11526 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"
, 11527, mozilla::dom::quota::Severity::Warning); }}
11527 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"
, 11527, mozilla::dom::quota::Severity::Warning); }}
;
11528
11529 mCurrentlyRunningOp = nullptr;
11530}
11531
11532template <IDBCursorType CursorType>
11533void Cursor<CursorType>::ActorDestroy(ActorDestroyReason aWhy) {
11534 AssertIsOnBackgroundThread();
11535
11536 if (mCurrentlyRunningOp) {
11537 mCurrentlyRunningOp->NoteActorDestroyed();
11538 }
11539
11540 if constexpr (IsValueCursor) {
11541 this->mBackgroundParent.destroy();
11542 }
11543 this->mObjectStoreMetadata.destroy();
11544 if constexpr (IsIndexCursor) {
11545 this->mIndexMetadata.destroy();
11546 }
11547}
11548
11549template <IDBCursorType CursorType>
11550mozilla::ipc::IPCResult Cursor<CursorType>::RecvDeleteMe() {
11551 AssertIsOnBackgroundThread();
11552 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"
, 11552); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mObjectStoreMetadata"
")"); do { *((volatile int*)__null) = 11552; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11553
11554 if (NS_WARN_IF(mCurrentlyRunningOp)NS_warn_if_impl(mCurrentlyRunningOp, "mCurrentlyRunningOp", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11554)
) {
11555 return IPC_FAIL(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Attempt to delete a cursor with a non-null mCurrentlyRunningOp!"
))
11556 this,mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Attempt to delete a cursor with a non-null mCurrentlyRunningOp!"
))
11557 "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!"
))
;
11558 }
11559
11560 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"
, 11560, mozilla::dom::quota::Severity::Warning); }}
;
11561
11562 return IPC_OK()mozilla::ipc::IPCResult::Ok();
11563}
11564
11565template <IDBCursorType CursorType>
11566mozilla::ipc::IPCResult Cursor<CursorType>::RecvContinue(
11567 const int64_t& aRequestId, const CursorRequestParams& aParams,
11568 const Key& aCurrentKey, const Key& aCurrentObjectStoreKey) {
11569 AssertIsOnBackgroundThread();
11570 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"
, 11570); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != CursorRequestParams::T__None"
")"); do { *((volatile int*)__null) = 11570; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11571 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"
, 11571); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mObjectStoreMetadata"
")"); do { *((volatile int*)__null) = 11571; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11572 if constexpr (IsIndexCursor) {
11573 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"
, 11573); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mIndexMetadata"
")"); do { *((volatile int*)__null) = 11573; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11574 }
11575
11576 const bool trustParams =
11577#ifdef DEBUG1
11578 // Always verify parameters in DEBUG builds!
11579 false
11580#else
11581 this->mIsSameProcessActor
11582#endif
11583 ;
11584
11585 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"
, 11585); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aCurrentKey.IsUnset()"
")"); do { *((volatile int*)__null) = 11585; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11586
11587 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"
, 11596, 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\", 11596, 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"
, 11603, mozilla::dom::quota::Severity::Error); return tryResult985
.propagateErr(); } auto position = tryResult985.unwrap();
11588 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"
, 11596, 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\", 11596, 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"
, 11603, mozilla::dom::quota::Severity::Error); return tryResult985
.propagateErr(); } auto position = tryResult985.unwrap();
11589 ([&]() -> 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"
, 11596, 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\", 11596, 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"
, 11603, mozilla::dom::quota::Severity::Error); return tryResult985
.propagateErr(); } auto position = tryResult985.unwrap();
11590 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"
, 11596, 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\", 11596, 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"
, 11603, mozilla::dom::quota::Severity::Error); return tryResult985
.propagateErr(); } auto position = tryResult985.unwrap();
11591 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"
, 11596, 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\", 11596, 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"
, 11603, mozilla::dom::quota::Severity::Error); return tryResult985
.propagateErr(); } auto position = tryResult985.unwrap();
11592 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"
, 11596, 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\", 11596, 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"
, 11603, mozilla::dom::quota::Severity::Error); return tryResult985
.propagateErr(); } auto position = tryResult985.unwrap();
11593 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"
, 11596, 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\", 11596, 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"
, 11603, mozilla::dom::quota::Severity::Error); return tryResult985
.propagateErr(); } auto position = tryResult985.unwrap();
11594 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"
, 11596, 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\", 11596, 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"
, 11603, mozilla::dom::quota::Severity::Error); return tryResult985
.propagateErr(); } auto position = tryResult985.unwrap();
11595 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"
, 11596, 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\", 11596, 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"
, 11603, mozilla::dom::quota::Severity::Error); return tryResult985
.propagateErr(); } auto position = tryResult985.unwrap();
11596 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"
, 11596, 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\", 11596, 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"
, 11603, mozilla::dom::quota::Severity::Error); return tryResult985
.propagateErr(); } auto position = tryResult985.unwrap();
11597 }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"
, 11596, 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\", 11596, 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"
, 11603, mozilla::dom::quota::Severity::Error); return tryResult985
.propagateErr(); } auto position = tryResult985.unwrap();
11598 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"
, 11596, 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\", 11596, 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"
, 11603, mozilla::dom::quota::Severity::Error); return tryResult985
.propagateErr(); } auto position = tryResult985.unwrap();
11599 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"
, 11596, 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\", 11596, 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"
, 11603, mozilla::dom::quota::Severity::Error); return tryResult985
.propagateErr(); } auto position = tryResult985.unwrap();
11600 } 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"
, 11596, 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\", 11596, 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"
, 11603, mozilla::dom::quota::Severity::Error); return tryResult985
.propagateErr(); } auto position = tryResult985.unwrap();
11601 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"
, 11596, 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\", 11596, 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"
, 11603, mozilla::dom::quota::Severity::Error); return tryResult985
.propagateErr(); } auto position = tryResult985.unwrap();
11602 }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"
, 11596, 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\", 11596, 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"
, 11603, mozilla::dom::quota::Severity::Error); return tryResult985
.propagateErr(); } auto position = tryResult985.unwrap();
11603 }()))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"
, 11596, 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\", 11596, 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"
, 11603, mozilla::dom::quota::Severity::Error); return tryResult985
.propagateErr(); } auto position = tryResult985.unwrap();
;
11604
11605 if (!trustParams && !VerifyRequestParams(aParams, position)) {
11606 return IPC_FAIL(this, "VerifyRequestParams failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("VerifyRequestParams failed!"
))
;
11607 }
11608
11609 if (NS_WARN_IF(mCurrentlyRunningOp)NS_warn_if_impl(mCurrentlyRunningOp, "mCurrentlyRunningOp", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11609)
) {
11610 return IPC_FAIL(this, "Cursor is CurrentlyRunningOp!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Cursor is CurrentlyRunningOp!"
))
;
11611 }
11612
11613 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"
, 11613)
) {
11614 return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!"
))
;
11615 }
11616
11617 const RefPtr<ContinueOp> continueOp =
11618 new ContinueOp(this, aRequestId, aParams, std::move(position));
11619 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"
, 11619)
) {
11620 continueOp->Cleanup();
11621 return IPC_FAIL(this, "ContinueOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ContinueOp initialization failed!"
))
;
11622 }
11623
11624 continueOp->DispatchToConnectionPool();
11625 mCurrentlyRunningOp = continueOp;
11626
11627 return IPC_OK()mozilla::ipc::IPCResult::Ok();
11628}
11629
11630/*******************************************************************************
11631 * DatabaseFileManager
11632 ******************************************************************************/
11633
11634DatabaseFileManager::MutexType DatabaseFileManager::sMutex;
11635
11636DatabaseFileManager::DatabaseFileManager(
11637 PersistenceType aPersistenceType,
11638 const quota::OriginMetadata& aOriginMetadata,
11639 const nsAString& aDatabaseName, const nsCString& aDatabaseID,
11640 const nsAString& aDatabaseFilePath, bool aEnforcingQuota,
11641 bool aIsInPrivateBrowsingMode)
11642 : mPersistenceType(aPersistenceType),
11643 mOriginMetadata(aOriginMetadata),
11644 mDatabaseName(aDatabaseName),
11645 mDatabaseID(aDatabaseID),
11646 mDatabaseFilePath(aDatabaseFilePath),
11647 mCipherKeyManager(
11648 aIsInPrivateBrowsingMode
11649 ? new IndexedDBCipherKeyManager("IndexedDBCipherKeyManager")
11650 : nullptr),
11651 mDatabaseVersion(0),
11652 mEnforcingQuota(aEnforcingQuota),
11653 mIsInPrivateBrowsingMode(aIsInPrivateBrowsingMode) {}
11654
11655nsresult DatabaseFileManager::Init(nsIFile* aDirectory,
11656 mozIStorageConnection& aConnection) {
11657 AssertIsOnIOThread();
11658 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"
, 11658); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory"
")"); do { *((volatile int*)__null) = 11658; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11659
11660 {
11661 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"
, 11662, mozilla::dom::quota::Severity::Error); return tryResult986
.propagateErr(); } const bool& existsAsDirectory = tryResult986
.inspect();
11662 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"
, 11662, mozilla::dom::quota::Severity::Error); return tryResult986
.propagateErr(); } const bool& existsAsDirectory = tryResult986
.inspect();
;
11663
11664 if (!existsAsDirectory) {
11665 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"
, 11665, mozilla::dom::quota::Severity::Error); return tryResult987
.propagateErr(); }}
;
11666 }
11667
11668 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"
, 11669, mozilla::dom::quota::Severity::Error); return tryResult988
.propagateErr(); } auto path = tryResult988.unwrap();
11669 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"
, 11669, mozilla::dom::quota::Severity::Error); return tryResult988
.propagateErr(); } auto path = tryResult988.unwrap();
;
11670
11671 mDirectoryPath.init(std::move(path));
11672 }
11673
11674 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"
, 11675, mozilla::dom::quota::Severity::Error); return tryResult989
.propagateErr(); } const auto& journalDirectory = tryResult989
.inspect();
11675 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"
, 11675, mozilla::dom::quota::Severity::Error); return tryResult989
.propagateErr(); } const auto& journalDirectory = tryResult989
.inspect();
;
11676
11677 // We don't care if it doesn't exist at all, but if it does exist, make sure
11678 // it's a directory.
11679 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"
, 11680, mozilla::dom::quota::Severity::Error); return tryResult990
.propagateErr(); } const bool& existsAsDirectory = tryResult990
.inspect();
11680 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"
, 11680, mozilla::dom::quota::Severity::Error); return tryResult990
.propagateErr(); } const bool& existsAsDirectory = tryResult990
.inspect();
;
11681 Unused << existsAsDirectory;
11682
11683 {
11684 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"
, 11685, mozilla::dom::quota::Severity::Error); return tryResult991
.propagateErr(); } auto path = tryResult991.unwrap();
11685 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"
, 11685, mozilla::dom::quota::Severity::Error); return tryResult991
.propagateErr(); } auto path = tryResult991.unwrap();
;
11686
11687 mJournalDirectoryPath.init(std::move(path));
11688 }
11689
11690 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"
, 11693, mozilla::dom::quota::Severity::Error); return tryResult992
.propagateErr(); } const auto& stmt = tryResult992.inspect
();
11691 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"
, 11693, mozilla::dom::quota::Severity::Error); return tryResult992
.propagateErr(); } const auto& stmt = tryResult992.inspect
();
11692 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"
, 11693, mozilla::dom::quota::Severity::Error); return tryResult992
.propagateErr(); } const auto& stmt = tryResult992.inspect
();
11693 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"
, 11693, mozilla::dom::quota::Severity::Error); return tryResult992
.propagateErr(); } const auto& stmt = tryResult992.inspect
();
;
11694
11695 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"
, 11698, 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"
, 11700, 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"
, 11705); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0"
")"); do { *((volatile int*)__null) = 11705; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mFileInfos
.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard
{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt
))); mLastFileId = std::max(id, mLastFileId); 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\", 11698, 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\", 11700, 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\", 11705); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11705; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mFileInfos.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt))); mLastFileId = std::max(id, mLastFileId); return Ok{}; })"
, tryResult995.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11714, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); }}
11696 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"
, 11698, 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"
, 11700, 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"
, 11705); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0"
")"); do { *((volatile int*)__null) = 11705; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mFileInfos
.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard
{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt
))); mLastFileId = std::max(id, mLastFileId); 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\", 11698, 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\", 11700, 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\", 11705); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11705; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mFileInfos.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt))); mLastFileId = std::max(id, mLastFileId); return Ok{}; })"
, tryResult995.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11714, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); }}
11697 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"
, 11698, 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"
, 11700, 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"
, 11705); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0"
")"); do { *((volatile int*)__null) = 11705; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mFileInfos
.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard
{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt
))); mLastFileId = std::max(id, mLastFileId); 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\", 11698, 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\", 11700, 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\", 11705); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11705; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mFileInfos.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt))); mLastFileId = std::max(id, mLastFileId); return Ok{}; })"
, tryResult995.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11714, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); }}
11698 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"
, 11698, 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"
, 11700, 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"
, 11705); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0"
")"); do { *((volatile int*)__null) = 11705; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mFileInfos
.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard
{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt
))); mLastFileId = std::max(id, mLastFileId); 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\", 11698, 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\", 11700, 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\", 11705); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11705; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mFileInfos.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt))); mLastFileId = std::max(id, mLastFileId); return Ok{}; })"
, tryResult995.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11714, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); }}
11699 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"
, 11698, 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"
, 11700, 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"
, 11705); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0"
")"); do { *((volatile int*)__null) = 11705; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mFileInfos
.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard
{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt
))); mLastFileId = std::max(id, mLastFileId); 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\", 11698, 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\", 11700, 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\", 11705); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11705; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mFileInfos.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt))); mLastFileId = std::max(id, mLastFileId); return Ok{}; })"
, tryResult995.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11714, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); }}
11700 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"
, 11698, 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"
, 11700, 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"
, 11705); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0"
")"); do { *((volatile int*)__null) = 11705; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mFileInfos
.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard
{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt
))); mLastFileId = std::max(id, mLastFileId); 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\", 11698, 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\", 11700, 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\", 11705); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11705; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mFileInfos.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt))); mLastFileId = std::max(id, mLastFileId); return Ok{}; })"
, tryResult995.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11714, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); }}
11701
11702 // 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"
, 11698, 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"
, 11700, 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"
, 11705); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0"
")"); do { *((volatile int*)__null) = 11705; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mFileInfos
.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard
{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt
))); mLastFileId = std::max(id, mLastFileId); 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\", 11698, 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\", 11700, 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\", 11705); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11705; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mFileInfos.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt))); mLastFileId = std::max(id, mLastFileId); return Ok{}; })"
, tryResult995.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11714, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); }}
11703 // 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"
, 11698, 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"
, 11700, 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"
, 11705); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0"
")"); do { *((volatile int*)__null) = 11705; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mFileInfos
.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard
{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt
))); mLastFileId = std::max(id, mLastFileId); 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\", 11698, 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\", 11700, 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\", 11705); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11705; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mFileInfos.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt))); mLastFileId = std::max(id, mLastFileId); return Ok{}; })"
, tryResult995.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11714, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); }}
11704 // 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"
, 11698, 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"
, 11700, 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"
, 11705); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0"
")"); do { *((volatile int*)__null) = 11705; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mFileInfos
.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard
{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt
))); mLastFileId = std::max(id, mLastFileId); 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\", 11698, 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\", 11700, 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\", 11705); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11705; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mFileInfos.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt))); mLastFileId = std::max(id, mLastFileId); return Ok{}; })"
, tryResult995.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11714, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); }}
11705 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"
, 11698, 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"
, 11700, 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"
, 11705); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0"
")"); do { *((volatile int*)__null) = 11705; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mFileInfos
.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard
{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt
))); mLastFileId = std::max(id, mLastFileId); 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\", 11698, 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\", 11700, 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\", 11705); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11705; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mFileInfos.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt))); mLastFileId = std::max(id, mLastFileId); return Ok{}; })"
, tryResult995.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11714, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); }}
11706 mFileInfos.InsertOrUpdate({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"
, 11698, 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"
, 11700, 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"
, 11705); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0"
")"); do { *((volatile int*)__null) = 11705; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mFileInfos
.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard
{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt
))); mLastFileId = std::max(id, mLastFileId); 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\", 11698, 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\", 11700, 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\", 11705); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11705; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mFileInfos.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt))); mLastFileId = std::max(id, mLastFileId); return Ok{}; })"
, tryResult995.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11714, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); }}
11707 id, MakeNotNull<DatabaseFileInfo*>({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"
, 11698, 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"
, 11700, 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"
, 11705); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0"
")"); do { *((volatile int*)__null) = 11705; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mFileInfos
.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard
{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt
))); mLastFileId = std::max(id, mLastFileId); 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\", 11698, 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\", 11700, 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\", 11705); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11705; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mFileInfos.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt))); mLastFileId = std::max(id, mLastFileId); return Ok{}; })"
, tryResult995.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11714, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); }}
11708 FileInfoManagerGuard{}, SafeRefPtrFromThis(), 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"
, 11698, 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"
, 11700, 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"
, 11705); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0"
")"); do { *((volatile int*)__null) = 11705; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mFileInfos
.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard
{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt
))); mLastFileId = std::max(id, mLastFileId); 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\", 11698, 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\", 11700, 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\", 11705); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11705; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mFileInfos.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt))); mLastFileId = std::max(id, mLastFileId); return Ok{}; })"
, tryResult995.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11714, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); }}
11709 static_cast<nsrefcnt>(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"
, 11698, 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"
, 11700, 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"
, 11705); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0"
")"); do { *((volatile int*)__null) = 11705; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mFileInfos
.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard
{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt
))); mLastFileId = std::max(id, mLastFileId); 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\", 11698, 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\", 11700, 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\", 11705); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11705; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mFileInfos.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt))); mLastFileId = std::max(id, mLastFileId); return Ok{}; })"
, tryResult995.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11714, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); }}
11710
11711 mLastFileId = std::max(id, mLastFileId);{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"
, 11698, 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"
, 11700, 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"
, 11705); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0"
")"); do { *((volatile int*)__null) = 11705; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mFileInfos
.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard
{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt
))); mLastFileId = std::max(id, mLastFileId); 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\", 11698, 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\", 11700, 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\", 11705); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11705; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mFileInfos.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt))); mLastFileId = std::max(id, mLastFileId); return Ok{}; })"
, tryResult995.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11714, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); }}
11712
11713 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"
, 11698, 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"
, 11700, 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"
, 11705); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0"
")"); do { *((volatile int*)__null) = 11705; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mFileInfos
.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard
{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt
))); mLastFileId = std::max(id, mLastFileId); 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\", 11698, 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\", 11700, 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\", 11705); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11705; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mFileInfos.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt))); mLastFileId = std::max(id, mLastFileId); return Ok{}; })"
, tryResult995.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11714, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); }}
11714 })){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"
, 11698, 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"
, 11700, 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"
, 11705); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0"
")"); do { *((volatile int*)__null) = 11705; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); mFileInfos
.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard
{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt
))); mLastFileId = std::max(id, mLastFileId); 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\", 11698, 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\", 11700, 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\", 11705); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { *((volatile int*)__null) = 11705; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); mFileInfos.InsertOrUpdate( id, MakeNotNull<DatabaseFileInfo*>( FileInfoManagerGuard{}, SafeRefPtrFromThis(), id, static_cast<nsrefcnt>(dbRefCnt))); mLastFileId = std::max(id, mLastFileId); return Ok{}; })"
, tryResult995.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11714, mozilla::dom::quota::Severity::Error); return tryResult995
.propagateErr(); }}
;
11715
11716 mInitialized.Flip();
11717
11718 return NS_OK;
11719}
11720
11721nsCOMPtr<nsIFile> DatabaseFileManager::GetDirectory() {
11722 if (!this->AssertValid()) {
11723 return nullptr;
11724 }
11725
11726 return GetFileForPath(*mDirectoryPath);
11727}
11728
11729nsCOMPtr<nsIFile> DatabaseFileManager::GetCheckedDirectory() {
11730 auto directory = GetDirectory();
11731 if (NS_WARN_IF(!directory)NS_warn_if_impl(!directory, "!directory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11731)
) {
11732 return nullptr;
11733 }
11734
11735 DebugOnly<bool> exists;
11736 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"
, 11736); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(directory->Exists(&exists))), 1)))"
")"); do { *((volatile int*)__null) = 11736; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11737 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"
, 11737); AnnotateMozCrashReason("MOZ_ASSERT" "(" "exists" ")"
); do { *((volatile int*)__null) = 11737; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
11738
11739 DebugOnly<bool> isDirectory;
11740 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"
, 11740); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(directory->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 11740; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11741 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"
, 11741); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 11741; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11742
11743 return directory;
11744}
11745
11746nsCOMPtr<nsIFile> DatabaseFileManager::GetJournalDirectory() {
11747 if (!this->AssertValid()) {
11748 return nullptr;
11749 }
11750
11751 return GetFileForPath(*mJournalDirectoryPath);
11752}
11753
11754nsCOMPtr<nsIFile> DatabaseFileManager::EnsureJournalDirectory() {
11755 // This can happen on the IO or on a transaction thread.
11756 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"
, 11756); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { *((volatile int*)__null) = 11756; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11757
11758 auto journalDirectory = GetFileForPath(*mJournalDirectoryPath);
11759 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"
, 11759, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(journalDirectory)"
, tryTempError, nullptr); }}
;
11760
11761 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"
, 11763, 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();
11762 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"
, 11763, 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();
11763 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"
, 11763, 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();
;
11764
11765 if (exists) {
11766 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"
, 11768, 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();
11767 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"
, 11768, 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();
11768 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"
, 11768, 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();
;
11769
11770 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"
, 11770, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, nullptr); }}
;
11771 } else {
11772 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"
, 11774, 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); }}
11773 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"
, 11774, 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); }}
11774 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"
, 11774, 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); }}
;
11775 }
11776
11777 return journalDirectory;
11778}
11779
11780// static
11781nsCOMPtr<nsIFile> DatabaseFileManager::GetFileForId(nsIFile* aDirectory,
11782 int64_t aId) {
11783 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"
, 11783); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory"
")"); do { *((volatile int*)__null) = 11783; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11784 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"
, 11784); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aId > 0"
")"); do { *((volatile int*)__null) = 11784; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11785
11786 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"
, 11786, 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();}
;
11787}
11788
11789// static
11790nsCOMPtr<nsIFile> DatabaseFileManager::GetCheckedFileForId(nsIFile* aDirectory,
11791 int64_t aId) {
11792 auto file = GetFileForId(aDirectory, aId);
11793 if (NS_WARN_IF(!file)NS_warn_if_impl(!file, "!file", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11793)
) {
11794 return nullptr;
11795 }
11796
11797 DebugOnly<bool> exists;
11798 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"
, 11798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(file->Exists(&exists))), 1)))"
")"); do { *((volatile int*)__null) = 11798; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11799 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"
, 11799); AnnotateMozCrashReason("MOZ_ASSERT" "(" "exists" ")"
); do { *((volatile int*)__null) = 11799; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
11800
11801 DebugOnly<bool> isFile;
11802 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"
, 11802); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(file->IsFile(&isFile))), 1)))"
")"); do { *((volatile int*)__null) = 11802; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11803 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"
, 11803); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isFile" ")"
); do { *((volatile int*)__null) = 11803; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
11804
11805 return file;
11806}
11807
11808// static
11809nsresult DatabaseFileManager::InitDirectory(nsIFile& aDirectory,
11810 nsIFile& aDatabaseFile,
11811 const nsACString& aOrigin,
11812 uint32_t aTelemetryId) {
11813 AssertIsOnIOThread();
11814
11815 {
11816 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"
, 11817, mozilla::dom::quota::Severity::Error); return tryResult1002
.propagateErr(); } const bool& exists = tryResult1002.inspect
();
11817 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"
, 11817, mozilla::dom::quota::Severity::Error); return tryResult1002
.propagateErr(); } const bool& exists = tryResult1002.inspect
();
;
11818
11819 if (!exists) {
11820 return NS_OK;
11821 }
11822
11823 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"
, 11824, mozilla::dom::quota::Severity::Error); return tryResult1003
.propagateErr(); } const bool& isDirectory = tryResult1003
.inspect();
11824 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"
, 11824, mozilla::dom::quota::Severity::Error); return tryResult1003
.propagateErr(); } const bool& isDirectory = tryResult1003
.inspect();
;
11825 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"
, 11825, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, NS_ERROR_FAILURE); }}
;
11826 }
11827
11828 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"
, 11829, mozilla::dom::quota::Severity::Error); return tryResult1005
.propagateErr(); } const auto& journalDirectory = tryResult1005
.inspect();
11829 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"
, 11829, mozilla::dom::quota::Severity::Error); return tryResult1005
.propagateErr(); } const auto& journalDirectory = tryResult1005
.inspect();
;
11830
11831 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"
, 11832, mozilla::dom::quota::Severity::Error); return tryResult1006
.propagateErr(); } const bool& exists = tryResult1006.inspect
();
11832 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"
, 11832, mozilla::dom::quota::Severity::Error); return tryResult1006
.propagateErr(); } const bool& exists = tryResult1006.inspect
();
;
11833
11834 if (exists) {
11835 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"
, 11836, mozilla::dom::quota::Severity::Error); return tryResult1007
.propagateErr(); } const bool& isDirectory = tryResult1007
.inspect();
11836 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"
, 11836, mozilla::dom::quota::Severity::Error); return tryResult1007
.propagateErr(); } const bool& isDirectory = tryResult1007
.inspect();
;
11837 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"
, 11837, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, NS_ERROR_FAILURE); }}
;
11838
11839 bool hasJournals = false;
11840
11841 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"
, 11846, 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"
, 11853); } 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\", 11846, 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\", 11853); } return Ok{}; })"
, tryResult1010.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11857, mozilla::dom::quota::Severity::Error); return tryResult1010
.propagateErr(); }}
11842 *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"
, 11846, 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"
, 11853); } 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\", 11846, 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\", 11853); } return Ok{}; })"
, tryResult1010.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11857, mozilla::dom::quota::Severity::Error); return tryResult1010
.propagateErr(); }}
11843 [&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"
, 11846, 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"
, 11853); } 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\", 11846, 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\", 11853); } return Ok{}; })"
, tryResult1010.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11857, mozilla::dom::quota::Severity::Error); return tryResult1010
.propagateErr(); }}
11844 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"
, 11846, 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"
, 11853); } 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\", 11846, 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\", 11853); } return Ok{}; })"
, tryResult1010.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11857, mozilla::dom::quota::Severity::Error); return tryResult1010
.propagateErr(); }}
11845 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"
, 11846, 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"
, 11853); } 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\", 11846, 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\", 11853); } return Ok{}; })"
, tryResult1010.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11857, mozilla::dom::quota::Severity::Error); return tryResult1010
.propagateErr(); }}
11846 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"
, 11846, 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"
, 11853); } 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\", 11846, 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\", 11853); } return Ok{}; })"
, tryResult1010.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11857, mozilla::dom::quota::Severity::Error); return tryResult1010
.propagateErr(); }}
11847
11848 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"
, 11846, 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"
, 11853); } 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\", 11846, 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\", 11853); } return Ok{}; })"
, tryResult1010.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11857, mozilla::dom::quota::Severity::Error); return tryResult1010
.propagateErr(); }}
11849 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"
, 11846, 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"
, 11853); } 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\", 11846, 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\", 11853); } return Ok{}; })"
, tryResult1010.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11857, mozilla::dom::quota::Severity::Error); return tryResult1010
.propagateErr(); }}
11850 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"
, 11846, 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"
, 11853); } 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\", 11846, 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\", 11853); } return Ok{}; })"
, tryResult1010.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11857, mozilla::dom::quota::Severity::Error); return tryResult1010
.propagateErr(); }}
11851 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"
, 11846, 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"
, 11853); } 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\", 11846, 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\", 11853); } return Ok{}; })"
, tryResult1010.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11857, mozilla::dom::quota::Severity::Error); return tryResult1010
.propagateErr(); }}
11852 } 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"
, 11846, 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"
, 11853); } 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\", 11846, 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\", 11853); } return Ok{}; })"
, tryResult1010.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11857, mozilla::dom::quota::Severity::Error); return tryResult1010
.propagateErr(); }}
11853 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"
, 11846, 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"
, 11853); } 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\", 11846, 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\", 11853); } return Ok{}; })"
, tryResult1010.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11857, mozilla::dom::quota::Severity::Error); return tryResult1010
.propagateErr(); }}
11854 }{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"
, 11846, 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"
, 11853); } 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\", 11846, 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\", 11853); } return Ok{}; })"
, tryResult1010.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11857, mozilla::dom::quota::Severity::Error); return tryResult1010
.propagateErr(); }}
11855
11856 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"
, 11846, 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"
, 11853); } 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\", 11846, 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\", 11853); } return Ok{}; })"
, tryResult1010.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11857, mozilla::dom::quota::Severity::Error); return tryResult1010
.propagateErr(); }}
11857 })){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"
, 11846, 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"
, 11853); } 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\", 11846, 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\", 11853); } return Ok{}; })"
, tryResult1010.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11857, mozilla::dom::quota::Severity::Error); return tryResult1010
.propagateErr(); }}
;
11858
11859 if (hasJournals) {
11860 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"
, 11863, mozilla::dom::quota::Severity::Error); return tryResult1011
.propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1011.unwrap();
11861 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"
, 11863, mozilla::dom::quota::Severity::Error); return tryResult1011
.propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1011.unwrap();
11862 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"
, 11863, mozilla::dom::quota::Severity::Error); return tryResult1011
.propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1011.unwrap();
11863 /* 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"
, 11863, mozilla::dom::quota::Severity::Error); return tryResult1011
.propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1011.unwrap();
;
11864
11865 mozStorageTransaction transaction(connection.get(), false);
11866
11867 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"
, 11867, mozilla::dom::quota::Severity::Error); return tryResult1012
.propagateErr(); }}
11868
11869 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"
, 11870, mozilla::dom::quota::Severity::Error); return tryResult1013
.propagateErr(); }}
11870 "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"
, 11870, mozilla::dom::quota::Severity::Error); return tryResult1013
.propagateErr(); }}
;
11871
11872 // The parameter names are not used, parameters are bound by index only
11873 // locally in the same function.
11874 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"
, 11878, mozilla::dom::quota::Severity::Error); return tryResult1014
.propagateErr(); } const auto& stmt = tryResult1014.inspect
();
11875 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"
, 11878, mozilla::dom::quota::Severity::Error); return tryResult1014
.propagateErr(); } const auto& stmt = tryResult1014.inspect
();
11876 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"
, 11878, mozilla::dom::quota::Severity::Error); return tryResult1014
.propagateErr(); } const auto& stmt = tryResult1014.inspect
();
11877 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"
, 11878, mozilla::dom::quota::Severity::Error); return tryResult1014
.propagateErr(); } const auto& stmt = tryResult1014.inspect
();
11878 "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"
, 11878, mozilla::dom::quota::Severity::Error); return tryResult1014
.propagateErr(); } const auto& stmt = tryResult1014.inspect
();
;
11879
11880 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"
, 11882, mozilla::dom::quota::Severity::Error); return tryResult1015
.propagateErr(); } const auto& path = tryResult1015.inspect
();
11881 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"
, 11882, mozilla::dom::quota::Severity::Error); return tryResult1015
.propagateErr(); } const auto& path = tryResult1015.inspect
();
11882 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"
, 11882, mozilla::dom::quota::Severity::Error); return tryResult1015
.propagateErr(); } const auto& path = tryResult1015.inspect
();
;
11883
11884 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"
, 11884, mozilla::dom::quota::Severity::Error); return tryResult1016
.propagateErr(); }}
;
11885
11886 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"
, 11890, 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"
, 11902, 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"
, 11905); } } 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"
, 11910, 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"
, 11913); } 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\", 11890, 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\", 11902, 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\", 11905); } } 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\", 11910, 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\", 11913); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11917, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11887 *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"
, 11890, 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"
, 11902, 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"
, 11905); } } 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"
, 11910, 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"
, 11913); } 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\", 11890, 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\", 11902, 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\", 11905); } } 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\", 11910, 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\", 11913); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11917, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11888 [&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"
, 11890, 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"
, 11902, 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"
, 11905); } } 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"
, 11910, 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"
, 11913); } 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\", 11890, 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\", 11902, 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\", 11905); } } 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\", 11910, 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\", 11913); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11917, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11889 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"
, 11890, 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"
, 11902, 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"
, 11905); } } 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"
, 11910, 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"
, 11913); } 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\", 11890, 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\", 11902, 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\", 11905); } } 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\", 11910, 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\", 11913); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11917, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11890 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"
, 11890, 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"
, 11902, 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"
, 11905); } } 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"
, 11910, 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"
, 11913); } 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\", 11890, 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\", 11902, 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\", 11905); } } 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\", 11910, 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\", 11913); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11917, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11891
11892 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"
, 11890, 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"
, 11902, 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"
, 11905); } } 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"
, 11910, 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"
, 11913); } 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\", 11890, 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\", 11902, 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\", 11905); } } 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\", 11910, 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\", 11913); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11917, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11893 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"
, 11890, 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"
, 11902, 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"
, 11905); } } 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"
, 11910, 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"
, 11913); } 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\", 11890, 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\", 11902, 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\", 11905); } } 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\", 11910, 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\", 11913); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11917, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11894 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"
, 11890, 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"
, 11902, 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"
, 11905); } } 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"
, 11910, 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"
, 11913); } 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\", 11890, 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\", 11902, 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\", 11905); } } 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\", 11910, 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\", 11913); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11917, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11895 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"
, 11890, 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"
, 11902, 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"
, 11905); } } 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"
, 11910, 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"
, 11913); } 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\", 11890, 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\", 11902, 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\", 11905); } } 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\", 11910, 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\", 11913); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11917, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11896 }{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"
, 11890, 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"
, 11902, 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"
, 11905); } } 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"
, 11910, 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"
, 11913); } 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\", 11890, 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\", 11902, 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\", 11905); } } 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\", 11910, 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\", 11913); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11917, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11897
11898 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"
, 11890, 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"
, 11902, 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"
, 11905); } } 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"
, 11910, 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"
, 11913); } 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\", 11890, 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\", 11902, 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\", 11905); } } 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\", 11910, 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\", 11913); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11917, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11899
11900 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"
, 11890, 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"
, 11902, 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"
, 11905); } } 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"
, 11910, 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"
, 11913); } 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\", 11890, 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\", 11902, 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\", 11905); } } 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\", 11910, 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\", 11913); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11917, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11901 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"
, 11890, 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"
, 11902, 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"
, 11905); } } 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"
, 11910, 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"
, 11913); } 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\", 11890, 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\", 11902, 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\", 11905); } } 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\", 11910, 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\", 11913); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11917, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11902 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"
, 11890, 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"
, 11902, 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"
, 11905); } } 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"
, 11910, 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"
, 11913); } 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\", 11890, 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\", 11902, 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\", 11905); } } 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\", 11910, 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\", 11913); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11917, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11903
11904 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"
, 11890, 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"
, 11902, 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"
, 11905); } } 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"
, 11910, 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"
, 11913); } 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\", 11890, 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\", 11902, 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\", 11905); } } 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\", 11910, 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\", 11913); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11917, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11905 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"
, 11890, 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"
, 11902, 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"
, 11905); } } 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"
, 11910, 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"
, 11913); } 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\", 11890, 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\", 11902, 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\", 11905); } } 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\", 11910, 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\", 11913); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11917, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11906 }{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"
, 11890, 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"
, 11902, 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"
, 11905); } } 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"
, 11910, 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"
, 11913); } 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\", 11890, 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\", 11902, 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\", 11905); } } 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\", 11910, 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\", 11913); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11917, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11907 }{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"
, 11890, 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"
, 11902, 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"
, 11905); } } 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"
, 11910, 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"
, 11913); } 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\", 11890, 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\", 11902, 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\", 11905); } } 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\", 11910, 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\", 11913); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11917, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11908
11909 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"
, 11890, 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"
, 11902, 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"
, 11905); } } 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"
, 11910, 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"
, 11913); } 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\", 11890, 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\", 11902, 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\", 11905); } } 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\", 11910, 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\", 11913); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11917, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11910 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"
, 11890, 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"
, 11902, 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"
, 11905); } } 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"
, 11910, 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"
, 11913); } 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\", 11890, 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\", 11902, 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\", 11905); } } 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\", 11910, 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\", 11913); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11917, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11911
11912 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"
, 11890, 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"
, 11902, 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"
, 11905); } } 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"
, 11910, 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"
, 11913); } 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\", 11890, 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\", 11902, 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\", 11905); } } 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\", 11910, 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\", 11913); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11917, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11913 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"
, 11890, 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"
, 11902, 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"
, 11905); } } 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"
, 11910, 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"
, 11913); } 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\", 11890, 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\", 11902, 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\", 11905); } } 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\", 11910, 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\", 11913); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11917, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11914 }{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"
, 11890, 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"
, 11902, 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"
, 11905); } } 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"
, 11910, 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"
, 11913); } 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\", 11890, 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\", 11902, 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\", 11905); } } 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\", 11910, 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\", 11913); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11917, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11915
11916 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"
, 11890, 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"
, 11902, 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"
, 11905); } } 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"
, 11910, 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"
, 11913); } 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\", 11890, 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\", 11902, 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\", 11905); } } 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\", 11910, 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\", 11913); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11917, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
11917 })){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"
, 11890, 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"
, 11902, 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"
, 11905); } } 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"
, 11910, 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"
, 11913); } 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\", 11890, 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\", 11902, 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\", 11905); } } 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\", 11910, 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\", 11913); } return Ok{}; })"
, tryResult1020.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11917, mozilla::dom::quota::Severity::Error); return tryResult1020
.propagateErr(); }}
;
11918
11919 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"
, 11919, mozilla::dom::quota::Severity::Error); return tryResult1021
.propagateErr(); }}
;
11920 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"
, 11920, mozilla::dom::quota::Severity::Error); return tryResult1022
.propagateErr(); }}
;
11921 }
11922 }
11923
11924 return NS_OK;
11925}
11926
11927// static
11928Result<FileUsageType, nsresult> DatabaseFileManager::GetUsage(
11929 nsIFile* aDirectory) {
11930 AssertIsOnIOThread();
11931 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"
, 11931); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory"
")"); do { *((volatile int*)__null) = 11931; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11932
11933 FileUsageType usage;
11934
11935 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"
, 11961, 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\", 11961, 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"
, 11961, 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\", 11961, 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\\\", 11961, 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\", 11961, 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"
, 11968, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
11936 *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"
, 11961, 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\", 11961, 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"
, 11961, 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\", 11961, 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\\\", 11961, 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\", 11961, 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"
, 11968, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
11937 // 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"
, 11961, 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\", 11961, 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"
, 11961, 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\", 11961, 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\\\", 11961, 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\", 11961, 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"
, 11968, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
11938 [&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"
, 11961, 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\", 11961, 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"
, 11961, 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\", 11961, 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\\\", 11961, 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\", 11961, 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"
, 11968, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
11939 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"
, 11961, 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\", 11961, 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"
, 11961, 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\", 11961, 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\\\", 11961, 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\", 11961, 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"
, 11968, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
11940 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"
, 11961, 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\", 11961, 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"
, 11961, 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\", 11961, 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\\\", 11961, 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\", 11961, 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"
, 11968, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
11941 }{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"
, 11961, 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\", 11961, 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"
, 11961, 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\", 11961, 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\\\", 11961, 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\", 11961, 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"
, 11968, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
11942
11943 // 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"
, 11961, 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\", 11961, 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"
, 11961, 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\", 11961, 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\\\", 11961, 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\", 11961, 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"
, 11968, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
11944 // 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"
, 11961, 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\", 11961, 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"
, 11961, 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\", 11961, 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\\\", 11961, 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\", 11961, 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"
, 11968, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
11945 // 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"
, 11961, 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\", 11961, 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"
, 11961, 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\", 11961, 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\\\", 11961, 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\", 11961, 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"
, 11968, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
11946 // 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"
, 11961, 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\", 11961, 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"
, 11961, 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\", 11961, 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\\\", 11961, 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\", 11961, 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"
, 11968, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
11947 // 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"
, 11961, 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\", 11961, 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"
, 11961, 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\", 11961, 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\\\", 11961, 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\", 11961, 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"
, 11968, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
11948 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"
, 11961, 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\", 11961, 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"
, 11961, 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\", 11961, 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\\\", 11961, 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\", 11961, 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"
, 11968, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
11949 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"
, 11961, 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\", 11961, 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"
, 11961, 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\", 11961, 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\\\", 11961, 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\", 11961, 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"
, 11968, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
11950 // 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"
, 11961, 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\", 11961, 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"
, 11961, 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\", 11961, 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\\\", 11961, 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\", 11961, 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"
, 11968, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
11951 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"
, 11961, 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\", 11961, 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"
, 11961, 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\", 11961, 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\\\", 11961, 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\", 11961, 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"
, 11968, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
11952 .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"
, 11961, 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\", 11961, 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"
, 11961, 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\", 11961, 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\\\", 11961, 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\", 11961, 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"
, 11968, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
11953 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"
, 11961, 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\", 11961, 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"
, 11961, 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\", 11961, 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\\\", 11961, 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\", 11961, 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"
, 11968, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
11954 }),{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"
, 11961, 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\", 11961, 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"
, 11961, 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\", 11961, 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\\\", 11961, 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\", 11961, 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"
, 11968, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
11955 // 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"
, 11961, 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\", 11961, 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"
, 11961, 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\", 11961, 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\\\", 11961, 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\", 11961, 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"
, 11968, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
11956 ([](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"
, 11961, 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\", 11961, 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"
, 11961, 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\", 11961, 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\\\", 11961, 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\", 11961, 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"
, 11968, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
11957 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"
, 11961, 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\", 11961, 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"
, 11961, 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\", 11961, 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\\\", 11961, 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\", 11961, 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"
, 11968, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
11958 }),{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"
, 11961, 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\", 11961, 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"
, 11961, 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\", 11961, 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\\\", 11961, 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\", 11961, 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"
, 11968, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
11959 // 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"
, 11961, 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\", 11961, 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"
, 11961, 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\", 11961, 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\\\", 11961, 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\", 11961, 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"
, 11968, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
11960 // 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"
, 11961, 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\", 11961, 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"
, 11961, 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\", 11961, 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\\\", 11961, 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\", 11961, 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"
, 11968, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
11961 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"
, 11961, 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\", 11961, 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"
, 11961, 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\", 11961, 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\\\", 11961, 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\", 11961, 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"
, 11968, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
11962
11963 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"
, 11961, 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\", 11961, 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"
, 11961, 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\", 11961, 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\\\", 11961, 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\", 11961, 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"
, 11968, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
11964
11965 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"
, 11961, 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\", 11961, 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"
, 11961, 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\", 11961, 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\\\", 11961, 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\", 11961, 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"
, 11968, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
11966 },{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"
, 11961, 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\", 11961, 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"
, 11961, 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\", 11961, 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\\\", 11961, 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\", 11961, 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"
, 11968, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
11967 // 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"
, 11961, 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\", 11961, 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"
, 11961, 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\", 11961, 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\\\", 11961, 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\", 11961, 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"
, 11968, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
11968 [](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"
, 11961, 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\", 11961, 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"
, 11961, 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\", 11961, 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\\\", 11961, 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\", 11961, 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"
, 11968, mozilla::dom::quota::Severity::Error); return tryResult1024
.propagateErr(); }}
;
11969
11970 return usage;
11971}
11972
11973nsresult DatabaseFileManager::SyncDeleteFile(const int64_t aId) {
11974 MOZ_ASSERT(!mFileInfos.Contains(aId))do { static_assert( mozilla::detail::AssertionConditionType<
decltype(!mFileInfos.Contains(aId))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!mFileInfos.Contains(aId))))
, 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mFileInfos.Contains(aId)"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 11974); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileInfos.Contains(aId)"
")"); do { *((volatile int*)__null) = 11974; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
11975
11976 if (!this->AssertValid()) {
11977 return NS_ERROR_UNEXPECTED;
11978 }
11979
11980 const auto directory = GetDirectory();
11981 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"
, 11981, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(directory)"
, tryTempError, NS_ERROR_FAILURE); }}
;
11982
11983 const auto journalDirectory = GetJournalDirectory();
11984 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"
, 11984, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(journalDirectory)"
, tryTempError, NS_ERROR_FAILURE); }}
;
11985
11986 const nsCOMPtr<nsIFile> file = GetFileForId(directory, aId);
11987 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"
, 11987, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(file)", tryTempError
, NS_ERROR_FAILURE); }}
;
11988
11989 const nsCOMPtr<nsIFile> journalFile = GetFileForId(journalDirectory, aId);
11990 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"
, 11990, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(journalFile)"
, tryTempError, NS_ERROR_FAILURE); }}
;
11991
11992 return SyncDeleteFile(*file, *journalFile);
11993}
11994
11995nsresult DatabaseFileManager::SyncDeleteFile(nsIFile& aFile,
11996 nsIFile& aJournalFile) const {
11997 QuotaManager* const quotaManager =
11998 EnforcingQuota() ? QuotaManager::Get() : nullptr;
11999 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"
, 11999); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { *((volatile int*)__null) = 11999; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
12000
12001 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"
, 12002, mozilla::dom::quota::Severity::Error); return tryResult1029
.propagateErr(); }}
12002 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"
, 12002, mozilla::dom::quota::Severity::Error); return tryResult1029
.propagateErr(); }}
;
12003
12004 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"
, 12004, mozilla::dom::quota::Severity::Error); return tryResult1030
.propagateErr(); }}
;
12005
12006 return NS_OK;
12007}
12008
12009nsresult DatabaseFileManager::Invalidate() {
12010 if (mCipherKeyManager) {
12011 mCipherKeyManager->Invalidate();
12012 }
12013
12014 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"
, 12014, mozilla::dom::quota::Severity::Error); return tryResult1031
.propagateErr(); }}
;
12015
12016 return NS_OK;
12017}
12018
12019/*******************************************************************************
12020 * QuotaClient
12021 ******************************************************************************/
12022
12023QuotaClient* QuotaClient::sInstance = nullptr;
12024
12025QuotaClient::QuotaClient() : mDeleteTimer(NS_NewTimer()) {
12026 AssertIsOnBackgroundThread();
12027 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"
, 12027); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!sInstance"
") (" "We expect this to be a singleton!" ")"); do { *((volatile
int*)__null) = 12027; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false)
;
12028 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"
, 12028); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gTelemetryIdMutex"
")"); do { *((volatile int*)__null) = 12028; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12029
12030 // Always create this so that later access to gTelemetryIdHashtable can be
12031 // properly synchronized.
12032 gTelemetryIdMutex = new Mutex("IndexedDB gTelemetryIdMutex");
12033
12034 gStorageDatabaseNameMutex = new Mutex("IndexedDB gStorageDatabaseNameMutex");
12035
12036 sInstance = this;
12037}
12038
12039QuotaClient::~QuotaClient() {
12040 AssertIsOnBackgroundThread();
12041 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"
, 12041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "sInstance == this"
") (" "We expect this to be a singleton!" ")"); do { *((volatile
int*)__null) = 12041; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false)
;
12042 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"
, 12042); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gTelemetryIdMutex"
")"); do { *((volatile int*)__null) = 12042; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12043 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"
, 12043); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mMaintenanceThreadPool"
")"); do { *((volatile int*)__null) = 12043; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12044
12045 // No one else should be able to touch gTelemetryIdHashtable now that the
12046 // QuotaClient has gone away.
12047 gTelemetryIdHashtable = nullptr;
12048 gTelemetryIdMutex = nullptr;
12049
12050 gStorageDatabaseNameHashtable = nullptr;
12051 gStorageDatabaseNameMutex = nullptr;
12052
12053 sInstance = nullptr;
12054}
12055
12056nsresult QuotaClient::AsyncDeleteFile(DatabaseFileManager* aFileManager,
12057 int64_t aFileId) {
12058 AssertIsOnBackgroundThread();
12059
12060 if (IsShuttingDownOnBackgroundThread()) {
12061 // Whoops! We want to delete an IndexedDB disk-backed File but it's too late
12062 // to actually delete the file! This means we're going to "leak" the file
12063 // and leave it around when we shouldn't! (The file will stay around until
12064 // next storage initialization is triggered when the app is started again).
12065 // Fixing this is tracked by bug 1539377.
12066
12067 return NS_OK;
12068 }
12069
12070 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"
, 12070); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDeleteTimer"
")"); do { *((volatile int*)__null) = 12070; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12071 MOZ_ALWAYS_SUCCEEDS(mDeleteTimer->Cancel())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mDeleteTimer->Cancel())), 1)))), 1))) { } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "NS_SUCCEEDED(mDeleteTimer->Cancel())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12071); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(mDeleteTimer->Cancel())" ")"); do { *
((volatile int*)__null) = 12071; __attribute__((nomerge)) ::abort
(); } while (false); } } while (false); } } while (false)
;
12072
12073 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"
, 12075, mozilla::dom::quota::Severity::Error); return tryResult1032
.propagateErr(); }}
12074 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"
, 12075, mozilla::dom::quota::Severity::Error); return tryResult1032
.propagateErr(); }}
12075 "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"
, 12075, mozilla::dom::quota::Severity::Error); return tryResult1032
.propagateErr(); }}
;
12076
12077 mPendingDeleteInfos.GetOrInsertNew(aFileManager)->AppendElement(aFileId);
12078
12079 return NS_OK;
12080}
12081
12082nsresult QuotaClient::FlushPendingFileDeletions() {
12083 AssertIsOnBackgroundThread();
12084
12085 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"
, 12085, mozilla::dom::quota::Severity::Error); return tryResult1033
.propagateErr(); }}
;
12086
12087 DeleteTimerCallback(mDeleteTimer, this);
12088
12089 return NS_OK;
12090}
12091
12092RefPtr<BoolPromise> QuotaClient::DoMaintenance() {
12093 AssertIsOnBackgroundThread();
12094 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"
, 12094); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsShuttingDownOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 12094; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12095
12096 if (!mBackgroundThread) {
12097 mBackgroundThread = GetCurrentSerialEventTarget();
12098 }
12099
12100 auto maintenance = MakeRefPtr<Maintenance>(this);
12101
12102 mMaintenanceQueue.AppendElement(maintenance);
12103 ProcessMaintenanceQueue();
12104
12105 return maintenance->OnResults();
12106}
12107
12108nsThreadPool* QuotaClient::GetOrCreateThreadPool() {
12109 AssertIsOnBackgroundThread();
12110 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"
, 12110); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsShuttingDownOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 12110; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12111
12112 if (!mMaintenanceThreadPool) {
12113 RefPtr<nsThreadPool> threadPool = new nsThreadPool();
12114
12115 // PR_GetNumberOfProcessors() can return -1 on error, so make sure we
12116 // don't set some huge number here. We add 2 in case some threads block on
12117 // the disk I/O.
12118 const uint32_t threadCount =
12119 std::max(int32_t(PR_GetNumberOfProcessors()), int32_t(1)) + 2;
12120
12121 MOZ_ALWAYS_SUCCEEDS(threadPool->SetThreadLimit(threadCount))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(threadPool->SetThreadLimit(threadCount))), 1)))), 1))) { }
else { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(threadPool->SetThreadLimit(threadCount))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12121); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(threadPool->SetThreadLimit(threadCount))"
")"); do { *((volatile int*)__null) = 12121; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
12122
12123 // Don't keep more than one idle thread.
12124 MOZ_ALWAYS_SUCCEEDS(threadPool->SetIdleThreadLimit(1))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(threadPool->SetIdleThreadLimit(1))), 1)))), 1))) { } else
{ do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(threadPool->SetIdleThreadLimit(1))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12124); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(threadPool->SetIdleThreadLimit(1))" ")"
); do { *((volatile int*)__null) = 12124; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
12125
12126 // Don't keep idle threads alive very long.
12127 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(threadPool->SetIdleThreadMaximumTimeout(5 * 1000L))), 1))
)), 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(5 * 1000L))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12128); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(5 * 1000L))"
")"); do { *((volatile int*)__null) = 12128; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
12128 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 { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(5 * 1000L))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12128); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(5 * 1000L))"
")"); do { *((volatile int*)__null) = 12128; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
12129
12130 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 { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(threadPool->SetName(\"IndexedDB Mnt\"_ns))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12130); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(threadPool->SetName(\"IndexedDB Mnt\"_ns))"
")"); do { *((volatile int*)__null) = 12130; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
12131
12132 mMaintenanceThreadPool = std::move(threadPool);
12133 }
12134
12135 return mMaintenanceThreadPool;
12136}
12137
12138mozilla::dom::quota::Client::Type QuotaClient::GetType() {
12139 return QuotaClient::IDB;
12140}
12141
12142nsresult QuotaClient::UpgradeStorageFrom1_0To2_0(nsIFile* aDirectory) {
12143 AssertIsOnIOThread();
12144 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"
, 12144); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory"
")"); do { *((volatile int*)__null) = 12144; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12145
12146 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"
, 12148, mozilla::dom::quota::Severity::Error); return tryResult1034
.propagateErr(); } const auto& [subdirsToProcess, databaseFilenames
] = tryResult1034.inspect();
12147 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"
, 12148, mozilla::dom::quota::Severity::Error); return tryResult1034
.propagateErr(); } const auto& [subdirsToProcess, databaseFilenames
] = tryResult1034.inspect();
12148 /* 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"
, 12148, mozilla::dom::quota::Severity::Error); return tryResult1034
.propagateErr(); } const auto& [subdirsToProcess, databaseFilenames
] = tryResult1034.inspect();
;
12149
12150 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12151 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12152 [&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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12153 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12154 // 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12155 // 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12156 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12157 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12158 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12159 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12160 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12161 }{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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12162
12163 // 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12164 // 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12165 // 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12166 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12167 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12168 ([&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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12169 &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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12170 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12171 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12172 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12173 }{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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12174
12175 // 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12176 // 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12177 // 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12178 // 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12179 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12180 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12181 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12182
12183 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12184 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12185 }()),{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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12186 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12187
12188 // 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12189 // 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12190 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12191 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12192
12193 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12194 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12195 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12196
12197 // 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12198 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12199 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12200
12201 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12202 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12203
12204 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12205 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12206 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12207
12208 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12209
12210 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12211 }{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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12212
12213 // 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12214 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12215
12216 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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
12217 })){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"
, 12159, 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"
, 12181, mozilla::dom::quota::Severity::Error); 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12186, 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\", 12181, mozilla::dom::quota::Severity::Error); 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"
, 12191, 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"
, 12194); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 12194; __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"
, 12195); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 12195; __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"
, 12199, 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"
, 12202, 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"
, 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12206); } 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"
, 12208, 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"
, 12214, 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\", 12159, 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\", 12181, mozilla::dom::quota::Severity::Error); 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12186, 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\\\", 12181, mozilla::dom::quota::Severity::Error); 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\", 12191, 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\", 12194); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { *((volatile int*)__null) = 12194; __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\", 12195); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { *((volatile int*)__null) = 12195; __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\", 12199, 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\", 12202, 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\", 12206, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12206); } 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\", 12208, 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\", 12214, mozilla::dom::quota::Severity::Error); return tryResult1042.propagateErr(); }}; return Ok{}; })"
, tryResult1043.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12217, mozilla::dom::quota::Severity::Error); return tryResult1043
.propagateErr(); }}
;
12218
12219 return NS_OK;
12220}
12221
12222nsresult QuotaClient::UpgradeStorageFrom2_1To2_2(nsIFile* aDirectory) {
12223 AssertIsOnIOThread();
12224 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"
, 12224); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory"
")"); do { *((volatile int*)__null) = 12224; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12225
12226 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"
, 12228, 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"
, 12237, 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"
, 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12243); } 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"
, 12245, 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\", 12228, 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\", 12237, 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\", 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12243); } 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\", 12245, 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"
, 12257, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12227 *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"
, 12228, 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"
, 12237, 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"
, 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12243); } 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"
, 12245, 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\", 12228, 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\", 12237, 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\", 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12243); } 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\", 12245, 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"
, 12257, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12228 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"
, 12228, 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"
, 12237, 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"
, 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12243); } 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"
, 12245, 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\", 12228, 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\", 12237, 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\", 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12243); } 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\", 12245, 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"
, 12257, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12229
12230 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"
, 12228, 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"
, 12237, 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"
, 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12243); } 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"
, 12245, 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\", 12228, 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\", 12237, 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\", 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12243); } 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\", 12245, 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"
, 12257, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12231 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"
, 12228, 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"
, 12237, 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"
, 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12243); } 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"
, 12245, 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\", 12228, 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\", 12237, 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\", 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12243); } 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\", 12245, 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"
, 12257, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12232 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"
, 12228, 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"
, 12237, 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"
, 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12243); } 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"
, 12245, 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\", 12228, 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\", 12237, 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\", 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12243); } 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\", 12245, 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"
, 12257, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12233
12234 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"
, 12228, 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"
, 12237, 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"
, 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12243); } 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"
, 12245, 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\", 12228, 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\", 12237, 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\", 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12243); } 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\", 12245, 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"
, 12257, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12235 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"
, 12228, 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"
, 12237, 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"
, 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12243); } 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"
, 12245, 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\", 12228, 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\", 12237, 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\", 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12243); } 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\", 12245, 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"
, 12257, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12236 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"
, 12228, 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"
, 12237, 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"
, 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12243); } 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"
, 12245, 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\", 12228, 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\", 12237, 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\", 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12243); } 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\", 12245, 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"
, 12257, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12237 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"
, 12228, 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"
, 12237, 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"
, 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12243); } 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"
, 12245, 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\", 12228, 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\", 12237, 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\", 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12243); } 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\", 12245, 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"
, 12257, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12238
12239 // 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"
, 12228, 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"
, 12237, 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"
, 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12243); } 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"
, 12245, 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\", 12228, 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\", 12237, 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\", 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12243); } 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\", 12245, 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"
, 12257, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12240 // 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"
, 12228, 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"
, 12237, 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"
, 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12243); } 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"
, 12245, 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\", 12228, 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\", 12237, 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\", 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12243); } 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\", 12245, 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"
, 12257, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12241 // 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"
, 12228, 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"
, 12237, 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"
, 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12243); } 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"
, 12245, 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\", 12228, 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\", 12237, 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\", 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12243); } 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\", 12245, 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"
, 12257, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12242 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"
, 12228, 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"
, 12237, 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"
, 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12243); } 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"
, 12245, 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\", 12228, 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\", 12237, 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\", 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12243); } 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\", 12245, 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"
, 12257, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12243 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"
, 12228, 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"
, 12237, 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"
, 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12243); } 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"
, 12245, 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\", 12228, 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\", 12237, 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\", 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12243); } 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\", 12245, 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"
, 12257, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12244
12245 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"
, 12228, 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"
, 12237, 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"
, 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12243); } 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"
, 12245, 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\", 12228, 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\", 12237, 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\", 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12243); } 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\", 12245, 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"
, 12257, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12246 }{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"
, 12228, 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"
, 12237, 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"
, 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12243); } 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"
, 12245, 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\", 12228, 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\", 12237, 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\", 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12243); } 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\", 12245, 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"
, 12257, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12247
12248 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"
, 12228, 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"
, 12237, 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"
, 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12243); } 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"
, 12245, 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\", 12228, 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\", 12237, 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\", 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12243); } 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\", 12245, 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"
, 12257, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12249 }{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"
, 12228, 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"
, 12237, 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"
, 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12243); } 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"
, 12245, 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\", 12228, 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\", 12237, 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\", 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12243); } 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\", 12245, 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"
, 12257, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12250
12251 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"
, 12228, 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"
, 12237, 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"
, 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12243); } 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"
, 12245, 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\", 12228, 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\", 12237, 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\", 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12243); } 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\", 12245, 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"
, 12257, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12252 // 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"
, 12228, 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"
, 12237, 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"
, 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12243); } 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"
, 12245, 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\", 12228, 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\", 12237, 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\", 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12243); } 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\", 12245, 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"
, 12257, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12253 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"
, 12228, 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"
, 12237, 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"
, 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12243); } 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"
, 12245, 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\", 12228, 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\", 12237, 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\", 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12243); } 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\", 12245, 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"
, 12257, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12254 }{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"
, 12228, 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"
, 12237, 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"
, 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12243); } 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"
, 12245, 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\", 12228, 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\", 12237, 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\", 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12243); } 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\", 12245, 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"
, 12257, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12255
12256 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"
, 12228, 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"
, 12237, 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"
, 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12243); } 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"
, 12245, 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\", 12228, 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\", 12237, 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\", 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12243); } 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\", 12245, 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"
, 12257, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
12257 })){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"
, 12228, 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"
, 12237, 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"
, 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12243); } 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"
, 12245, 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\", 12228, 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\", 12237, 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\", 12243, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12243); } 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\", 12245, 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"
, 12257, mozilla::dom::quota::Severity::Error); return tryResult1047
.propagateErr(); }}
;
12258
12259 return NS_OK;
12260}
12261
12262Result<UsageInfo, nsresult> QuotaClient::InitOrigin(
12263 PersistenceType aPersistenceType, const OriginMetadata& aOriginMetadata,
12264 const AtomicBool& aCanceled) {
12265 AssertIsOnIOThread();
12266
12267 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"
, 12270, mozilla::dom::quota::Severity::Error); } return tryResult1048
;}
12268 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"
, 12270, mozilla::dom::quota::Severity::Error); } return tryResult1048
;}
12269 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"
, 12270, mozilla::dom::quota::Severity::Error); } return tryResult1048
;}
12270 /* 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"
, 12270, mozilla::dom::quota::Severity::Error); } return tryResult1048
;}
;
12271}
12272
12273nsresult QuotaClient::InitOriginWithoutTracking(
12274 PersistenceType aPersistenceType, const OriginMetadata& aOriginMetadata,
12275 const AtomicBool& aCanceled) {
12276 AssertIsOnIOThread();
12277
12278 return GetUsageForOriginInternal(aPersistenceType, aOriginMetadata, aCanceled,
12279 /* aInitializing*/ true, nullptr);
12280}
12281
12282Result<UsageInfo, nsresult> QuotaClient::GetUsageForOrigin(
12283 PersistenceType aPersistenceType, const OriginMetadata& aOriginMetadata,
12284 const AtomicBool& aCanceled) {
12285 AssertIsOnIOThread();
12286
12287 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"
, 12290, mozilla::dom::quota::Severity::Error); } return tryResult1049
;}
12288 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"
, 12290, mozilla::dom::quota::Severity::Error); } return tryResult1049
;}
12289 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"
, 12290, mozilla::dom::quota::Severity::Error); } return tryResult1049
;}
12290 /* 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"
, 12290, mozilla::dom::quota::Severity::Error); } return tryResult1049
;}
;
12291}
12292
12293nsresult QuotaClient::GetUsageForOriginInternal(
12294 PersistenceType aPersistenceType, const OriginMetadata& aOriginMetadata,
12295 const AtomicBool& aCanceled, const bool aInitializing,
12296 UsageInfo* aUsageInfo) {
12297 AssertIsOnIOThread();
12298 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"
, 12298); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aOriginMetadata.mPersistenceType == aPersistenceType"
")"); do { *((volatile int*)__null) = 12298; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12299
12300 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"
, 12301, mozilla::dom::quota::Severity::Error); return tryResult1050
.propagateErr(); } const nsCOMPtr<nsIFile>& directory
= tryResult1050.inspect();
12301 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"
, 12301, mozilla::dom::quota::Severity::Error); return tryResult1050
.propagateErr(); } const nsCOMPtr<nsIFile>& directory
= tryResult1050.inspect();
;
12302
12303 // We need to see if there are any files in the directory already. If they
12304 // are database files then we need to cleanup stored files (if it's needed)
12305 // and also get the usage.
12306
12307 // XXX Can we avoid unwrapping into non-const variables here? (Only
12308 // databaseFilenames is currently modified below)
12309 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"
, 12311, mozilla::dom::quota::Severity::Error); return tryResult1051
.propagateErr(); } auto [subdirsToProcess, databaseFilenames,
obsoleteFilenames] = tryResult1051.unwrap();
12310 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"
, 12311, mozilla::dom::quota::Severity::Error); return tryResult1051
.propagateErr(); } auto [subdirsToProcess, databaseFilenames,
obsoleteFilenames] = tryResult1051.unwrap();
12311 *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"
, 12311, mozilla::dom::quota::Severity::Error); return tryResult1051
.propagateErr(); } auto [subdirsToProcess, databaseFilenames,
obsoleteFilenames] = tryResult1051.unwrap();
;
12312
12313 if (aInitializing) {
12314 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12315 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12316 [&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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12317 &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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12318 &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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12319 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12320 // 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12321 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12322 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12323 // 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12324 ([&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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12325 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12326 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12327 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12328 }()),{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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12329 // 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12330 ([&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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12331 &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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12332 // 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12333 // 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12334 // 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12335 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12336 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12337 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12338
12339 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12340 })),{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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12341 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12342
12343 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12344 // 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12345 // 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12346 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12347 *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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12348 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12349 /* 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12350 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12351
12352 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12353 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12354 }{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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12355
12356 // 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12357 // 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12358 // 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12359
12360 // 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12361 // 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12362 // 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12363 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12364 // 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12365 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12366 .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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12367 // 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12368 ([&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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12369 &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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12370 // 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12371 // 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12372 // 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12373 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12374 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12375
12376 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12377 })));{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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12378
12379 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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
12380 })){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"
, 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052
;}; }())).orElse([&](const auto& firstRes) { mozilla::
dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1052.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\""
, firstRes, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12340, mozilla::dom::quota::Severity::Warning); return ([&
directory, &subdirName](const NotOk) -> Result<Ok, nsresult
> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory
, subdirName))); static_assert(std::is_empty_v<typename decltype
(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError
("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12341, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12350, 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"
, 12377, 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"
, 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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"
, 12377, 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\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1052.inspectErr(), \\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\"\", firstRes, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12341, 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\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1052 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1052.inspectErr(), \\\\\\\\\\\\\\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12327, mozilla::dom::quota::Severity::Error); } return tryResult1052;}; }())\\\\\\\"\\\", firstRes, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12340, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1053 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1053)::ok_type>); if ((__builtin_expect(!!(tryResult1053.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1053.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 12337, mozilla::dom::quota::Severity::Error); constexpr 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\", 12350, 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\", 12377, 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\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\\\", 12377, 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\\\", 12374, mozilla::dom::quota::Severity::Error); constexpr 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\", 12377, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })"
, tryResult1058.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12380, mozilla::dom::quota::Severity::Error); return tryResult1058
.propagateErr(); }}
;
12381 }
12382
12383 for (const auto& databaseFilename : databaseFilenames) {
12384 if (aCanceled) {
12385 break;
12386 }
12387
12388 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"
, 12391, mozilla::dom::quota::Severity::Error); return tryResult1059
.propagateErr(); } const auto& fmDirectory = tryResult1059
.inspect();
12389 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"
, 12391, mozilla::dom::quota::Severity::Error); return tryResult1059
.propagateErr(); } const auto& fmDirectory = tryResult1059
.inspect();
12390 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"
, 12391, mozilla::dom::quota::Severity::Error); return tryResult1059
.propagateErr(); } const auto& fmDirectory = tryResult1059
.inspect();
12391 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"
, 12391, mozilla::dom::quota::Severity::Error); return tryResult1059
.propagateErr(); } const auto& fmDirectory = tryResult1059
.inspect();
;
12392
12393 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"
, 12395, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); } const auto& databaseFile = tryResult1060
.inspect();
12394 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"
, 12395, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); } const auto& databaseFile = tryResult1060
.inspect();
12395 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"
, 12395, mozilla::dom::quota::Severity::Error); return tryResult1060
.propagateErr(); } const auto& databaseFile = tryResult1060
.inspect();
;
12396
12397 if (aInitializing) {
12398 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"
, 12400, mozilla::dom::quota::Severity::Error); return tryResult1061
.propagateErr(); }}
12399 *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"
, 12400, mozilla::dom::quota::Severity::Error); return tryResult1061
.propagateErr(); }}
12400 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"
, 12400, mozilla::dom::quota::Severity::Error); return tryResult1061
.propagateErr(); }}
;
12401 }
12402
12403 if (aUsageInfo) {
12404 {
12405 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"
, 12406, mozilla::dom::quota::Severity::Error); return tryResult1062
.propagateErr(); } const int64_t& fileSize = tryResult1062
.inspect();
12406 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"
, 12406, mozilla::dom::quota::Severity::Error); return tryResult1062
.propagateErr(); } const int64_t& fileSize = tryResult1062
.inspect();
;
12407
12408 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"
, 12408); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize >= 0"
")"); do { *((volatile int*)__null) = 12408; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12409
12410 *aUsageInfo += DatabaseUsageType(Some(uint64_t(fileSize)));
12411 }
12412
12413 {
12414 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"
, 12416, mozilla::dom::quota::Severity::Error); return tryResult1063
.propagateErr(); } const auto& walFile = tryResult1063.inspect
();
12415 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"
, 12416, mozilla::dom::quota::Severity::Error); return tryResult1063
.propagateErr(); } const auto& walFile = tryResult1063.inspect
();
12416 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"
, 12416, mozilla::dom::quota::Severity::Error); return tryResult1063
.propagateErr(); } const auto& walFile = tryResult1063.inspect
();
;
12417
12418 // QM_OR_ELSE_WARN_IF is not used here since we just want to log
12419 // NS_ERROR_FILE_NOT_FOUND result and not spam the reports (the -wal
12420 // file doesn't have to exist).
12421 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"
, 12430, 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\", 12430, 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"
, 12430, mozilla::dom::quota::Severity::Error); return tryResult1064
.propagateErr(); } const int64_t& walFileSize = tryResult1064
.inspect();
12422 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"
, 12430, 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\", 12430, 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"
, 12430, mozilla::dom::quota::Severity::Error); return tryResult1064
.propagateErr(); } const int64_t& walFileSize = tryResult1064
.inspect();
12423 // 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"
, 12430, 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\", 12430, 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"
, 12430, mozilla::dom::quota::Severity::Error); return tryResult1064
.propagateErr(); } const int64_t& walFileSize = tryResult1064
.inspect();
12424 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"
, 12430, 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\", 12430, 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"
, 12430, mozilla::dom::quota::Severity::Error); return tryResult1064
.propagateErr(); } const int64_t& walFileSize = tryResult1064
.inspect();
12425 // 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"
, 12430, 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\", 12430, 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"
, 12430, mozilla::dom::quota::Severity::Error); return tryResult1064
.propagateErr(); } const int64_t& walFileSize = tryResult1064
.inspect();
12426 ([](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"
, 12430, 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\", 12430, 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"
, 12430, mozilla::dom::quota::Severity::Error); return tryResult1064
.propagateErr(); } const int64_t& walFileSize = tryResult1064
.inspect();
12427 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"
, 12430, 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\", 12430, 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"
, 12430, mozilla::dom::quota::Severity::Error); return tryResult1064
.propagateErr(); } const int64_t& walFileSize = tryResult1064
.inspect();
12428 }),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"
, 12430, 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\", 12430, 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"
, 12430, mozilla::dom::quota::Severity::Error); return tryResult1064
.propagateErr(); } const int64_t& walFileSize = tryResult1064
.inspect();
12429 // 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"
, 12430, 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\", 12430, 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"
, 12430, mozilla::dom::quota::Severity::Error); return tryResult1064
.propagateErr(); } const int64_t& walFileSize = tryResult1064
.inspect();
12430 (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"
, 12430, 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\", 12430, 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"
, 12430, mozilla::dom::quota::Severity::Error); return tryResult1064
.propagateErr(); } const int64_t& walFileSize = tryResult1064
.inspect();
;
12431 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"
, 12431); AnnotateMozCrashReason("MOZ_ASSERT" "(" "walFileSize >= 0"
")"); do { *((volatile int*)__null) = 12431; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12432 *aUsageInfo += DatabaseUsageType(Some(uint64_t(walFileSize)));
12433 }
12434
12435 {
12436 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"
, 12437, mozilla::dom::quota::Severity::Error); return tryResult1065
.propagateErr(); } const auto& fileUsage = tryResult1065.
inspect();
12437 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"
, 12437, mozilla::dom::quota::Severity::Error); return tryResult1065
.propagateErr(); } const auto& fileUsage = tryResult1065.
inspect();
;
12438
12439 *aUsageInfo += fileUsage;
12440 }
12441 }
12442 }
12443
12444 return NS_OK;
12445}
12446
12447void QuotaClient::OnOriginClearCompleted(PersistenceType aPersistenceType,
12448 const nsACString& aOrigin) {
12449 AssertIsOnIOThread();
12450
12451 if (IndexedDatabaseManager* mgr = IndexedDatabaseManager::Get()) {
12452 mgr->InvalidateFileManagers(aPersistenceType, aOrigin);
12453 }
12454}
12455
12456void QuotaClient::OnRepositoryClearCompleted(PersistenceType aPersistenceType) {
12457 AssertIsOnIOThread();
12458
12459 if (IndexedDatabaseManager* mgr = IndexedDatabaseManager::Get()) {
12460 mgr->InvalidateFileManagers(aPersistenceType);
12461 }
12462}
12463
12464void QuotaClient::ReleaseIOThreadObjects() {
12465 AssertIsOnIOThread();
12466
12467 if (IndexedDatabaseManager* mgr = IndexedDatabaseManager::Get()) {
12468 mgr->InvalidateAllFileManagers();
12469 }
12470}
12471
12472void QuotaClient::AbortOperationsForLocks(
12473 const DirectoryLockIdTable& aDirectoryLockIds) {
12474 AssertIsOnBackgroundThread();
12475
12476 InvalidateLiveDatabasesMatching([&aDirectoryLockIds](const auto& database) {
12477 // If the database is registered in gLiveDatabaseHashtable then it must have
12478 // a directory lock.
12479 return IsLockForObjectContainedInLockTable(database, aDirectoryLockIds);
12480 });
12481}
12482
12483void QuotaClient::AbortOperationsForProcess(ContentParentId aContentParentId) {
12484 AssertIsOnBackgroundThread();
12485
12486 InvalidateLiveDatabasesMatching([&aContentParentId](const auto& database) {
12487 return database.IsOwnedByProcess(aContentParentId);
12488 });
12489}
12490
12491void QuotaClient::AbortAllOperations() {
12492 AssertIsOnBackgroundThread();
12493
12494 AbortAllMaintenances();
12495
12496 InvalidateLiveDatabasesMatching([](const auto&) { return true; });
12497}
12498
12499void QuotaClient::StartIdleMaintenance() {
12500 AssertIsOnBackgroundThread();
12501 if (IsShuttingDownOnBackgroundThread()) {
12502 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"
, 12502); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"!IsShuttingDownOnBackgroundThread()" ")"); do { *((volatile
int*)__null) = 12502; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false)
;
12503 return;
12504 }
12505
12506 DoMaintenance();
12507}
12508
12509void QuotaClient::StopIdleMaintenance() {
12510 AssertIsOnBackgroundThread();
12511
12512 AbortAllMaintenances();
12513}
12514
12515void QuotaClient::InitiateShutdown() {
12516 AssertIsOnBackgroundThread();
12517 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"
, 12517); AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsShuttingDownOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 12517; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12518
12519 if (mDeleteTimer) {
12520 // QuotaClient::AsyncDeleteFile will not schedule new timers beyond
12521 // shutdown. And we expect all critical (PBM) deletions to have been
12522 // triggered before this point via ClearPrivateRepository (w/out using
12523 // DeleteFilesRunnable at all).
12524 mDeleteTimer->Cancel();
12525 mDeleteTimer = nullptr;
12526 mPendingDeleteInfos.Clear();
12527 }
12528
12529 AbortAllOperations();
12530}
12531
12532bool QuotaClient::IsShutdownCompleted() const {
12533 return (!gFactoryOps || gFactoryOps->IsEmpty()) &&
12534 (!gLiveDatabaseHashtable || !gLiveDatabaseHashtable->Count()) &&
12535 !mCurrentMaintenance && !DeleteFilesRunnable::IsDeletionPending();
12536}
12537
12538void QuotaClient::ForceKillActors() {
12539 // Currently we don't implement force killing actors.
12540}
12541
12542nsCString QuotaClient::GetShutdownStatus() const {
12543 AssertIsOnBackgroundThread();
12544
12545 nsCString data;
12546
12547 if (gFactoryOps && !gFactoryOps->IsEmpty()) {
12548 data.Append("FactoryOperations: "_ns +
12549 IntToCString(static_cast<uint32_t>(gFactoryOps->Length())) +
12550 " ("_ns);
12551
12552 // XXX It might be confusing to remove duplicates here, as the actual list
12553 // won't match the count then.
12554 nsTHashSet<nsCString> ids;
12555 std::transform(gFactoryOps->cbegin(), gFactoryOps->cend(),
12556 MakeInserter(ids), [](const auto& factoryOp) {
12557 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"
, 12557); AnnotateMozCrashReason("MOZ_ASSERT" "(" "factoryOp"
")"); do { *((volatile int*)__null) = 12557; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12558
12559 nsCString id;
12560 factoryOp->Stringify(id);
12561 return id;
12562 });
12563
12564 StringJoinAppend(data, ", "_ns, ids);
12565
12566 data.Append(")\n");
12567 }
12568
12569 if (gLiveDatabaseHashtable && gLiveDatabaseHashtable->Count()) {
12570 data.Append("LiveDatabases: "_ns +
12571 IntToCString(gLiveDatabaseHashtable->Count()) + " ("_ns);
12572
12573 // XXX What's the purpose of adding these to a hashtable before joining them
12574 // to the string? (Maybe this used to be an ordered container before???)
12575 nsTHashSet<nsCString> ids;
12576
12577 for (const auto& entry : gLiveDatabaseHashtable->Values()) {
12578 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"
, 12578); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry" ")"
); do { *((volatile int*)__null) = 12578; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
12579
12580 std::transform(entry->mLiveDatabases.cbegin(),
12581 entry->mLiveDatabases.cend(), MakeInserter(ids),
12582 [](const auto& database) {
12583 nsCString id;
12584 database->Stringify(id);
12585 return id;
12586 });
12587 }
12588
12589 StringJoinAppend(data, ", "_ns, ids);
12590
12591 data.Append(")\n");
12592 }
12593
12594 if (mCurrentMaintenance) {
12595 data.Append("IdleMaintenance: 1 (");
12596 mCurrentMaintenance->Stringify(data);
12597 data.Append(")\n");
12598 }
12599
12600 return data;
12601}
12602
12603void QuotaClient::FinalizeShutdown() {
12604 RefPtr<ConnectionPool> connectionPool = gConnectionPool.get();
12605 if (connectionPool) {
12606 connectionPool->Shutdown();
12607
12608 gConnectionPool = nullptr;
12609 }
12610
12611 if (mMaintenanceThreadPool) {
12612 mMaintenanceThreadPool->Shutdown();
12613 mMaintenanceThreadPool = nullptr;
12614 }
12615}
12616
12617void QuotaClient::DeleteTimerCallback(nsITimer* aTimer, void* aClosure) {
12618 AssertIsOnBackgroundThread();
12619 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"
, 12619); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aTimer" ")"
); do { *((volatile int*)__null) = 12619; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
12620
12621 // Even though we do not schedule new timers after shutdown has started,
12622 // an already existing one might fire afterwards (actually we think it
12623 // shouldn't, but there is no reason to enforce this invariant). We can
12624 // just ignore it, the cleanup work is done in InitiateShutdown.
12625 if (NS_WARN_IF(IsShuttingDownOnBackgroundThread())NS_warn_if_impl(IsShuttingDownOnBackgroundThread(), "IsShuttingDownOnBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12625)
) {
12626 return;
12627 }
12628
12629 auto* const self = static_cast<QuotaClient*>(aClosure);
12630 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"
, 12630); AnnotateMozCrashReason("MOZ_ASSERT" "(" "self" ")")
; do { *((volatile int*)__null) = 12630; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
12631 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"
, 12631); AnnotateMozCrashReason("MOZ_ASSERT" "(" "self->mDeleteTimer"
")"); do { *((volatile int*)__null) = 12631; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12632 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"
, 12632); AnnotateMozCrashReason("MOZ_ASSERT" "(" "SameCOMIdentity(self->mDeleteTimer, aTimer)"
")"); do { *((volatile int*)__null) = 12632; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12633
12634 for (const auto& pendingDeleteInfoEntry : self->mPendingDeleteInfos) {
12635 const auto& key = pendingDeleteInfoEntry.GetKey();
12636 const auto& value = pendingDeleteInfoEntry.GetData();
12637 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"
, 12637); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!value->IsEmpty()"
")"); do { *((volatile int*)__null) = 12637; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12638
12639 RefPtr<DeleteFilesRunnable> runnable = new DeleteFilesRunnable(
12640 SafeRefPtr{key, AcquireStrongRefFromRawPtr{}}, std::move(*value));
12641
12642 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"
, 12642); AnnotateMozCrashReason("MOZ_ASSERT" "(" "value->IsEmpty()"
")"); do { *((volatile int*)__null) = 12642; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12643
12644 runnable->RunImmediately();
12645 }
12646
12647 self->mPendingDeleteInfos.Clear();
12648}
12649
12650void QuotaClient::AbortAllMaintenances() {
12651 if (mCurrentMaintenance) {
12652 mCurrentMaintenance->Abort();
12653 }
12654
12655 for (const auto& maintenance : mMaintenanceQueue) {
12656 maintenance->Abort();
12657 }
12658}
12659
12660Result<nsCOMPtr<nsIFile>, nsresult> QuotaClient::GetDirectory(
12661 const OriginMetadata& aOriginMetadata) {
12662 QuotaManager* const quotaManager = QuotaManager::Get();
12663 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"
, 12663); MOZ_PretendNoReturn(); } } while (0)
;
12664
12665 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"
, 12666, mozilla::dom::quota::Severity::Error); return tryResult1066
.propagateErr(); } const auto& directory = tryResult1066.
inspect();
12666 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"
, 12666, mozilla::dom::quota::Severity::Error); return tryResult1066
.propagateErr(); } const auto& directory = tryResult1066.
inspect();
;
12667
12668 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"
, 12668); AnnotateMozCrashReason("MOZ_ASSERT" "(" "directory"
")"); do { *((volatile int*)__null) = 12668; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12669
12670 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"
, 12671, mozilla::dom::quota::Severity::Error); return tryResult1067
.propagateErr(); }}
12671 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"
, 12671, mozilla::dom::quota::Severity::Error); return tryResult1067
.propagateErr(); }}
;
12672
12673 return directory;
12674}
12675
12676template <QuotaClient::ObsoleteFilenamesHandling ObsoleteFilenames>
12677Result<QuotaClient::GetDatabaseFilenamesResult<ObsoleteFilenames>, nsresult>
12678QuotaClient::GetDatabaseFilenames(nsIFile& aDirectory,
12679 const AtomicBool& aCanceled) {
12680 AssertIsOnIOThread();
12681
12682 GetDatabaseFilenamesResult<ObsoleteFilenames> result;
12683
12684 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12685 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12686 [&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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12687 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12688 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12689
12690 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12691
12692 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12693 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12694 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12695 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12696
12697 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12698 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12699 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12700 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12701 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12702 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12703 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12704 }{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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12705 }{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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12706
12707 // 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12708 // 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12709 // 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12710 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12711 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12712 }{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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12713
12714 // 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12715 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12716 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12717 }{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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12718
12719 // 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12720 // 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12721 // 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12722 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12723 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12724 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12725 }{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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12726
12727 // 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12728 // 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12729 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12730 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12731 }{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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12732
12733 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12734 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12735 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12736 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12737 }{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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12738
12739 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12740 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12741 }{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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12742
12743 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12744 // 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12745 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12746 }{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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12747
12748 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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
12749 })){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"
, 12688, 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"
, 12690, 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"
, 12735); 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\", 12688, 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\", 12690, 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\", 12735); 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"
, 12749, mozilla::dom::quota::Severity::Error); return tryResult1070
.propagateErr(); }}
;
12750
12751 return result;
12752}
12753
12754void QuotaClient::ProcessMaintenanceQueue() {
12755 AssertIsOnBackgroundThread();
12756
12757 if (mCurrentMaintenance || mMaintenanceQueue.IsEmpty()) {
12758 return;
12759 }
12760
12761 mCurrentMaintenance = mMaintenanceQueue[0];
12762 mMaintenanceQueue.RemoveElementAt(0);
12763
12764 mCurrentMaintenance->RunImmediately();
12765}
12766
12767/*******************************************************************************
12768 * DeleteFilesRunnable
12769 ******************************************************************************/
12770
12771uint64_t DeleteFilesRunnable::sPendingRunnables = 0;
12772
12773DeleteFilesRunnable::DeleteFilesRunnable(
12774 SafeRefPtr<DatabaseFileManager> aFileManager, nsTArray<int64_t>&& aFileIds)
12775 : Runnable("dom::indexeddb::DeleteFilesRunnable"),
12776 mOwningEventTarget(GetCurrentSerialEventTarget()),
12777 mFileManager(std::move(aFileManager)),
12778 mFileIds(std::move(aFileIds)),
12779 mState(State_Initial) {}
12780
12781#ifdef DEBUG1
12782DeleteFilesRunnable::~DeleteFilesRunnable() {
12783 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"
, 12783); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDEBUGCountsAsPending"
")"); do { *((volatile int*)__null) = 12783; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12784}
12785#endif
12786
12787void DeleteFilesRunnable::RunImmediately() {
12788 AssertIsOnBackgroundThread();
12789 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"
, 12789); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State_Initial"
")"); do { *((volatile int*)__null) = 12789; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12790
12791 Unused << this->Run();
12792}
12793
12794void DeleteFilesRunnable::Open() {
12795 AssertIsOnBackgroundThread();
12796 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"
, 12796); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State_Initial"
")"); do { *((volatile int*)__null) = 12796; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12797
12798 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"
, 12798); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDEBUGCountsAsPending"
")"); do { *((volatile int*)__null) = 12798; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12799 sPendingRunnables++;
12800 DEBUGONLY(mDEBUGCountsAsPending = true)mDEBUGCountsAsPending = true;
12801
12802 QuotaManager* const quotaManager = QuotaManager::Get();
12803 if (NS_WARN_IF(!quotaManager)NS_warn_if_impl(!quotaManager, "!quotaManager", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12803)
) {
12804 Finish();
12805 return;
12806 }
12807
12808 mState = State_DirectoryOpenPending;
12809
12810 quotaManager
12811 ->OpenClientDirectory(
12812 {mFileManager->OriginMetadata(), quota::Client::IDB})
12813 ->Then(
12814 GetCurrentSerialEventTarget(), __func__,
12815 [self = RefPtr(this)](
12816 const ClientDirectoryLockPromise::ResolveOrRejectValue& aValue) {
12817 if (aValue.IsResolve()) {
12818 self->DirectoryLockAcquired(aValue.ResolveValue());
12819 } else {
12820 self->DirectoryLockFailed();
12821 }
12822 });
12823}
12824
12825void DeleteFilesRunnable::DoDatabaseWork() {
12826 AssertIsOnIOThread();
12827 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"
, 12827); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State_DatabaseWorkOpen"
")"); do { *((volatile int*)__null) = 12827; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12828
12829 if (!mFileManager->Invalidated()) {
12830 for (int64_t fileId : mFileIds) {
12831 if (NS_FAILED(mFileManager->SyncDeleteFile(fileId))((bool)(__builtin_expect(!!(NS_FAILED_impl(mFileManager->SyncDeleteFile
(fileId))), 0)))
) {
12832 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"
, 12832)
;
12833 }
12834 }
12835 }
12836
12837 Finish();
12838}
12839
12840void DeleteFilesRunnable::Finish() {
12841 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"
, 12841); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState != State_UnblockingOpen"
")"); do { *((volatile int*)__null) = 12841; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12842
12843 // Must set mState before dispatching otherwise we will race with the main
12844 // thread.
12845 mState = State_UnblockingOpen;
12846
12847 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 { static_assert( mozilla::detail
::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12847); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { *((volatile int*)__null) = 12847; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
12848}
12849
12850void DeleteFilesRunnable::UnblockOpen() {
12851 AssertIsOnBackgroundThread();
12852 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"
, 12852); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State_UnblockingOpen"
")"); do { *((volatile int*)__null) = 12852; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12853
12854 SafeDropDirectoryLock(mDirectoryLock);
12855
12856 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"
, 12856); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGCountsAsPending"
")"); do { *((volatile int*)__null) = 12856; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12857 sPendingRunnables--;
12858 DEBUGONLY(mDEBUGCountsAsPending = false)mDEBUGCountsAsPending = false;
12859
12860 mState = State_Completed;
12861}
12862
12863NS_IMETHODIMPnsresult
12864DeleteFilesRunnable::Run() {
12865 switch (mState) {
12866 case State_Initial:
12867 Open();
12868 break;
12869
12870 case State_DatabaseWorkOpen:
12871 DoDatabaseWork();
12872 break;
12873
12874 case State_UnblockingOpen:
12875 UnblockOpen();
12876 break;
12877
12878 case State_DirectoryOpenPending:
12879 default:
12880 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"
, 12880); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 12880; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
12881 }
12882
12883 return NS_OK;
12884}
12885
12886void DeleteFilesRunnable::DirectoryLockAcquired(DirectoryLock* aLock) {
12887 AssertIsOnBackgroundThread();
12888 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"
, 12888); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State_DirectoryOpenPending"
")"); do { *((volatile int*)__null) = 12888; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12889 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"
, 12889); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLock"
")"); do { *((volatile int*)__null) = 12889; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12890
12891 mDirectoryLock = aLock;
12892
12893 QuotaManager* const quotaManager = QuotaManager::Get();
12894 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"
, 12894); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { *((volatile int*)__null) = 12894; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12895
12896 // Must set this before dispatching otherwise we will race with the IO thread
12897 mState = State_DatabaseWorkOpen;
12898
12899 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"
, 12901, mozilla::dom::quota::Severity::Error); [this](const nsresult
) { Finish(); }(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return ; }}
12900 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"
, 12901, mozilla::dom::quota::Severity::Error); [this](const nsresult
) { Finish(); }(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return ; }}
12901 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"
, 12901, mozilla::dom::quota::Severity::Error); [this](const nsresult
) { Finish(); }(tryTempError); constexpr const auto& func
__attribute__((__unused__)) = __func__; return ; }}
;
12902}
12903
12904void DeleteFilesRunnable::DirectoryLockFailed() {
12905 AssertIsOnBackgroundThread();
12906 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"
, 12906); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State_DirectoryOpenPending"
")"); do { *((volatile int*)__null) = 12906; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12907 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"
, 12907); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLock"
")"); do { *((volatile int*)__null) = 12907; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12908
12909 Finish();
12910}
12911
12912void Maintenance::Abort() {
12913 AssertIsOnBackgroundThread();
12914
12915 // Safe because mDatabaseMaintenances is modified
12916 // only in the background thread
12917 for (const auto& aDatabaseMaintenance : mDatabaseMaintenances) {
12918 aDatabaseMaintenance.GetData()->Abort();
12919 }
12920
12921 mAborted = true;
12922}
12923
12924void Maintenance::RegisterDatabaseMaintenance(
12925 DatabaseMaintenance* aDatabaseMaintenance) {
12926 AssertIsOnBackgroundThread();
12927 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"
, 12927); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseMaintenance"
")"); do { *((volatile int*)__null) = 12927; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12928 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"
, 12928); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginDatabaseMaintenance"
")"); do { *((volatile int*)__null) = 12928; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12929 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"
, 12930); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseMaintenances.Contains(aDatabaseMaintenance->DatabasePath())"
")"); do { *((volatile int*)__null) = 12930; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
12930 !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"
, 12930); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseMaintenances.Contains(aDatabaseMaintenance->DatabasePath())"
")"); do { *((volatile int*)__null) = 12930; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12931
12932 mDatabaseMaintenances.InsertOrUpdate(aDatabaseMaintenance->DatabasePath(),
12933 aDatabaseMaintenance);
12934}
12935
12936void Maintenance::UnregisterDatabaseMaintenance(
12937 DatabaseMaintenance* aDatabaseMaintenance) {
12938 AssertIsOnBackgroundThread();
12939 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"
, 12939); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseMaintenance"
")"); do { *((volatile int*)__null) = 12939; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12940 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"
, 12940); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForDatabaseMaintenancesToComplete"
")"); do { *((volatile int*)__null) = 12940; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12941 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"
, 12941); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseMaintenances.Get(aDatabaseMaintenance->DatabasePath())"
")"); do { *((volatile int*)__null) = 12941; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12942
12943 mDatabaseMaintenances.Remove(aDatabaseMaintenance->DatabasePath());
12944
12945 if (mDatabaseMaintenances.Count()) {
12946 return;
12947 }
12948
12949 for (const auto& completeCallback : mCompleteCallbacks) {
12950 MOZ_ALWAYS_SUCCEEDS(NS_DispatchToCurrentThread(completeCallback))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(NS_DispatchToCurrentThread(completeCallback))), 1)))), 1))) {
} else { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(NS_DispatchToCurrentThread(completeCallback))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 12950); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(NS_DispatchToCurrentThread(completeCallback))"
")"); do { *((volatile int*)__null) = 12950; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
12951 }
12952 mCompleteCallbacks.Clear();
12953
12954 mState = State::Finishing;
12955 Finish();
12956}
12957
12958void Maintenance::Stringify(nsACString& aResult) const {
12959 AssertIsOnBackgroundThread();
12960
12961 aResult.Append("DatabaseMaintenances: "_ns +
12962 IntToCString(mDatabaseMaintenances.Count()) + " ("_ns);
12963
12964 // XXX It might be confusing to remove duplicates here, as the actual list
12965 // won't match the count then.
12966 nsTHashSet<nsCString> ids;
12967 std::transform(mDatabaseMaintenances.Values().cbegin(),
12968 mDatabaseMaintenances.Values().cend(), MakeInserter(ids),
12969 [](const auto& entry) {
12970 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"
, 12970); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry" ")"
); do { *((volatile int*)__null) = 12970; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
12971
12972 nsCString id;
12973 entry->Stringify(id);
12974
12975 return id;
12976 });
12977
12978 StringJoinAppend(aResult, ", "_ns, ids);
12979
12980 aResult.Append(")");
12981}
12982
12983nsresult Maintenance::Start() {
12984 AssertIsOnBackgroundThread();
12985 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"
, 12985); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial"
")"); do { *((volatile int*)__null) = 12985; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
12986
12987 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"
, 12987)
||
12988 IsAborted()) {
12989 return NS_ERROR_ABORT;
12990 }
12991
12992 // Make sure that the IndexedDatabaseManager is running so that we can check
12993 // for low disk space mode.
12994
12995 if (IndexedDatabaseManager::Get()) {
12996 OpenDirectory();
12997 return NS_OK;
12998 }
12999
13000 mState = State::CreateIndexedDatabaseManager;
13001 MOZ_ALWAYS_SUCCEEDS(NS_DispatchToMainThread(this))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(NS_DispatchToMainThread(this))), 1)))), 1))) { } else { do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "NS_SUCCEEDED(NS_DispatchToMainThread(this))" ")"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13001); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(NS_DispatchToMainThread(this))" ")"); do
{ *((volatile int*)__null) = 13001; __attribute__((nomerge))
::abort(); } while (false); } } while (false); } } while (false
)
;
13002
13003 return NS_OK;
13004}
13005
13006nsresult Maintenance::CreateIndexedDatabaseManager() {
13007 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"
, 13007); AnnotateMozCrashReason("MOZ_ASSERT" "(" "NS_IsMainThread()"
")"); do { *((volatile int*)__null) = 13007; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13008 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"
, 13008); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::CreateIndexedDatabaseManager"
")"); do { *((volatile int*)__null) = 13008; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13009
13010 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"
, 13010)
||
13011 IsAborted()) {
13012 return NS_ERROR_ABORT;
13013 }
13014
13015 IndexedDatabaseManager* const mgr = IndexedDatabaseManager::GetOrCreate();
13016 if (NS_WARN_IF(!mgr)NS_warn_if_impl(!mgr, "!mgr", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13016)
) {
13017 return NS_ERROR_FAILURE;
13018 }
13019
13020 mState = State::IndexedDatabaseManagerOpen;
13021 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget
::DISPATCH_NORMAL))), 1)))), 1))) { } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13022); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { *((volatile int*)__null) = 13022; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
13022 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 { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13022); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { *((volatile int*)__null) = 13022; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
13023
13024 return NS_OK;
13025}
13026
13027nsresult Maintenance::OpenDirectory() {
13028 AssertIsOnBackgroundThread();
13029 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"
, 13030); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial || mState == State::IndexedDatabaseManagerOpen"
")"); do { *((volatile int*)__null) = 13030; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
13030 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"
, 13030); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial || mState == State::IndexedDatabaseManagerOpen"
")"); do { *((volatile int*)__null) = 13030; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13031 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"
, 13031); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLock"
")"); do { *((volatile int*)__null) = 13031; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13032 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"
, 13032); AnnotateMozCrashReason("MOZ_ASSERT" "(" "QuotaManager::Get()"
")"); do { *((volatile int*)__null) = 13032; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13033
13034 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"
, 13034)
||
13035 IsAborted()) {
13036 return NS_ERROR_ABORT;
13037 }
13038
13039 QuotaManager* quotaManager = QuotaManager::Get();
13040 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"
, 13040); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { *((volatile int*)__null) = 13040; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13041
13042 // Get a shared lock for <profile>/storage/*/*/idb
13043
13044 mState = State::DirectoryOpenPending;
13045
13046 quotaManager
13047 ->OpenStorageDirectory(
13048 PersistenceScope::CreateFromNull(), OriginScope::FromNull(),
13049 Nullable<Client::Type>(Client::IDB), /* aExclusive */ false,
13050 DirectoryLockCategory::None, SomeRef(mPendingDirectoryLock))
13051 ->Then(GetCurrentSerialEventTarget(), __func__,
13052 [self = RefPtr(this)](
13053 const UniversalDirectoryLockPromise::ResolveOrRejectValue&
13054 aValue) {
13055 if (aValue.IsResolve()) {
13056 self->DirectoryLockAcquired(aValue.ResolveValue());
13057 } else {
13058 self->DirectoryLockFailed();
13059 }
13060 });
13061
13062 return NS_OK;
13063}
13064
13065nsresult Maintenance::DirectoryOpen() {
13066 AssertIsOnBackgroundThread();
13067 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"
, 13067); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending"
")"); do { *((volatile int*)__null) = 13067; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13068 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"
, 13068); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock"
")"); do { *((volatile int*)__null) = 13068; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13069
13070 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"
, 13070)
||
13071 IsAborted()) {
13072 return NS_ERROR_ABORT;
13073 }
13074
13075 QuotaManager* const quotaManager = QuotaManager::Get();
13076 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"
, 13076); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { *((volatile int*)__null) = 13076; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13077
13078 mState = State::DirectoryWorkOpen;
13079
13080 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"
, 13082, 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); }}
13081 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"
, 13082, 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); }}
13082 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"
, 13082, 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); }}
;
13083
13084 return NS_OK;
13085}
13086
13087nsresult Maintenance::DirectoryWork() {
13088 AssertIsOnIOThread();
13089 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"
, 13089); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryWorkOpen"
")"); do { *((volatile int*)__null) = 13089; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13090
13091 // The storage directory is structured like this:
13092 //
13093 // <profile>/storage/<persistence>/<origin>/idb/*.sqlite
13094 //
13095 // We have to find all database files that match any persistence type and any
13096 // origin. We ignore anything out of the ordinary for now.
13097
13098 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"
, 13098)
||
13099 IsAborted()) {
13100 return NS_ERROR_ABORT;
13101 }
13102
13103 QuotaManager* const quotaManager = QuotaManager::Get();
13104 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"
, 13104); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { *((volatile int*)__null) = 13104; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13105
13106 // Since idle maintenance may occur before temporary storage is initialized,
13107 // make sure it's initialized here (all non-persistent origins need to be
13108 // cleaned up and quota info needs to be loaded for them).
13109
13110 // Don't fail whole idle maintenance in case of an error, the persistent
13111 // repository can still
13112 // be processed.
13113 const bool initTemporaryStorageFailed = [&quotaManager] {
13114 QM_TRY(MOZ_TO_RESULT({auto tryResult1073 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal
())); 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("ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13116, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())"
, tryTempError, true); }}
13115 quotaManager->EnsureTemporaryStorageIsInitializedInternal()),{auto tryResult1073 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal
())); 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("ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13116, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())"
, tryTempError, true); }}
13116 true){auto tryResult1073 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal
())); 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("ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13116, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())"
, tryTempError, true); }}
;
13117 return false;
13118 }();
13119
13120 const nsCOMPtr<nsIFile> storageDir =
13121 GetFileForPath(quotaManager->GetStoragePath());
13122 QM_TRY(OkIf(storageDir), NS_ERROR_FAILURE){auto tryResult1074 = (OkIf(storageDir)); static_assert(std::
is_empty_v<typename decltype(tryResult1074)::ok_type>);
if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1074.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(storageDir)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13122, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(storageDir)"
, tryTempError, NS_ERROR_FAILURE); }}
;
13123
13124 {
13125 QM_TRY_INSPECT(const bool& exists,auto tryResult1075 = (::mozilla::ToResultInvokeMember( (storageDir
), &::mozilla::detail::DerefedType<decltype(storageDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1075.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (storageDir), &::mozilla::detail::DerefedType<decltype(storageDir)>::Exists)"
, tryResult1075.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13126, mozilla::dom::quota::Severity::Error); return tryResult1075
.propagateErr(); } const bool& exists = tryResult1075.inspect
();
13126 MOZ_TO_RESULT_INVOKE_MEMBER(storageDir, Exists))auto tryResult1075 = (::mozilla::ToResultInvokeMember( (storageDir
), &::mozilla::detail::DerefedType<decltype(storageDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1075.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (storageDir), &::mozilla::detail::DerefedType<decltype(storageDir)>::Exists)"
, tryResult1075.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13126, mozilla::dom::quota::Severity::Error); return tryResult1075
.propagateErr(); } const bool& exists = tryResult1075.inspect
();
;
13127
13128 // XXX No warning here?
13129 if (!exists) {
13130 return NS_ERROR_NOT_AVAILABLE;
13131 }
13132 }
13133
13134 {
13135 QM_TRY_INSPECT(const bool& isDirectory,auto tryResult1076 = (::mozilla::ToResultInvokeMember( (storageDir
), &::mozilla::detail::DerefedType<decltype(storageDir
)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1076.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (storageDir), &::mozilla::detail::DerefedType<decltype(storageDir)>::IsDirectory)"
, tryResult1076.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13136, mozilla::dom::quota::Severity::Error); return tryResult1076
.propagateErr(); } const bool& isDirectory = tryResult1076
.inspect();
13136 MOZ_TO_RESULT_INVOKE_MEMBER(storageDir, IsDirectory))auto tryResult1076 = (::mozilla::ToResultInvokeMember( (storageDir
), &::mozilla::detail::DerefedType<decltype(storageDir
)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1076.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (storageDir), &::mozilla::detail::DerefedType<decltype(storageDir)>::IsDirectory)"
, tryResult1076.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13136, mozilla::dom::quota::Severity::Error); return tryResult1076
.propagateErr(); } const bool& isDirectory = tryResult1076
.inspect();
;
13137
13138 QM_TRY(OkIf(isDirectory), NS_ERROR_FAILURE){auto tryResult1077 = (OkIf(isDirectory)); static_assert(std::
is_empty_v<typename decltype(tryResult1077)::ok_type>);
if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1077.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(isDirectory)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13138, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)"
, tryTempError, NS_ERROR_FAILURE); }}
;
13139 }
13140
13141 // There are currently only 4 persistence types, and we want to iterate them
13142 // in this order:
13143 static const PersistenceType kPersistenceTypes[] = {
13144 PERSISTENCE_TYPE_PERSISTENT, PERSISTENCE_TYPE_DEFAULT,
13145 PERSISTENCE_TYPE_TEMPORARY, PERSISTENCE_TYPE_PRIVATE};
13146
13147 static_assert(
13148 ArrayLength(kPersistenceTypes) == size_t(PERSISTENCE_TYPE_INVALID),
13149 "Something changed with available persistence types!");
13150
13151 constexpr auto idbDirName =
13152 NS_LITERAL_STRING_FROM_CSTRING(IDB_DIRECTORY_NAME)static_cast<const nsLiteralString&>( nsLiteralString
(u"" "idb"))
;
13153
13154 for (const PersistenceType persistenceType : kPersistenceTypes) {
13155 // Loop over "<persistence>" directories.
13156 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"
, 13156)
||
13157 IsAborted()) {
13158 return NS_ERROR_ABORT;
13159 }
13160
13161 // Don't do any maintenance for private browsing databases, which are only
13162 // temporary.
13163 if (persistenceType == PERSISTENCE_TYPE_PRIVATE) {
13164 continue;
13165 }
13166
13167 const bool persistent = persistenceType == PERSISTENCE_TYPE_PERSISTENT;
13168
13169 if (!persistent && initTemporaryStorageFailed) {
13170 // Non-persistent (best effort) repositories can't be processed if
13171 // temporary storage initialization failed.
13172 continue;
13173 }
13174
13175 // XXX persistenceType == PERSISTENCE_TYPE_PERSISTENT shouldn't be a special
13176 // case...
13177 const auto persistenceTypeString =
13178 persistenceType == PERSISTENCE_TYPE_PERSISTENT
13179 ? "permanent"_ns
13180 : PersistenceTypeToString(persistenceType);
13181
13182 QM_TRY_INSPECT(const auto& persistenceDir,auto tryResult1078 = (CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16
( persistenceTypeString))); if ((__builtin_expect(!!(tryResult1078
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16( persistenceTypeString))"
, tryResult1078.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13184, mozilla::dom::quota::Severity::Error); return tryResult1078
.propagateErr(); } const auto& persistenceDir = tryResult1078
.inspect();
13183 CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16(auto tryResult1078 = (CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16
( persistenceTypeString))); if ((__builtin_expect(!!(tryResult1078
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16( persistenceTypeString))"
, tryResult1078.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13184, mozilla::dom::quota::Severity::Error); return tryResult1078
.propagateErr(); } const auto& persistenceDir = tryResult1078
.inspect();
13184 persistenceTypeString)))auto tryResult1078 = (CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16
( persistenceTypeString))); if ((__builtin_expect(!!(tryResult1078
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16( persistenceTypeString))"
, tryResult1078.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13184, mozilla::dom::quota::Severity::Error); return tryResult1078
.propagateErr(); } const auto& persistenceDir = tryResult1078
.inspect();
;
13185
13186 {
13187 QM_TRY_INSPECT(const bool& exists,auto tryResult1079 = (::mozilla::ToResultInvokeMember( (persistenceDir
), &::mozilla::detail::DerefedType<decltype(persistenceDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1079.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (persistenceDir), &::mozilla::detail::DerefedType<decltype(persistenceDir)>::Exists)"
, tryResult1079.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13188, mozilla::dom::quota::Severity::Error); return tryResult1079
.propagateErr(); } const bool& exists = tryResult1079.inspect
();
13188 MOZ_TO_RESULT_INVOKE_MEMBER(persistenceDir, Exists))auto tryResult1079 = (::mozilla::ToResultInvokeMember( (persistenceDir
), &::mozilla::detail::DerefedType<decltype(persistenceDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1079.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (persistenceDir), &::mozilla::detail::DerefedType<decltype(persistenceDir)>::Exists)"
, tryResult1079.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13188, mozilla::dom::quota::Severity::Error); return tryResult1079
.propagateErr(); } const bool& exists = tryResult1079.inspect
();
;
13189
13190 if (!exists) {
13191 continue;
13192 }
13193
13194 QM_TRY_INSPECT(const bool& isDirectory,auto tryResult1080 = (::mozilla::ToResultInvokeMember( (persistenceDir
), &::mozilla::detail::DerefedType<decltype(persistenceDir
)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1080.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (persistenceDir), &::mozilla::detail::DerefedType<decltype(persistenceDir)>::IsDirectory)"
, tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13195, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const bool& isDirectory = tryResult1080
.inspect();
13195 MOZ_TO_RESULT_INVOKE_MEMBER(persistenceDir, IsDirectory))auto tryResult1080 = (::mozilla::ToResultInvokeMember( (persistenceDir
), &::mozilla::detail::DerefedType<decltype(persistenceDir
)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1080.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (persistenceDir), &::mozilla::detail::DerefedType<decltype(persistenceDir)>::IsDirectory)"
, tryResult1080.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13195, mozilla::dom::quota::Severity::Error); return tryResult1080
.propagateErr(); } const bool& isDirectory = tryResult1080
.inspect();
;
13196
13197 if (NS_WARN_IF(!isDirectory)NS_warn_if_impl(!isDirectory, "!isDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13197)
) {
13198 continue;
13199 }
13200 }
13201
13202 // Loop over "<origin>/idb" directories.
13203 QM_TRY(CollectEachFile({auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13204 *persistenceDir,{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13205 [this, &quotaManager, persistent, persistenceType, &idbDirName]({auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13206 const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> {{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13207 if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread()) ||{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13208 IsAborted()) {{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13209 return Err(NS_ERROR_ABORT);{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13210 }{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13211
13212 QM_TRY_INSPECT(const auto& dirEntryKind, GetDirEntryKind(*originDir));{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13213
13214 switch (dirEntryKind) {{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13215 case nsIFileKind::ExistsAsFile:{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13216 break;{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13217
13218 case nsIFileKind::ExistsAsDirectory: {{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13219 // Get the necessary information about the origin{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13220 // (GetOriginMetadata also checks if it's a valid origin).{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13221
13222 QM_TRY_INSPECT(const auto& metadata,{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13223 quotaManager->GetOriginMetadata(originDir),{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13224 // Not much we can do here...{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13225 Ok{});{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13226
13227 // We now use a dedicated repository for private browsing{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13228 // databases, but there could be some forgotten private browsing{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13229 // databases in other repositories, so it's better to check for{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13230 // that and don't do any maintenance for such databases.{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13231 if (metadata.mIsPrivate) {{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13232 return Ok{};{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13233 }{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13234
13235 if (persistent) {{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13236 // We have to check that all persistent origins are cleaned up,{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13237 // but there's no way to do that by one call, we need to{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13238 // initialize (and possibly clean up) them one by one{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13239 // (EnsureTemporaryStorageIsInitializedInternal cleans up only{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13240 // non-persistent origins).{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13241
13242 QM_TRY_UNWRAP({auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13243 const DebugOnly<bool> created,{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13244 quotaManager{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13245 ->EnsurePersistentOriginIsInitializedInternal(metadata){auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13246 .map([](const auto& res) { return res.second; }),{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13247 // Not much we can do here...{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13248 Ok{});{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13249
13250 // We found this origin directory by traversing the repository,{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13251 // so EnsurePersistentOriginIsInitializedInternal shouldn't{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13252 // report that a new directory has been created.{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13253 MOZ_ASSERT(!created);{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13254 }{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13255
13256 QM_TRY_INSPECT(const auto& idbDir,{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13257 CloneFileAndAppend(*originDir, idbDirName));{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13258
13259 QM_TRY_INSPECT(const bool& exists,{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13260 MOZ_TO_RESULT_INVOKE_MEMBER(idbDir, Exists));{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13261
13262 if (!exists) {{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13263 return Ok{};{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13264 }{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13265
13266 QM_TRY_INSPECT(const bool& isDirectory,{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13267 MOZ_TO_RESULT_INVOKE_MEMBER(idbDir, IsDirectory));{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13268
13269 QM_TRY(OkIf(isDirectory), Ok{});{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13270
13271 nsTArray<nsString> databasePaths;{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13272
13273 // Loop over files in the "idb" directory.{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13274 QM_TRY(CollectEachFile({auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13275 *idbDir,{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13276 [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile){auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13277 -> Result<Ok, nsresult> {{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13278 if (NS_WARN_IF(QuotaClient::{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13279 IsShuttingDownOnNonBackgroundThread()) ||{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13280 IsAborted()) {{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13281 return Err(NS_ERROR_ABORT);{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13282 }{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13283
13284 QM_TRY_UNWRAP(auto idbFilePath,{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13285 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED({auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13286 nsString, idbDirFile, GetPath));{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13287
13288 if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) {{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13289 return Ok{};{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13290 }{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13291
13292 QM_TRY_INSPECT(const auto& dirEntryKind,{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13293 GetDirEntryKind(*idbDirFile));{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13294
13295 switch (dirEntryKind) {{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13296 case nsIFileKind::ExistsAsDirectory:{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13297 break;{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13298
13299 case nsIFileKind::ExistsAsFile:{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13300 // Found a database.{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13301
13302 MOZ_ASSERT(!databasePaths.Contains(idbFilePath));{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13303
13304 databasePaths.AppendElement(std::move(idbFilePath));{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13305 break;{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13306
13307 case nsIFileKind::DoesNotExist:{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13308 // Ignore files that got removed externally while{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13309 // iterating.{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13310 break;{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13311 }{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13312
13313 return Ok{};{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13314 }));{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13315
13316 if (!databasePaths.IsEmpty()) {{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13317 mDirectoryInfos.EmplaceBack(persistenceType, metadata,{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13318 std::move(databasePaths));{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13319 }{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13320
13321 break;{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13322 }{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13323
13324 case nsIFileKind::DoesNotExist:{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13325 // Ignore files that got removed externally while iterating.{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13326 break;{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13327 }{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13328
13329 return Ok{};{auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
13330 })){auto tryResult1091 = (CollectEachFile( *persistenceDir, [this
, &quotaManager, persistent, 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"
, 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect
(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetDirEntryKind(*originDir)", tryResult1081.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13212, mozilla::dom::quota::Severity::Error); return tryResult1081
.propagateErr(); } const auto& dirEntryKind = tryResult1081
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile
: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082
= (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect
(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota
::HandleError("quotaManager->GetOriginMetadata(originDir)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13225, 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 = tryResult1082
.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent
) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal
(metadata) .map([](const auto& res) { return res.second; }
)); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr
(); mozilla::dom::quota::HandleError("quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13248, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })"
, tryTempError, Ok{}); } const DebugOnly<bool> created =
tryResult1083.unwrap();; do { static_assert( mozilla::detail
::AssertionConditionType<decltype(!created)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("!created", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!created" ")"
); do { *((volatile int*)__null) = 13253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } auto tryResult1084
= (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect
(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*originDir, idbDirName)", tryResult1084.
inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13257, mozilla::dom::quota::Severity::Error); return tryResult1084
.propagateErr(); } const auto& idbDir = tryResult1084.inspect
();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (
idbDir), &::mozilla::detail::DerefedType<decltype(idbDir
)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)"
, tryResult1085.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13260, mozilla::dom::quota::Severity::Error); return tryResult1085
.propagateErr(); } const bool& exists = tryResult1085.inspect
();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla
::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType
<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect
(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)"
, tryResult1086.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13267, mozilla::dom::quota::Severity::Error); return tryResult1086
.propagateErr(); } const bool& isDirectory = tryResult1086
.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert
(std::is_empty_v<typename decltype(tryResult1087)::ok_type
>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1087
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(isDirectory)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &
databasePaths](const nsCOMPtr<nsIFile>& idbDirFile)
-> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient
:: IsShuttingDownOnNonBackgroundThread(), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto
tryResult1088 = (::mozilla::ToResultInvoke< nsString>(
::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect
(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))"
, tryResult1088.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13286, mozilla::dom::quota::Severity::Error); return tryResult1088
.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();
; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok
{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if
((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla
::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1089
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13293, mozilla::dom::quota::Severity::Error); return tryResult1089
.propagateErr(); } const auto& dirEntryKind = tryResult1089
.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory
: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla
::detail::AssertionConditionType<decltype(!databasePaths.Contains
(idbFilePath))>::isValid, "invalid assertion condition"); if
((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath
)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("!databasePaths.Contains(idbFilePath)", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13302); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)"
")"); do { *((volatile int*)__null) = 13302; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); databasePaths
.AppendElement(std::move(idbFilePath)); break; case nsIFileKind
::DoesNotExist: break; } return Ok{}; })); static_assert(std::
is_empty_v<typename decltype(tryResult1090)::ok_type>);
if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1090.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13314, mozilla::dom::quota::Severity::Error); return tryResult1090
.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
(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091
.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectEachFile( *persistenceDir, [this, &quotaManager, persistent, 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\", 13207) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1081 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1081.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13212, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& dirEntryKind = tryResult1081.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1082 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1082.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13225, 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 = tryResult1082.inspect();; if (metadata.mIsPrivate) { return Ok{}; } if (persistent) { auto tryResult1083 = (quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })); if ((__builtin_expect(!!(tryResult1083.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1083.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13248, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager ->EnsurePersistentOriginIsInitializedInternal(metadata) .map([](const auto& res) { return res.second; })\", tryTempError, Ok{}); } const DebugOnly<bool> created = tryResult1083.unwrap();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!created)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!created))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!created\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13253); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!created\" \")\"); do { *((volatile int*)__null) = 13253; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } auto tryResult1084 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1084.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1084.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13257, mozilla::dom::quota::Severity::Error); return tryResult1084.propagateErr(); } const auto& idbDir = tryResult1084.inspect();; auto tryResult1085 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)); if ((__builtin_expect(!!(tryResult1085.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists)\", tryResult1085.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13260, mozilla::dom::quota::Severity::Error); return tryResult1085.propagateErr(); } const bool& exists = tryResult1085.inspect();; if (!exists) { return Ok{}; } auto tryResult1086 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)); if ((__builtin_expect(!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory)\", tryResult1086.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13267, mozilla::dom::quota::Severity::Error); return tryResult1086.propagateErr(); } const bool& isDirectory = tryResult1086.inspect();; {auto tryResult1087 = (OkIf(isDirectory)); static_assert(std::is_empty_v<typename decltype(tryResult1087)::ok_type>); if ((__builtin_expect(!!(tryResult1087.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1087.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(isDirectory)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13269, 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 tryResult1090 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\", tryResult1088.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1089.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13302); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { 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\\\", 13279) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1088 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile))\\\", tryResult1088.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13286, mozilla::dom::quota::Severity::Error); return tryResult1088.propagateErr(); } auto idbFilePath = tryResult1088.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1089 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1089.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13293, mozilla::dom::quota::Severity::Error); return tryResult1089.propagateErr(); } const auto& dirEntryKind = tryResult1089.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 13302); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { *((volatile int*)__null) = 13302; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1090.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13314, mozilla::dom::quota::Severity::Error); return tryResult1090.propagateErr(); }}; if (!databasePaths.IsEmpty()) { mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })"
, tryResult1091.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13330, mozilla::dom::quota::Severity::Error); return tryResult1091
.propagateErr(); }}
;
13331 }
13332
13333 mState = State::BeginDatabaseMaintenance;
13334
13335 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget
::DISPATCH_NORMAL))), 1)))), 1))) { } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13336); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { *((volatile int*)__null) = 13336; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
13336 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 { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13336); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { *((volatile int*)__null) = 13336; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
13337
13338 return NS_OK;
13339}
13340
13341nsresult Maintenance::BeginDatabaseMaintenance() {
13342 AssertIsOnBackgroundThread();
13343 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"
, 13343); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginDatabaseMaintenance"
")"); do { *((volatile int*)__null) = 13343; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13344
13345 class MOZ_STACK_CLASS Helper final {
13346 public:
13347 static bool IsSafeToRunMaintenance(const nsAString& aDatabasePath) {
13348 if (gFactoryOps) {
13349 for (uint32_t index = gFactoryOps->Length(); index > 0; index--) {
13350 CheckedUnsafePtr<FactoryOp>& existingOp = (*gFactoryOps)[index - 1];
13351
13352 if (existingOp->DatabaseNameRef().isNothing()) {
13353 return false;
13354 }
13355
13356 if (!existingOp->DatabaseFilePathIsKnown()) {
13357 continue;
13358 }
13359
13360 if (existingOp->DatabaseFilePath() == aDatabasePath) {
13361 return false;
13362 }
13363 }
13364 }
13365
13366 if (gLiveDatabaseHashtable) {
13367 return std::all_of(
13368 gLiveDatabaseHashtable->Values().cbegin(),
13369 gLiveDatabaseHashtable->Values().cend(),
13370 [&aDatabasePath](const auto& liveDatabasesEntry) {
13371 const auto& liveDatabases = liveDatabasesEntry->mLiveDatabases;
13372 return std::all_of(liveDatabases.cbegin(), liveDatabases.cend(),
13373 [&aDatabasePath](const auto& database) {
13374 return database->FilePath() != aDatabasePath;
13375 });
13376 });
13377 }
13378
13379 return true;
13380 }
13381 };
13382
13383 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"
, 13383)
||
13384 IsAborted()) {
13385 return NS_ERROR_ABORT;
13386 }
13387
13388 RefPtr<nsThreadPool> threadPool;
13389
13390 for (DirectoryInfo& directoryInfo : mDirectoryInfos) {
13391 for (const nsAString& databasePath : *directoryInfo.mDatabasePaths) {
13392 if (Helper::IsSafeToRunMaintenance(databasePath)) {
13393 RefPtr<DirectoryLock> directoryLock =
13394 mDirectoryLock->SpecializeForClient(directoryInfo.mPersistenceType,
13395 *directoryInfo.mOriginMetadata,
13396 Client::IDB);
13397 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"
, 13397); AnnotateMozCrashReason("MOZ_ASSERT" "(" "directoryLock"
")"); do { *((volatile int*)__null) = 13397; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13398
13399 // No key needs to be passed here, because we skip encrypted databases
13400 // in DoDirectoryWork as long as they are only used in private browsing
13401 // mode.
13402 const auto databaseMaintenance = MakeRefPtr<DatabaseMaintenance>(
13403 this, std::move(directoryLock), directoryInfo.mPersistenceType,
13404 *directoryInfo.mOriginMetadata, databasePath, Nothing{});
13405
13406 if (!threadPool) {
13407 threadPool = mQuotaClient->GetOrCreateThreadPool();
13408 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"
, 13408); AnnotateMozCrashReason("MOZ_ASSERT" "(" "threadPool"
")"); do { *((volatile int*)__null) = 13408; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13409 }
13410
13411 // Perform database maintenance on a TaskQueue, as database connections
13412 // require a serial event target when being opened in order to allow
13413 // memory pressure notifications to clear caches (bug 1806751).
13414 const auto taskQueue = TaskQueue::Create(
13415 do_AddRef(threadPool), "IndexedDB Database Maintenance");
13416
13417 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(taskQueue->Dispatch(databaseMaintenance, nsIEventTarget::
DISPATCH_NORMAL))), 1)))), 1))) { } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "NS_SUCCEEDED(taskQueue->Dispatch(databaseMaintenance, nsIEventTarget::DISPATCH_NORMAL))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13418); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(taskQueue->Dispatch(databaseMaintenance, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { *((volatile int*)__null) = 13418; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
13418 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 { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "NS_SUCCEEDED(taskQueue->Dispatch(databaseMaintenance, nsIEventTarget::DISPATCH_NORMAL))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13418); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(taskQueue->Dispatch(databaseMaintenance, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { *((volatile int*)__null) = 13418; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
13419
13420 RegisterDatabaseMaintenance(databaseMaintenance);
13421 }
13422 }
13423 }
13424
13425 mDirectoryInfos.Clear();
13426
13427 DropDirectoryLock(mDirectoryLock);
13428
13429 if (mDatabaseMaintenances.Count()) {
13430 mState = State::WaitingForDatabaseMaintenancesToComplete;
13431 } else {
13432 mState = State::Finishing;
13433 Finish();
13434 }
13435
13436 return NS_OK;
13437}
13438
13439void Maintenance::Finish() {
13440 AssertIsOnBackgroundThread();
13441 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"
, 13441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Finishing"
")"); do { *((volatile int*)__null) = 13441; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13442
13443 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
13444 mPromiseHolder.ResolveIfExists(true, __func__);
13445 } else {
13446 mPromiseHolder.RejectIfExists(mResultCode, __func__);
13447
13448 nsCString errorName;
13449 GetErrorName(mResultCode, errorName);
13450
13451 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"
, 13451, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13451); } while (0)
;
13452 }
13453
13454 SafeDropDirectoryLock(mDirectoryLock);
13455
13456 // It can happen that we are only referenced by mCurrentMaintenance which is
13457 // cleared in NoteFinishedMaintenance()
13458 const RefPtr<Maintenance> kungFuDeathGrip = this;
13459
13460 mQuotaClient->NoteFinishedMaintenance(this);
13461
13462 mState = State::Complete;
13463}
13464
13465NS_IMETHODIMPnsresult
13466Maintenance::Run() {
13467 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"
, 13467); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState != State::Complete"
")"); do { *((volatile int*)__null) = 13467; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13468
13469 const auto handleError = [this](const nsresult rv) {
13470 if (mState != State::Finishing) {
13471 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
13472 mResultCode = rv;
13473 }
13474
13475 // Must set mState before dispatching otherwise we will race with the
13476 // owning thread.
13477 mState = State::Finishing;
13478
13479 if (IsOnBackgroundThread()) {
13480 Finish();
13481 } else {
13482 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 { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch( this, nsIEventTarget::DISPATCH_NORMAL))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13483); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch( this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { *((volatile int*)__null) = 13483; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
13483 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 { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch( this, nsIEventTarget::DISPATCH_NORMAL))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13483); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(mQuotaClient->BackgroundThread()->Dispatch( this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { *((volatile int*)__null) = 13483; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
13484 }
13485 }
13486 };
13487
13488 switch (mState) {
13489 case State::Initial:
13490 QM_TRY(MOZ_TO_RESULT(Start()), NS_OK, handleError){auto tryResult1092 = (ToResult(Start())); 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(Start())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13490, 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); }}
;
13491 break;
13492
13493 case State::CreateIndexedDatabaseManager:
13494 QM_TRY(MOZ_TO_RESULT(CreateIndexedDatabaseManager()), NS_OK, handleError){auto tryResult1093 = (ToResult(CreateIndexedDatabaseManager(
))); 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(CreateIndexedDatabaseManager())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13494, 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
); }}
;
13495 break;
13496
13497 case State::IndexedDatabaseManagerOpen:
13498 QM_TRY(MOZ_TO_RESULT(OpenDirectory()), NS_OK, handleError){auto tryResult1094 = (ToResult(OpenDirectory())); 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(OpenDirectory())", tryTempError,
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13498, 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); }}
;
13499 break;
13500
13501 case State::DirectoryWorkOpen:
13502 QM_TRY(MOZ_TO_RESULT(DirectoryWork()), NS_OK, handleError){auto tryResult1095 = (ToResult(DirectoryWork())); static_assert
(std::is_empty_v<typename decltype(tryResult1095)::ok_type
>); if ((__builtin_expect(!!(tryResult1095.isErr()), 0))) {
auto tryTempError = tryResult1095.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(DirectoryWork())", tryTempError,
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13502, 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); }}
;
13503 break;
13504
13505 case State::BeginDatabaseMaintenance:
13506 QM_TRY(MOZ_TO_RESULT(BeginDatabaseMaintenance()), NS_OK, handleError){auto tryResult1096 = (ToResult(BeginDatabaseMaintenance()));
static_assert(std::is_empty_v<typename decltype(tryResult1096
)::ok_type>); if ((__builtin_expect(!!(tryResult1096.isErr
()), 0))) { auto tryTempError = tryResult1096.unwrapErr(); mozilla
::dom::quota::HandleError("ToResult(BeginDatabaseMaintenance())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13506, 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
); }}
;
13507 break;
13508
13509 case State::Finishing:
13510 Finish();
13511 break;
13512
13513 default:
13514 MOZ_CRASH("Bad state!")do { do { } while (false); MOZ_ReportCrash("" "Bad state!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13514); AnnotateMozCrashReason("MOZ_CRASH(" "Bad state!" ")"
); do { *((volatile int*)__null) = 13514; __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
13515 }
13516
13517 return NS_OK;
13518}
13519
13520void Maintenance::DirectoryLockAcquired(DirectoryLock* aLock) {
13521 AssertIsOnBackgroundThread();
13522 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"
, 13522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending"
")"); do { *((volatile int*)__null) = 13522; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13523 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"
, 13523); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLock"
")"); do { *((volatile int*)__null) = 13523; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13524
13525 mDirectoryLock = std::exchange(mPendingDirectoryLock, nullptr);
13526
13527 nsresult rv = DirectoryOpen();
13528 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"
, 13528)
) {
13529 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
13530 mResultCode = rv;
13531 }
13532
13533 mState = State::Finishing;
13534 Finish();
13535
13536 return;
13537 }
13538}
13539
13540void Maintenance::DirectoryLockFailed() {
13541 AssertIsOnBackgroundThread();
13542 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"
, 13542); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending"
")"); do { *((volatile int*)__null) = 13542; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13543 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"
, 13543); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLock"
")"); do { *((volatile int*)__null) = 13543; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13544
13545 mPendingDirectoryLock = nullptr;
13546
13547 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
13548 mResultCode = NS_ERROR_FAILURE;
13549 }
13550
13551 mState = State::Finishing;
13552 Finish();
13553}
13554
13555void DatabaseMaintenance::Stringify(nsACString& aResult) const {
13556 AssertIsOnBackgroundThread();
13557
13558 aResult.AppendLiteral("Origin:");
13559 aResult.Append(AnonymizedOriginString(mOriginMetadata.mOrigin));
13560 aResult.Append(kQuotaGenericDelimiter);
13561
13562 aResult.AppendLiteral("PersistenceType:");
13563 aResult.Append(PersistenceTypeToString(mPersistenceType));
13564 aResult.Append(kQuotaGenericDelimiter);
13565
13566 aResult.AppendLiteral("Duration:");
13567 aResult.AppendInt((PR_Now() - mMaintenance->StartTime()) / PR_USEC_PER_MSEC1000L);
13568}
13569
13570nsresult DatabaseMaintenance::Abort() {
13571 AssertIsOnBackgroundThread();
13572
13573 // StopIdleMaintenance and AbortAllOperations may request abort independently
13574 if (!mAborted.compareExchange(false, true)) {
13575 return NS_OK;
13576 }
13577
13578 {
13579 auto shardStorageConnectionLocked = mSharedStorageConnection.Lock();
13580 if (nsCOMPtr<mozIStorageConnection> connection =
13581 *shardStorageConnectionLocked) {
13582 QM_TRY(MOZ_TO_RESULT(connection->Interrupt())){auto tryResult1097 = (ToResult(connection->Interrupt()));
static_assert(std::is_empty_v<typename decltype(tryResult1097
)::ok_type>); if ((__builtin_expect(!!(tryResult1097.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->Interrupt())"
, tryResult1097.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13582, mozilla::dom::quota::Severity::Error); return tryResult1097
.propagateErr(); }}
;
13583 }
13584 }
13585
13586 return NS_OK;
13587}
13588
13589void DatabaseMaintenance::PerformMaintenanceOnDatabase() {
13590 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"
, 13590); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { *((volatile int*)__null) = 13590; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13591 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"
, 13591); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 13591; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13592 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"
, 13592); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaintenance"
")"); do { *((volatile int*)__null) = 13592; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13593 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"
, 13593); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaintenance->StartTime()"
")"); do { *((volatile int*)__null) = 13593; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13594 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"
, 13594); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock"
")"); do { *((volatile int*)__null) = 13594; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13595 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"
, 13595); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabasePath.IsEmpty()"
")"); do { *((volatile int*)__null) = 13595; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13596 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"
, 13596); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOriginMetadata.mGroup.IsEmpty()"
")"); do { *((volatile int*)__null) = 13596; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13597 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"
, 13597); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOriginMetadata.mOrigin.IsEmpty()"
")"); do { *((volatile int*)__null) = 13597; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13598
13599 if (NS_WARN_IF(IsAborted())NS_warn_if_impl(IsAborted(), "IsAborted()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13599)
) {
13600 return;
13601 }
13602
13603 const nsCOMPtr<nsIFile> databaseFile = GetFileForPath(mDatabasePath);
13604 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"
, 13604); AnnotateMozCrashReason("MOZ_ASSERT" "(" "databaseFile"
")"); do { *((volatile int*)__null) = 13604; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13605
13606 QM_TRY_UNWRAP(auto tryResult1098 = (GetStorageConnection(*databaseFile, mDirectoryLockId
, TelemetryIdForFile(databaseFile), mMaybeKey)); if ((__builtin_expect
(!!(tryResult1098.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1098.unwrapErr(); mozilla::dom::quota
::HandleError("GetStorageConnection(*databaseFile, mDirectoryLockId, TelemetryIdForFile(databaseFile), mMaybeKey)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13610, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const NotNull<nsCOMPtr<mozIStorageConnection>>
connection = tryResult1098.unwrap();
13607 const NotNull<nsCOMPtr<mozIStorageConnection>> connection,auto tryResult1098 = (GetStorageConnection(*databaseFile, mDirectoryLockId
, TelemetryIdForFile(databaseFile), mMaybeKey)); if ((__builtin_expect
(!!(tryResult1098.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1098.unwrapErr(); mozilla::dom::quota
::HandleError("GetStorageConnection(*databaseFile, mDirectoryLockId, TelemetryIdForFile(databaseFile), mMaybeKey)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13610, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const NotNull<nsCOMPtr<mozIStorageConnection>>
connection = tryResult1098.unwrap();
13608 GetStorageConnection(*databaseFile, mDirectoryLockId,auto tryResult1098 = (GetStorageConnection(*databaseFile, mDirectoryLockId
, TelemetryIdForFile(databaseFile), mMaybeKey)); if ((__builtin_expect
(!!(tryResult1098.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1098.unwrapErr(); mozilla::dom::quota
::HandleError("GetStorageConnection(*databaseFile, mDirectoryLockId, TelemetryIdForFile(databaseFile), mMaybeKey)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13610, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const NotNull<nsCOMPtr<mozIStorageConnection>>
connection = tryResult1098.unwrap();
13609 TelemetryIdForFile(databaseFile), mMaybeKey),auto tryResult1098 = (GetStorageConnection(*databaseFile, mDirectoryLockId
, TelemetryIdForFile(databaseFile), mMaybeKey)); if ((__builtin_expect
(!!(tryResult1098.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1098.unwrapErr(); mozilla::dom::quota
::HandleError("GetStorageConnection(*databaseFile, mDirectoryLockId, TelemetryIdForFile(databaseFile), mMaybeKey)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13610, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const NotNull<nsCOMPtr<mozIStorageConnection>>
connection = tryResult1098.unwrap();
13610 QM_VOID)auto tryResult1098 = (GetStorageConnection(*databaseFile, mDirectoryLockId
, TelemetryIdForFile(databaseFile), mMaybeKey)); if ((__builtin_expect
(!!(tryResult1098.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1098.unwrapErr(); mozilla::dom::quota
::HandleError("GetStorageConnection(*databaseFile, mDirectoryLockId, TelemetryIdForFile(databaseFile), mMaybeKey)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13610, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const NotNull<nsCOMPtr<mozIStorageConnection>>
connection = tryResult1098.unwrap();
;
13611
13612 auto autoClearConnection = MakeScopeExit([&]() {
13613 auto sharedStorageConnectionLocked = mSharedStorageConnection.Lock();
13614 sharedStorageConnectionLocked.ref() = nullptr;
13615 connection->Close();
13616 });
13617
13618 {
13619 auto sharedStorageConnectionLocked = mSharedStorageConnection.Lock();
13620 sharedStorageConnectionLocked.ref() = connection;
13621 }
13622
13623 auto databaseIsOk = false;
13624 QM_TRY(MOZ_TO_RESULT(CheckIntegrity(*connection, &databaseIsOk)), QM_VOID){auto tryResult1099 = (ToResult(CheckIntegrity(*connection, &
databaseIsOk))); 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(CheckIntegrity(*connection, &databaseIsOk))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13624, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}
;
13625
13626 QM_TRY(OkIf(databaseIsOk), QM_VOID, [](auto result) {{auto tryResult1100 = (OkIf(databaseIsOk)); static_assert(std
::is_empty_v<typename decltype(tryResult1100)::ok_type>
); if ((__builtin_expect(!!(tryResult1100.isErr()), 0))) { auto
tryTempError = tryResult1100.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(databaseIsOk)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13630, 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"
, 13629); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"Database corruption detected!" ")"); do { *((volatile int*)
__null) = 13629; __attribute__((nomerge)) ::abort(); } while (
false); } } while (false); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return ; }
}
13627 // XXX Handle this somehow! Probably need to clear all storage for the{auto tryResult1100 = (OkIf(databaseIsOk)); static_assert(std
::is_empty_v<typename decltype(tryResult1100)::ok_type>
); if ((__builtin_expect(!!(tryResult1100.isErr()), 0))) { auto
tryTempError = tryResult1100.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(databaseIsOk)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13630, 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"
, 13629); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"Database corruption detected!" ")"); do { *((volatile int*)
__null) = 13629; __attribute__((nomerge)) ::abort(); } while (
false); } } while (false); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return ; }
}
13628 // origin. See Bug 1760612.{auto tryResult1100 = (OkIf(databaseIsOk)); static_assert(std
::is_empty_v<typename decltype(tryResult1100)::ok_type>
); if ((__builtin_expect(!!(tryResult1100.isErr()), 0))) { auto
tryTempError = tryResult1100.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(databaseIsOk)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13630, 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"
, 13629); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"Database corruption detected!" ")"); do { *((volatile int*)
__null) = 13629; __attribute__((nomerge)) ::abort(); } while (
false); } } while (false); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return ; }
}
13629 MOZ_ASSERT(false, "Database corruption detected!");{auto tryResult1100 = (OkIf(databaseIsOk)); static_assert(std
::is_empty_v<typename decltype(tryResult1100)::ok_type>
); if ((__builtin_expect(!!(tryResult1100.isErr()), 0))) { auto
tryTempError = tryResult1100.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(databaseIsOk)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13630, 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"
, 13629); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"Database corruption detected!" ")"); do { *((volatile int*)
__null) = 13629; __attribute__((nomerge)) ::abort(); } while (
false); } } while (false); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return ; }
}
13630 }){auto tryResult1100 = (OkIf(databaseIsOk)); static_assert(std
::is_empty_v<typename decltype(tryResult1100)::ok_type>
); if ((__builtin_expect(!!(tryResult1100.isErr()), 0))) { auto
tryTempError = tryResult1100.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(databaseIsOk)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13630, 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"
, 13629); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"Database corruption detected!" ")"); do { *((volatile int*)
__null) = 13629; __attribute__((nomerge)) ::abort(); } while (
false); } } while (false); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return ; }
}
;
13631
13632 MaintenanceAction maintenanceAction;
13633 QM_TRY(MOZ_TO_RESULT(DetermineMaintenanceAction(*connection, databaseFile,{auto tryResult1101 = (ToResult(DetermineMaintenanceAction(*connection
, databaseFile, &maintenanceAction))); static_assert(std::
is_empty_v<typename decltype(tryResult1101)::ok_type>);
if ((__builtin_expect(!!(tryResult1101.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1101.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(DetermineMaintenanceAction(*connection, databaseFile, &maintenanceAction))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13635, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}
13634 &maintenanceAction)),{auto tryResult1101 = (ToResult(DetermineMaintenanceAction(*connection
, databaseFile, &maintenanceAction))); static_assert(std::
is_empty_v<typename decltype(tryResult1101)::ok_type>);
if ((__builtin_expect(!!(tryResult1101.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1101.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(DetermineMaintenanceAction(*connection, databaseFile, &maintenanceAction))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13635, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}
13635 QM_VOID){auto tryResult1101 = (ToResult(DetermineMaintenanceAction(*connection
, databaseFile, &maintenanceAction))); static_assert(std::
is_empty_v<typename decltype(tryResult1101)::ok_type>);
if ((__builtin_expect(!!(tryResult1101.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1101.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(DetermineMaintenanceAction(*connection, databaseFile, &maintenanceAction))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13635, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}
;
13636
13637 switch (maintenanceAction) {
13638 case MaintenanceAction::Nothing:
13639 break;
13640
13641 case MaintenanceAction::IncrementalVacuum:
13642 IncrementalVacuum(*connection);
13643 break;
13644
13645 case MaintenanceAction::FullVacuum:
13646 FullVacuum(*connection, databaseFile);
13647 break;
13648
13649 default:
13650 MOZ_CRASH("Unknown MaintenanceAction!")do { do { } while (false); MOZ_ReportCrash("" "Unknown MaintenanceAction!"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13650); AnnotateMozCrashReason("MOZ_CRASH(" "Unknown MaintenanceAction!"
")"); do { *((volatile int*)__null) = 13650; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
13651 }
13652}
13653
13654nsresult DatabaseMaintenance::CheckIntegrity(mozIStorageConnection& aConnection,
13655 bool* aOk) {
13656 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"
, 13656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { *((volatile int*)__null) = 13656; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13657 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"
, 13657); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 13657; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13658 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"
, 13658); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aOk" ")");
do { *((volatile int*)__null) = 13658; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
13659
13660 if (NS_WARN_IF(IsAborted())NS_warn_if_impl(IsAborted(), "IsAborted()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13660)
) {
13661 return NS_ERROR_ABORT;
13662 }
13663
13664 // First do a full integrity_check. Scope statements tightly here because
13665 // later operations require zero live statements.
13666 {
13667 QM_TRY_INSPECT(const auto& stmt,auto tryResult1102 = (CreateAndExecuteSingleStepStatement( aConnection
, "PRAGMA integrity_check(1);"_ns)); if ((__builtin_expect(!!
(tryResult1102.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA integrity_check(1);\"_ns)"
, tryResult1102.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13669, mozilla::dom::quota::Severity::Error); return tryResult1102
.propagateErr(); } const auto& stmt = tryResult1102.inspect
();
13668 CreateAndExecuteSingleStepStatement(auto tryResult1102 = (CreateAndExecuteSingleStepStatement( aConnection
, "PRAGMA integrity_check(1);"_ns)); if ((__builtin_expect(!!
(tryResult1102.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA integrity_check(1);\"_ns)"
, tryResult1102.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13669, mozilla::dom::quota::Severity::Error); return tryResult1102
.propagateErr(); } const auto& stmt = tryResult1102.inspect
();
13669 aConnection, "PRAGMA integrity_check(1);"_ns))auto tryResult1102 = (CreateAndExecuteSingleStepStatement( aConnection
, "PRAGMA integrity_check(1);"_ns)); if ((__builtin_expect(!!
(tryResult1102.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA integrity_check(1);\"_ns)"
, tryResult1102.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13669, mozilla::dom::quota::Severity::Error); return tryResult1102
.propagateErr(); } const auto& stmt = tryResult1102.inspect
();
;
13670
13671 QM_TRY_INSPECT(const auto& result, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1103 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(*stmt)>::GetString), (*stmt), 0)); if ((__builtin_expect(
!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetString), (*stmt), 0)"
, tryResult1103.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13672, mozilla::dom::quota::Severity::Error); return tryResult1103
.propagateErr(); } const auto& result = tryResult1103.inspect
();
13672 nsString, *stmt, GetString, 0))auto tryResult1103 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(*stmt)>::GetString), (*stmt), 0)); if ((__builtin_expect(
!!(tryResult1103.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetString), (*stmt), 0)"
, tryResult1103.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13672, mozilla::dom::quota::Severity::Error); return tryResult1103
.propagateErr(); } const auto& result = tryResult1103.inspect
();
;
13673
13674 QM_TRY(OkIf(result.EqualsLiteral("ok")), NS_OK,{auto tryResult1104 = (OkIf(result.EqualsLiteral("ok"))); static_assert
(std::is_empty_v<typename decltype(tryResult1104)::ok_type
>); if ((__builtin_expect(!!(tryResult1104.isErr()), 0))) {
auto tryTempError = tryResult1104.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(result.EqualsLiteral(\"ok\"))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13675, 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); }}
13675 [&aOk](const auto) { *aOk = false; }){auto tryResult1104 = (OkIf(result.EqualsLiteral("ok"))); static_assert
(std::is_empty_v<typename decltype(tryResult1104)::ok_type
>); if ((__builtin_expect(!!(tryResult1104.isErr()), 0))) {
auto tryTempError = tryResult1104.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(result.EqualsLiteral(\"ok\"))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13675, 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); }}
;
13676 }
13677
13678 // Now enable and check for foreign key constraints.
13679 {
13680 QM_TRY_INSPECT(auto tryResult1107 = (([&aConnection]() -> Result<int32_t
, nsresult> { auto tryResult1105 = (CreateAndExecuteSingleStepStatement
( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect
(!!(tryResult1105.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)"
, tryResult1105.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13685, mozilla::dom::quota::Severity::Error); return tryResult1105
.propagateErr(); } const auto& stmt = tryResult1105.inspect
();; {auto tryResult1106 = (::mozilla::ToResultInvokeMember( (
*stmt), &::mozilla::detail::DerefedType<decltype(*stmt
)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1106.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult1106.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13687, mozilla::dom::quota::Severity::Error); } return tryResult1106
;}; }())); if ((__builtin_expect(!!(tryResult1107.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1105 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1105.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1105.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13685, mozilla::dom::quota::Severity::Error); return tryResult1105.propagateErr(); } const auto& stmt = tryResult1105.inspect();; {auto tryResult1106 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1106.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)\", tryResult1106.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); } return tryResult1106;}; }())"
, tryResult1107.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13688, mozilla::dom::quota::Severity::Error); return tryResult1107
.propagateErr(); } const int32_t& foreignKeysWereEnabled =
tryResult1107.inspect();
13681 const int32_t& foreignKeysWereEnabled,auto tryResult1107 = (([&aConnection]() -> Result<int32_t
, nsresult> { auto tryResult1105 = (CreateAndExecuteSingleStepStatement
( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect
(!!(tryResult1105.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)"
, tryResult1105.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13685, mozilla::dom::quota::Severity::Error); return tryResult1105
.propagateErr(); } const auto& stmt = tryResult1105.inspect
();; {auto tryResult1106 = (::mozilla::ToResultInvokeMember( (
*stmt), &::mozilla::detail::DerefedType<decltype(*stmt
)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1106.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult1106.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13687, mozilla::dom::quota::Severity::Error); } return tryResult1106
;}; }())); if ((__builtin_expect(!!(tryResult1107.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1105 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1105.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1105.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13685, mozilla::dom::quota::Severity::Error); return tryResult1105.propagateErr(); } const auto& stmt = tryResult1105.inspect();; {auto tryResult1106 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1106.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)\", tryResult1106.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); } return tryResult1106;}; }())"
, tryResult1107.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13688, mozilla::dom::quota::Severity::Error); return tryResult1107
.propagateErr(); } const int32_t& foreignKeysWereEnabled =
tryResult1107.inspect();
13682 ([&aConnection]() -> Result<int32_t, nsresult> {auto tryResult1107 = (([&aConnection]() -> Result<int32_t
, nsresult> { auto tryResult1105 = (CreateAndExecuteSingleStepStatement
( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect
(!!(tryResult1105.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)"
, tryResult1105.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13685, mozilla::dom::quota::Severity::Error); return tryResult1105
.propagateErr(); } const auto& stmt = tryResult1105.inspect
();; {auto tryResult1106 = (::mozilla::ToResultInvokeMember( (
*stmt), &::mozilla::detail::DerefedType<decltype(*stmt
)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1106.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult1106.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13687, mozilla::dom::quota::Severity::Error); } return tryResult1106
;}; }())); if ((__builtin_expect(!!(tryResult1107.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1105 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1105.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1105.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13685, mozilla::dom::quota::Severity::Error); return tryResult1105.propagateErr(); } const auto& stmt = tryResult1105.inspect();; {auto tryResult1106 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1106.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)\", tryResult1106.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); } return tryResult1106;}; }())"
, tryResult1107.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13688, mozilla::dom::quota::Severity::Error); return tryResult1107
.propagateErr(); } const int32_t& foreignKeysWereEnabled =
tryResult1107.inspect();
13683 QM_TRY_INSPECT(const auto& stmt,auto tryResult1107 = (([&aConnection]() -> Result<int32_t
, nsresult> { auto tryResult1105 = (CreateAndExecuteSingleStepStatement
( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect
(!!(tryResult1105.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)"
, tryResult1105.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13685, mozilla::dom::quota::Severity::Error); return tryResult1105
.propagateErr(); } const auto& stmt = tryResult1105.inspect
();; {auto tryResult1106 = (::mozilla::ToResultInvokeMember( (
*stmt), &::mozilla::detail::DerefedType<decltype(*stmt
)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1106.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult1106.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13687, mozilla::dom::quota::Severity::Error); } return tryResult1106
;}; }())); if ((__builtin_expect(!!(tryResult1107.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1105 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1105.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1105.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13685, mozilla::dom::quota::Severity::Error); return tryResult1105.propagateErr(); } const auto& stmt = tryResult1105.inspect();; {auto tryResult1106 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1106.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)\", tryResult1106.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); } return tryResult1106;}; }())"
, tryResult1107.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13688, mozilla::dom::quota::Severity::Error); return tryResult1107
.propagateErr(); } const int32_t& foreignKeysWereEnabled =
tryResult1107.inspect();
13684 CreateAndExecuteSingleStepStatement(auto tryResult1107 = (([&aConnection]() -> Result<int32_t
, nsresult> { auto tryResult1105 = (CreateAndExecuteSingleStepStatement
( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect
(!!(tryResult1105.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)"
, tryResult1105.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13685, mozilla::dom::quota::Severity::Error); return tryResult1105
.propagateErr(); } const auto& stmt = tryResult1105.inspect
();; {auto tryResult1106 = (::mozilla::ToResultInvokeMember( (
*stmt), &::mozilla::detail::DerefedType<decltype(*stmt
)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1106.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult1106.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13687, mozilla::dom::quota::Severity::Error); } return tryResult1106
;}; }())); if ((__builtin_expect(!!(tryResult1107.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1105 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1105.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1105.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13685, mozilla::dom::quota::Severity::Error); return tryResult1105.propagateErr(); } const auto& stmt = tryResult1105.inspect();; {auto tryResult1106 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1106.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)\", tryResult1106.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); } return tryResult1106;}; }())"
, tryResult1107.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13688, mozilla::dom::quota::Severity::Error); return tryResult1107
.propagateErr(); } const int32_t& foreignKeysWereEnabled =
tryResult1107.inspect();
13685 aConnection, "PRAGMA foreign_keys;"_ns));auto tryResult1107 = (([&aConnection]() -> Result<int32_t
, nsresult> { auto tryResult1105 = (CreateAndExecuteSingleStepStatement
( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect
(!!(tryResult1105.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)"
, tryResult1105.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13685, mozilla::dom::quota::Severity::Error); return tryResult1105
.propagateErr(); } const auto& stmt = tryResult1105.inspect
();; {auto tryResult1106 = (::mozilla::ToResultInvokeMember( (
*stmt), &::mozilla::detail::DerefedType<decltype(*stmt
)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1106.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult1106.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13687, mozilla::dom::quota::Severity::Error); } return tryResult1106
;}; }())); if ((__builtin_expect(!!(tryResult1107.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1105 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1105.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1105.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13685, mozilla::dom::quota::Severity::Error); return tryResult1105.propagateErr(); } const auto& stmt = tryResult1105.inspect();; {auto tryResult1106 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1106.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)\", tryResult1106.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); } return tryResult1106;}; }())"
, tryResult1107.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13688, mozilla::dom::quota::Severity::Error); return tryResult1107
.propagateErr(); } const int32_t& foreignKeysWereEnabled =
tryResult1107.inspect();
13686
13687 QM_TRY_RETURN(MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt32, 0));auto tryResult1107 = (([&aConnection]() -> Result<int32_t
, nsresult> { auto tryResult1105 = (CreateAndExecuteSingleStepStatement
( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect
(!!(tryResult1105.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)"
, tryResult1105.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13685, mozilla::dom::quota::Severity::Error); return tryResult1105
.propagateErr(); } const auto& stmt = tryResult1105.inspect
();; {auto tryResult1106 = (::mozilla::ToResultInvokeMember( (
*stmt), &::mozilla::detail::DerefedType<decltype(*stmt
)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1106.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult1106.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13687, mozilla::dom::quota::Severity::Error); } return tryResult1106
;}; }())); if ((__builtin_expect(!!(tryResult1107.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1105 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1105.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1105.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13685, mozilla::dom::quota::Severity::Error); return tryResult1105.propagateErr(); } const auto& stmt = tryResult1105.inspect();; {auto tryResult1106 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1106.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)\", tryResult1106.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); } return tryResult1106;}; }())"
, tryResult1107.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13688, mozilla::dom::quota::Severity::Error); return tryResult1107
.propagateErr(); } const int32_t& foreignKeysWereEnabled =
tryResult1107.inspect();
13688 }()))auto tryResult1107 = (([&aConnection]() -> Result<int32_t
, nsresult> { auto tryResult1105 = (CreateAndExecuteSingleStepStatement
( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect
(!!(tryResult1105.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)"
, tryResult1105.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13685, mozilla::dom::quota::Severity::Error); return tryResult1105
.propagateErr(); } const auto& stmt = tryResult1105.inspect
();; {auto tryResult1106 = (::mozilla::ToResultInvokeMember( (
*stmt), &::mozilla::detail::DerefedType<decltype(*stmt
)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1106.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult1106.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13687, mozilla::dom::quota::Severity::Error); } return tryResult1106
;}; }())); if ((__builtin_expect(!!(tryResult1107.isErr()), 0
))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1105 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1105.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1105.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13685, mozilla::dom::quota::Severity::Error); return tryResult1105.propagateErr(); } const auto& stmt = tryResult1105.inspect();; {auto tryResult1106 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1106.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)\", tryResult1106.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); } return tryResult1106;}; }())"
, tryResult1107.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13688, mozilla::dom::quota::Severity::Error); return tryResult1107
.propagateErr(); } const int32_t& foreignKeysWereEnabled =
tryResult1107.inspect();
;
13689
13690 if (!foreignKeysWereEnabled) {
13691 QM_TRY(MOZ_TO_RESULT({auto tryResult1108 = (ToResult(aConnection.ExecuteSimpleSQL(
"PRAGMA foreign_keys = ON;"_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 = ON;\"_ns))"
, tryResult1108.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13692, mozilla::dom::quota::Severity::Error); return tryResult1108
.propagateErr(); }}
13692 aConnection.ExecuteSimpleSQL("PRAGMA foreign_keys = ON;"_ns))){auto tryResult1108 = (ToResult(aConnection.ExecuteSimpleSQL(
"PRAGMA foreign_keys = ON;"_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 = ON;\"_ns))"
, tryResult1108.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13692, mozilla::dom::quota::Severity::Error); return tryResult1108
.propagateErr(); }}
;
13693 }
13694
13695 QM_TRY_INSPECT(const bool& foreignKeyError,auto tryResult1109 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection, "PRAGMA foreign_key_check;"_ns
)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"PRAGMA foreign_key_check;\"_ns)"
, tryResult1109.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13698, mozilla::dom::quota::Severity::Error); return tryResult1109
.propagateErr(); } const bool& foreignKeyError = tryResult1109
.inspect();
13696 CreateAndExecuteSingleStepStatement<auto tryResult1109 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection, "PRAGMA foreign_key_check;"_ns
)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"PRAGMA foreign_key_check;\"_ns)"
, tryResult1109.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13698, mozilla::dom::quota::Severity::Error); return tryResult1109
.propagateErr(); } const bool& foreignKeyError = tryResult1109
.inspect();
13697 SingleStepResult::ReturnNullIfNoResult>(auto tryResult1109 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection, "PRAGMA foreign_key_check;"_ns
)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"PRAGMA foreign_key_check;\"_ns)"
, tryResult1109.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13698, mozilla::dom::quota::Severity::Error); return tryResult1109
.propagateErr(); } const bool& foreignKeyError = tryResult1109
.inspect();
13698 aConnection, "PRAGMA foreign_key_check;"_ns))auto tryResult1109 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection, "PRAGMA foreign_key_check;"_ns
)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"PRAGMA foreign_key_check;\"_ns)"
, tryResult1109.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13698, mozilla::dom::quota::Severity::Error); return tryResult1109
.propagateErr(); } const bool& foreignKeyError = tryResult1109
.inspect();
;
13699
13700 if (!foreignKeysWereEnabled) {
13701 QM_TRY(MOZ_TO_RESULT({auto tryResult1110 = (ToResult(aConnection.ExecuteSimpleSQL(
"PRAGMA foreign_keys = OFF;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect
(!!(tryResult1110.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection.ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))"
, tryResult1110.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13702, mozilla::dom::quota::Severity::Error); return tryResult1110
.propagateErr(); }}
13702 aConnection.ExecuteSimpleSQL("PRAGMA foreign_keys = OFF;"_ns))){auto tryResult1110 = (ToResult(aConnection.ExecuteSimpleSQL(
"PRAGMA foreign_keys = OFF;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult1110)::ok_type>); if ((__builtin_expect
(!!(tryResult1110.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection.ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))"
, tryResult1110.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13702, mozilla::dom::quota::Severity::Error); return tryResult1110
.propagateErr(); }}
;
13703 }
13704
13705 if (foreignKeyError) {
13706 *aOk = false;
13707 return NS_OK;
13708 }
13709 }
13710
13711 *aOk = true;
13712 return NS_OK;
13713}
13714
13715nsresult DatabaseMaintenance::DetermineMaintenanceAction(
13716 mozIStorageConnection& aConnection, nsIFile* aDatabaseFile,
13717 MaintenanceAction* aMaintenanceAction) {
13718 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"
, 13718); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { *((volatile int*)__null) = 13718; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13719 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"
, 13719); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 13719; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13720 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"
, 13720); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseFile"
")"); do { *((volatile int*)__null) = 13720; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13721 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"
, 13721); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMaintenanceAction"
")"); do { *((volatile int*)__null) = 13721; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13722
13723 if (NS_WARN_IF(IsAborted())NS_warn_if_impl(IsAborted(), "IsAborted()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13723)
) {
13724 return NS_ERROR_ABORT;
13725 }
13726
13727 QM_TRY_INSPECT(const int32_t& schemaVersion,auto tryResult1111 = (::mozilla::ToResultInvokeMember( (aConnection
), &::mozilla::detail::DerefedType<decltype(aConnection
)>::GetSchemaVersion)); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aConnection), &::mozilla::detail::DerefedType<decltype(aConnection)>::GetSchemaVersion)"
, tryResult1111.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13728, mozilla::dom::quota::Severity::Error); return tryResult1111
.propagateErr(); } const int32_t& schemaVersion = tryResult1111
.inspect();
13728 MOZ_TO_RESULT_INVOKE_MEMBER(aConnection, GetSchemaVersion))auto tryResult1111 = (::mozilla::ToResultInvokeMember( (aConnection
), &::mozilla::detail::DerefedType<decltype(aConnection
)>::GetSchemaVersion)); if ((__builtin_expect(!!(tryResult1111
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aConnection), &::mozilla::detail::DerefedType<decltype(aConnection)>::GetSchemaVersion)"
, tryResult1111.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13728, mozilla::dom::quota::Severity::Error); return tryResult1111
.propagateErr(); } const int32_t& schemaVersion = tryResult1111
.inspect();
;
13729
13730 // Don't do anything if the schema version is less than 18; before that
13731 // version no databases had |auto_vacuum == INCREMENTAL| set and we didn't
13732 // track the values needed for the heuristics below.
13733 if (schemaVersion < MakeSchemaVersion(18, 0)) {
13734 *aMaintenanceAction = MaintenanceAction::Nothing;
13735 return NS_OK;
13736 }
13737
13738 // This method shouldn't make any permanent changes to the database, so make
13739 // sure everything gets rolled back when we leave.
13740 mozStorageTransaction transaction(&aConnection,
13741 /* aCommitOnComplete */ false);
13742
13743 QM_TRY(MOZ_TO_RESULT(transaction.Start())){auto tryResult1112 = (ToResult(transaction.Start())); static_assert
(std::is_empty_v<typename decltype(tryResult1112)::ok_type
>); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(transaction.Start())"
, tryResult1112.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13743, mozilla::dom::quota::Severity::Error); return tryResult1112
.propagateErr(); }}
13744
13745 // Check to see when we last vacuumed this database.
13746 QM_TRY_INSPECT(const auto& stmt,auto tryResult1113 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT last_vacuum_time, last_vacuum_size " "FROM database;"_ns
)); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT last_vacuum_time, last_vacuum_size \" \"FROM database;\"_ns)"
, tryResult1113.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13750, mozilla::dom::quota::Severity::Error); return tryResult1113
.propagateErr(); } const auto& stmt = tryResult1113.inspect
();
13747 CreateAndExecuteSingleStepStatement(auto tryResult1113 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT last_vacuum_time, last_vacuum_size " "FROM database;"_ns
)); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT last_vacuum_time, last_vacuum_size \" \"FROM database;\"_ns)"
, tryResult1113.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13750, mozilla::dom::quota::Severity::Error); return tryResult1113
.propagateErr(); } const auto& stmt = tryResult1113.inspect
();
13748 aConnection,auto tryResult1113 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT last_vacuum_time, last_vacuum_size " "FROM database;"_ns
)); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT last_vacuum_time, last_vacuum_size \" \"FROM database;\"_ns)"
, tryResult1113.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13750, mozilla::dom::quota::Severity::Error); return tryResult1113
.propagateErr(); } const auto& stmt = tryResult1113.inspect
();
13749 "SELECT last_vacuum_time, last_vacuum_size "auto tryResult1113 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT last_vacuum_time, last_vacuum_size " "FROM database;"_ns
)); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT last_vacuum_time, last_vacuum_size \" \"FROM database;\"_ns)"
, tryResult1113.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13750, mozilla::dom::quota::Severity::Error); return tryResult1113
.propagateErr(); } const auto& stmt = tryResult1113.inspect
();
13750 "FROM database;"_ns))auto tryResult1113 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT last_vacuum_time, last_vacuum_size " "FROM database;"_ns
)); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT last_vacuum_time, last_vacuum_size \" \"FROM database;\"_ns)"
, tryResult1113.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13750, mozilla::dom::quota::Severity::Error); return tryResult1113
.propagateErr(); } const auto& stmt = tryResult1113.inspect
();
;
13751
13752 QM_TRY_INSPECT(const PRTime& lastVacuumTime,auto tryResult1114 = (::mozilla::ToResultInvokeMember( (*stmt
), &::mozilla::detail::DerefedType<decltype(*stmt)>
::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1114.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt64, 0)"
, tryResult1114.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13753, mozilla::dom::quota::Severity::Error); return tryResult1114
.propagateErr(); } const PRTime& lastVacuumTime = tryResult1114
.inspect();
13753 MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt64, 0))auto tryResult1114 = (::mozilla::ToResultInvokeMember( (*stmt
), &::mozilla::detail::DerefedType<decltype(*stmt)>
::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1114.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt64, 0)"
, tryResult1114.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13753, mozilla::dom::quota::Severity::Error); return tryResult1114
.propagateErr(); } const PRTime& lastVacuumTime = tryResult1114
.inspect();
;
13754
13755 QM_TRY_INSPECT(const int64_t& lastVacuumSize,auto tryResult1115 = (::mozilla::ToResultInvokeMember( (*stmt
), &::mozilla::detail::DerefedType<decltype(*stmt)>
::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt64, 1)"
, tryResult1115.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13756, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); } const int64_t& lastVacuumSize = tryResult1115
.inspect();
13756 MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt64, 1))auto tryResult1115 = (::mozilla::ToResultInvokeMember( (*stmt
), &::mozilla::detail::DerefedType<decltype(*stmt)>
::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1115.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt64, 1)"
, tryResult1115.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13756, mozilla::dom::quota::Severity::Error); return tryResult1115
.propagateErr(); } const int64_t& lastVacuumSize = tryResult1115
.inspect();
;
13757
13758 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"
, 13760); MOZ_PretendNoReturn(); } } while (0)
13759 "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"
, 13760); MOZ_PretendNoReturn(); } } while (0)
13760 "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"
, 13760); MOZ_PretendNoReturn(); } } while (0)
;
13761
13762 const PRTime startTime = mMaintenance->StartTime();
13763
13764 // This shouldn't really be possible...
13765 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"
, 13765)
) {
13766 *aMaintenanceAction = MaintenanceAction::Nothing;
13767 return NS_OK;
13768 }
13769
13770 if (startTime - lastVacuumTime < kMinVacuumAge) {
13771 *aMaintenanceAction = MaintenanceAction::IncrementalVacuum;
13772 return NS_OK;
13773 }
13774
13775 // It has been more than a week since the database was vacuumed, so gather
13776 // statistics on its usage to see if vacuuming is worthwhile.
13777
13778 // Create a temporary copy of the dbstat table to speed up the queries that
13779 // come later.
13780 QM_TRY(MOZ_TO_RESULT(aConnection.ExecuteSimpleSQL({auto tryResult1116 = (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(tryResult1116
)::ok_type>); if ((__builtin_expect(!!(tryResult1116.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))"
, tryResult1116.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13782, mozilla::dom::quota::Severity::Error); return tryResult1116
.propagateErr(); }}
13781 "CREATE VIRTUAL TABLE __stats__ USING dbstat;"{auto tryResult1116 = (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(tryResult1116
)::ok_type>); if ((__builtin_expect(!!(tryResult1116.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))"
, tryResult1116.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13782, mozilla::dom::quota::Severity::Error); return tryResult1116
.propagateErr(); }}
13782 "CREATE TEMP TABLE __temp_stats__ AS SELECT * FROM __stats__;"_ns))){auto tryResult1116 = (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(tryResult1116
)::ok_type>); if ((__builtin_expect(!!(tryResult1116.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))"
, tryResult1116.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13782, mozilla::dom::quota::Severity::Error); return tryResult1116
.propagateErr(); }}
;
13783
13784 { // Calculate the percentage of the database pages that are not in
13785 // contiguous order.
13786 QM_TRY_INSPECT(auto tryResult1117 = (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(!!(tryResult1117.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)"
, tryResult1117.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13794, mozilla::dom::quota::Severity::Error); return tryResult1117
.propagateErr(); } const auto& stmt = tryResult1117.inspect
();
13787 const auto& stmt,auto tryResult1117 = (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(!!(tryResult1117.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)"
, tryResult1117.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13794, mozilla::dom::quota::Severity::Error); return tryResult1117
.propagateErr(); } const auto& stmt = tryResult1117.inspect
();
13788 CreateAndExecuteSingleStepStatement(auto tryResult1117 = (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(!!(tryResult1117.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)"
, tryResult1117.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13794, mozilla::dom::quota::Severity::Error); return tryResult1117
.propagateErr(); } const auto& stmt = tryResult1117.inspect
();
13789 aConnection,auto tryResult1117 = (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(!!(tryResult1117.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)"
, tryResult1117.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13794, mozilla::dom::quota::Severity::Error); return tryResult1117
.propagateErr(); } const auto& stmt = tryResult1117.inspect
();
13790 "SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / "auto tryResult1117 = (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(!!(tryResult1117.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)"
, tryResult1117.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13794, mozilla::dom::quota::Severity::Error); return tryResult1117
.propagateErr(); } const auto& stmt = tryResult1117.inspect
();
13791 "COUNT(*) "auto tryResult1117 = (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(!!(tryResult1117.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)"
, tryResult1117.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13794, mozilla::dom::quota::Severity::Error); return tryResult1117
.propagateErr(); } const auto& stmt = tryResult1117.inspect
();
13792 "FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ "auto tryResult1117 = (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(!!(tryResult1117.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)"
, tryResult1117.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13794, mozilla::dom::quota::Severity::Error); return tryResult1117
.propagateErr(); } const auto& stmt = tryResult1117.inspect
();
13793 "WHERE __ts1__.name = __ts2__.name "auto tryResult1117 = (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(!!(tryResult1117.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)"
, tryResult1117.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13794, mozilla::dom::quota::Severity::Error); return tryResult1117
.propagateErr(); } const auto& stmt = tryResult1117.inspect
();
13794 "AND __ts1__.rowid = __ts2__.rowid + 1;"_ns))auto tryResult1117 = (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(!!(tryResult1117.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)"
, tryResult1117.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13794, mozilla::dom::quota::Severity::Error); return tryResult1117
.propagateErr(); } const auto& stmt = tryResult1117.inspect
();
;
13795
13796 QM_TRY_INSPECT(const int32_t& percentUnordered,auto tryResult1118 = (::mozilla::ToResultInvokeMember( (*stmt
), &::mozilla::detail::DerefedType<decltype(*stmt)>
::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1118.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult1118.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13797, mozilla::dom::quota::Severity::Error); return tryResult1118
.propagateErr(); } const int32_t& percentUnordered = tryResult1118
.inspect();
13797 MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt32, 0))auto tryResult1118 = (::mozilla::ToResultInvokeMember( (*stmt
), &::mozilla::detail::DerefedType<decltype(*stmt)>
::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1118.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult1118.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13797, mozilla::dom::quota::Severity::Error); return tryResult1118
.propagateErr(); } const int32_t& percentUnordered = tryResult1118
.inspect();
;
13798
13799 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"
, 13799); AnnotateMozCrashReason("MOZ_ASSERT" "(" "percentUnordered >= 0"
")"); do { *((volatile int*)__null) = 13799; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13800 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"
, 13800); AnnotateMozCrashReason("MOZ_ASSERT" "(" "percentUnordered <= 100"
")"); do { *((volatile int*)__null) = 13800; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13801
13802 if (percentUnordered >= kPercentUnorderedThreshold) {
13803 *aMaintenanceAction = MaintenanceAction::FullVacuum;
13804 return NS_OK;
13805 }
13806 }
13807
13808 // Don't try a full vacuum if the file hasn't grown by 10%.
13809 QM_TRY_INSPECT(const int64_t& currentFileSize,auto tryResult1119 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1119.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1119.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13810, mozilla::dom::quota::Severity::Error); return tryResult1119
.propagateErr(); } const int64_t& currentFileSize = tryResult1119
.inspect();
13810 MOZ_TO_RESULT_INVOKE_MEMBER(aDatabaseFile, GetFileSize))auto tryResult1119 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1119.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1119.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13810, mozilla::dom::quota::Severity::Error); return tryResult1119
.propagateErr(); } const int64_t& currentFileSize = tryResult1119
.inspect();
;
13811
13812 if (currentFileSize <= lastVacuumSize ||
13813 (((currentFileSize - lastVacuumSize) * 100 / currentFileSize) <
13814 kPercentFileSizeGrowthThreshold)) {
13815 *aMaintenanceAction = MaintenanceAction::IncrementalVacuum;
13816 return NS_OK;
13817 }
13818
13819 { // See if there are any free pages that we can reclaim.
13820 QM_TRY_INSPECT(const auto& stmt,auto tryResult1120 = (CreateAndExecuteSingleStepStatement( aConnection
, "PRAGMA freelist_count;"_ns)); if ((__builtin_expect(!!(tryResult1120
.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA freelist_count;\"_ns)"
, tryResult1120.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13822, mozilla::dom::quota::Severity::Error); return tryResult1120
.propagateErr(); } const auto& stmt = tryResult1120.inspect
();
13821 CreateAndExecuteSingleStepStatement(auto tryResult1120 = (CreateAndExecuteSingleStepStatement( aConnection
, "PRAGMA freelist_count;"_ns)); if ((__builtin_expect(!!(tryResult1120
.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA freelist_count;\"_ns)"
, tryResult1120.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13822, mozilla::dom::quota::Severity::Error); return tryResult1120
.propagateErr(); } const auto& stmt = tryResult1120.inspect
();
13822 aConnection, "PRAGMA freelist_count;"_ns))auto tryResult1120 = (CreateAndExecuteSingleStepStatement( aConnection
, "PRAGMA freelist_count;"_ns)); if ((__builtin_expect(!!(tryResult1120
.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA freelist_count;\"_ns)"
, tryResult1120.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13822, mozilla::dom::quota::Severity::Error); return tryResult1120
.propagateErr(); } const auto& stmt = tryResult1120.inspect
();
;
13823
13824 QM_TRY_INSPECT(const int32_t& freelistCount,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"
, 13825, mozilla::dom::quota::Severity::Error); return tryResult1121
.propagateErr(); } const int32_t& freelistCount = tryResult1121
.inspect();
13825 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"
, 13825, mozilla::dom::quota::Severity::Error); return tryResult1121
.propagateErr(); } const int32_t& freelistCount = tryResult1121
.inspect();
;
13826
13827 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"
, 13827); AnnotateMozCrashReason("MOZ_ASSERT" "(" "freelistCount >= 0"
")"); do { *((volatile int*)__null) = 13827; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13828
13829 // If we have too many free pages then we should try an incremental
13830 // vacuum. If that causes too much fragmentation then we'll try a full
13831 // vacuum later.
13832 if (freelistCount > kMaxFreelistThreshold) {
13833 *aMaintenanceAction = MaintenanceAction::IncrementalVacuum;
13834 return NS_OK;
13835 }
13836 }
13837
13838 { // Calculate the percentage of unused bytes on pages in the database.
13839 QM_TRY_INSPECT(auto tryResult1122 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns
)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;\"_ns)"
, tryResult1122.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13843, mozilla::dom::quota::Severity::Error); return tryResult1122
.propagateErr(); } const auto& stmt = tryResult1122.inspect
();
13840 const auto& stmt,auto tryResult1122 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns
)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;\"_ns)"
, tryResult1122.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13843, mozilla::dom::quota::Severity::Error); return tryResult1122
.propagateErr(); } const auto& stmt = tryResult1122.inspect
();
13841 CreateAndExecuteSingleStepStatement(auto tryResult1122 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns
)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;\"_ns)"
, tryResult1122.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13843, mozilla::dom::quota::Severity::Error); return tryResult1122
.propagateErr(); } const auto& stmt = tryResult1122.inspect
();
13842 aConnection,auto tryResult1122 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns
)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;\"_ns)"
, tryResult1122.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13843, mozilla::dom::quota::Severity::Error); return tryResult1122
.propagateErr(); } const auto& stmt = tryResult1122.inspect
();
13843 "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns))auto tryResult1122 = (CreateAndExecuteSingleStepStatement( aConnection
, "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns
)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;\"_ns)"
, tryResult1122.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13843, mozilla::dom::quota::Severity::Error); return tryResult1122
.propagateErr(); } const auto& stmt = tryResult1122.inspect
();
;
13844
13845 QM_TRY_INSPECT(const int32_t& percentUnused,auto tryResult1123 = (::mozilla::ToResultInvokeMember( (*stmt
), &::mozilla::detail::DerefedType<decltype(*stmt)>
::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1123.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult1123.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13846, mozilla::dom::quota::Severity::Error); return tryResult1123
.propagateErr(); } const int32_t& percentUnused = tryResult1123
.inspect();
13846 MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt32, 0))auto tryResult1123 = (::mozilla::ToResultInvokeMember( (*stmt
), &::mozilla::detail::DerefedType<decltype(*stmt)>
::GetInt32, 0)); if ((__builtin_expect(!!(tryResult1123.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32, 0)"
, tryResult1123.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13846, mozilla::dom::quota::Severity::Error); return tryResult1123
.propagateErr(); } const int32_t& percentUnused = tryResult1123
.inspect();
;
13847
13848 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"
, 13848); AnnotateMozCrashReason("MOZ_ASSERT" "(" "percentUnused >= 0"
")"); do { *((volatile int*)__null) = 13848; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13849 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"
, 13849); AnnotateMozCrashReason("MOZ_ASSERT" "(" "percentUnused <= 100"
")"); do { *((volatile int*)__null) = 13849; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13850
13851 *aMaintenanceAction = percentUnused >= kPercentUnusedThreshold
13852 ? MaintenanceAction::FullVacuum
13853 : MaintenanceAction::IncrementalVacuum;
13854 }
13855
13856 return NS_OK;
13857}
13858
13859void DatabaseMaintenance::IncrementalVacuum(
13860 mozIStorageConnection& aConnection) {
13861 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"
, 13861); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { *((volatile int*)__null) = 13861; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13862 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"
, 13862); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 13862; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13863
13864 if (NS_WARN_IF(IsAborted())NS_warn_if_impl(IsAborted(), "IsAborted()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13864)
) {
13865 return;
13866 }
13867
13868 nsresult rv = aConnection.ExecuteSimpleSQL("PRAGMA incremental_vacuum;"_ns);
13869 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"
, 13869)
) {
13870 return;
13871 }
13872}
13873
13874void DatabaseMaintenance::FullVacuum(mozIStorageConnection& aConnection,
13875 nsIFile* aDatabaseFile) {
13876 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"
, 13876); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { *((volatile int*)__null) = 13876; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13877 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"
, 13877); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 13877; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13878 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"
, 13878); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseFile"
")"); do { *((volatile int*)__null) = 13878; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13879
13880 if (NS_WARN_IF(IsAborted())NS_warn_if_impl(IsAborted(), "IsAborted()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13880)
) {
13881 return;
13882 }
13883
13884 QM_WARNONLY_TRY(([&]() -> Result<Ok, nsresult> {{auto tryResult1130 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1124 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1124)::ok_type>); if ((__builtin_expect(!!(tryResult1124
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1124.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13885, mozilla::dom::quota::Severity::Error); return tryResult1124
.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"
, 13888); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { *((volatile int*)__null) = 13888; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1125 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1125.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1125.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13891, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); } const int64_t& fileSize = tryResult1125
.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"
, 13893); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 13893; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1126 = (::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(!!(tryResult1126.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)"
, tryResult1126.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13902, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); } const auto& stmt = tryResult1126.inspect
();; {auto tryResult1127 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1127.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13904, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); }}; {auto tryResult1128 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect
(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1128
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13906, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); }}; {auto tryResult1129 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1129.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13908, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1124 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1124)::ok_type>); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1124.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13885, mozilla::dom::quota::Severity::Error); return tryResult1124.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\", 13888); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13888; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1125 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1125.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13891, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const int64_t& fileSize = tryResult1125.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\", 13893); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13893; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1126 = (::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(!!(tryResult1126.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)\", tryResult1126.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13902, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const auto& stmt = tryResult1126.inspect();; {auto tryResult1127 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1127.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13904, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); }}; {auto tryResult1128 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1128.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13906, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); }}; {auto tryResult1129 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1129.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13908, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); }}; return Ok{}; }())"
, tryResult1130.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13910, mozilla::dom::quota::Severity::Warning); }}
13885 QM_TRY(MOZ_TO_RESULT(aConnection.ExecuteSimpleSQL("VACUUM;"_ns)));{auto tryResult1130 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1124 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1124)::ok_type>); if ((__builtin_expect(!!(tryResult1124
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1124.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13885, mozilla::dom::quota::Severity::Error); return tryResult1124
.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"
, 13888); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { *((volatile int*)__null) = 13888; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1125 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1125.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1125.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13891, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); } const int64_t& fileSize = tryResult1125
.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"
, 13893); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 13893; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1126 = (::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(!!(tryResult1126.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)"
, tryResult1126.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13902, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); } const auto& stmt = tryResult1126.inspect
();; {auto tryResult1127 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1127.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13904, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); }}; {auto tryResult1128 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect
(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1128
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13906, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); }}; {auto tryResult1129 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1129.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13908, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1124 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1124)::ok_type>); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1124.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13885, mozilla::dom::quota::Severity::Error); return tryResult1124.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\", 13888); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13888; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1125 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1125.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13891, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const int64_t& fileSize = tryResult1125.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\", 13893); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13893; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1126 = (::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(!!(tryResult1126.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)\", tryResult1126.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13902, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const auto& stmt = tryResult1126.inspect();; {auto tryResult1127 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1127.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13904, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); }}; {auto tryResult1128 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1128.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13906, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); }}; {auto tryResult1129 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1129.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13908, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); }}; return Ok{}; }())"
, tryResult1130.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13910, mozilla::dom::quota::Severity::Warning); }}
13886
13887 const PRTime vacuumTime = PR_Now();{auto tryResult1130 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1124 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1124)::ok_type>); if ((__builtin_expect(!!(tryResult1124
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1124.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13885, mozilla::dom::quota::Severity::Error); return tryResult1124
.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"
, 13888); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { *((volatile int*)__null) = 13888; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1125 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1125.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1125.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13891, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); } const int64_t& fileSize = tryResult1125
.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"
, 13893); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 13893; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1126 = (::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(!!(tryResult1126.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)"
, tryResult1126.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13902, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); } const auto& stmt = tryResult1126.inspect
();; {auto tryResult1127 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1127.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13904, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); }}; {auto tryResult1128 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect
(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1128
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13906, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); }}; {auto tryResult1129 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1129.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13908, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1124 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1124)::ok_type>); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1124.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13885, mozilla::dom::quota::Severity::Error); return tryResult1124.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\", 13888); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13888; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1125 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1125.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13891, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const int64_t& fileSize = tryResult1125.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\", 13893); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13893; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1126 = (::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(!!(tryResult1126.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)\", tryResult1126.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13902, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const auto& stmt = tryResult1126.inspect();; {auto tryResult1127 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1127.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13904, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); }}; {auto tryResult1128 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1128.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13906, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); }}; {auto tryResult1129 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1129.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13908, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); }}; return Ok{}; }())"
, tryResult1130.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13910, mozilla::dom::quota::Severity::Warning); }}
13888 MOZ_ASSERT(vacuumTime > 0);{auto tryResult1130 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1124 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1124)::ok_type>); if ((__builtin_expect(!!(tryResult1124
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1124.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13885, mozilla::dom::quota::Severity::Error); return tryResult1124
.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"
, 13888); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { *((volatile int*)__null) = 13888; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1125 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1125.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1125.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13891, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); } const int64_t& fileSize = tryResult1125
.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"
, 13893); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 13893; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1126 = (::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(!!(tryResult1126.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)"
, tryResult1126.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13902, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); } const auto& stmt = tryResult1126.inspect
();; {auto tryResult1127 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1127.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13904, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); }}; {auto tryResult1128 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect
(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1128
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13906, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); }}; {auto tryResult1129 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1129.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13908, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1124 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1124)::ok_type>); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1124.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13885, mozilla::dom::quota::Severity::Error); return tryResult1124.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\", 13888); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13888; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1125 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1125.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13891, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const int64_t& fileSize = tryResult1125.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\", 13893); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13893; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1126 = (::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(!!(tryResult1126.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)\", tryResult1126.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13902, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const auto& stmt = tryResult1126.inspect();; {auto tryResult1127 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1127.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13904, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); }}; {auto tryResult1128 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1128.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13906, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); }}; {auto tryResult1129 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1129.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13908, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); }}; return Ok{}; }())"
, tryResult1130.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13910, mozilla::dom::quota::Severity::Warning); }}
13889
13890 QM_TRY_INSPECT(const int64_t& fileSize,{auto tryResult1130 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1124 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1124)::ok_type>); if ((__builtin_expect(!!(tryResult1124
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1124.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13885, mozilla::dom::quota::Severity::Error); return tryResult1124
.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"
, 13888); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { *((volatile int*)__null) = 13888; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1125 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1125.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1125.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13891, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); } const int64_t& fileSize = tryResult1125
.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"
, 13893); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 13893; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1126 = (::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(!!(tryResult1126.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)"
, tryResult1126.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13902, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); } const auto& stmt = tryResult1126.inspect
();; {auto tryResult1127 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1127.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13904, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); }}; {auto tryResult1128 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect
(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1128
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13906, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); }}; {auto tryResult1129 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1129.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13908, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1124 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1124)::ok_type>); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1124.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13885, mozilla::dom::quota::Severity::Error); return tryResult1124.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\", 13888); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13888; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1125 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1125.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13891, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const int64_t& fileSize = tryResult1125.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\", 13893); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13893; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1126 = (::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(!!(tryResult1126.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)\", tryResult1126.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13902, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const auto& stmt = tryResult1126.inspect();; {auto tryResult1127 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1127.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13904, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); }}; {auto tryResult1128 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1128.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13906, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); }}; {auto tryResult1129 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1129.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13908, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); }}; return Ok{}; }())"
, tryResult1130.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13910, mozilla::dom::quota::Severity::Warning); }}
13891 MOZ_TO_RESULT_INVOKE_MEMBER(aDatabaseFile, GetFileSize));{auto tryResult1130 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1124 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1124)::ok_type>); if ((__builtin_expect(!!(tryResult1124
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1124.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13885, mozilla::dom::quota::Severity::Error); return tryResult1124
.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"
, 13888); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { *((volatile int*)__null) = 13888; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1125 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1125.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1125.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13891, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); } const int64_t& fileSize = tryResult1125
.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"
, 13893); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 13893; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1126 = (::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(!!(tryResult1126.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)"
, tryResult1126.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13902, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); } const auto& stmt = tryResult1126.inspect
();; {auto tryResult1127 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1127.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13904, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); }}; {auto tryResult1128 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect
(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1128
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13906, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); }}; {auto tryResult1129 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1129.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13908, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1124 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1124)::ok_type>); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1124.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13885, mozilla::dom::quota::Severity::Error); return tryResult1124.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\", 13888); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13888; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1125 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1125.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13891, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const int64_t& fileSize = tryResult1125.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\", 13893); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13893; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1126 = (::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(!!(tryResult1126.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)\", tryResult1126.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13902, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const auto& stmt = tryResult1126.inspect();; {auto tryResult1127 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1127.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13904, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); }}; {auto tryResult1128 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1128.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13906, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); }}; {auto tryResult1129 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1129.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13908, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); }}; return Ok{}; }())"
, tryResult1130.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13910, mozilla::dom::quota::Severity::Warning); }}
13892
13893 MOZ_ASSERT(fileSize > 0);{auto tryResult1130 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1124 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1124)::ok_type>); if ((__builtin_expect(!!(tryResult1124
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1124.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13885, mozilla::dom::quota::Severity::Error); return tryResult1124
.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"
, 13888); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { *((volatile int*)__null) = 13888; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1125 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1125.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1125.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13891, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); } const int64_t& fileSize = tryResult1125
.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"
, 13893); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 13893; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1126 = (::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(!!(tryResult1126.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)"
, tryResult1126.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13902, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); } const auto& stmt = tryResult1126.inspect
();; {auto tryResult1127 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1127.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13904, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); }}; {auto tryResult1128 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect
(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1128
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13906, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); }}; {auto tryResult1129 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1129.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13908, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1124 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1124)::ok_type>); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1124.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13885, mozilla::dom::quota::Severity::Error); return tryResult1124.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\", 13888); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13888; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1125 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1125.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13891, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const int64_t& fileSize = tryResult1125.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\", 13893); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13893; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1126 = (::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(!!(tryResult1126.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)\", tryResult1126.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13902, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const auto& stmt = tryResult1126.inspect();; {auto tryResult1127 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1127.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13904, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); }}; {auto tryResult1128 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1128.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13906, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); }}; {auto tryResult1129 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1129.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13908, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); }}; return Ok{}; }())"
, tryResult1130.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13910, mozilla::dom::quota::Severity::Warning); }}
13894
13895 // The parameter names are not used, parameters are bound by index only{auto tryResult1130 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1124 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1124)::ok_type>); if ((__builtin_expect(!!(tryResult1124
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1124.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13885, mozilla::dom::quota::Severity::Error); return tryResult1124
.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"
, 13888); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { *((volatile int*)__null) = 13888; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1125 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1125.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1125.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13891, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); } const int64_t& fileSize = tryResult1125
.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"
, 13893); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 13893; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1126 = (::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(!!(tryResult1126.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)"
, tryResult1126.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13902, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); } const auto& stmt = tryResult1126.inspect
();; {auto tryResult1127 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1127.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13904, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); }}; {auto tryResult1128 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect
(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1128
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13906, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); }}; {auto tryResult1129 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1129.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13908, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1124 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1124)::ok_type>); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1124.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13885, mozilla::dom::quota::Severity::Error); return tryResult1124.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\", 13888); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13888; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1125 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1125.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13891, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const int64_t& fileSize = tryResult1125.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\", 13893); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13893; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1126 = (::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(!!(tryResult1126.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)\", tryResult1126.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13902, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const auto& stmt = tryResult1126.inspect();; {auto tryResult1127 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1127.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13904, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); }}; {auto tryResult1128 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1128.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13906, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); }}; {auto tryResult1129 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1129.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13908, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); }}; return Ok{}; }())"
, tryResult1130.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13910, mozilla::dom::quota::Severity::Warning); }}
13896 // locally in the same function.{auto tryResult1130 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1124 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1124)::ok_type>); if ((__builtin_expect(!!(tryResult1124
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1124.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13885, mozilla::dom::quota::Severity::Error); return tryResult1124
.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"
, 13888); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { *((volatile int*)__null) = 13888; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1125 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1125.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1125.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13891, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); } const int64_t& fileSize = tryResult1125
.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"
, 13893); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 13893; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1126 = (::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(!!(tryResult1126.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)"
, tryResult1126.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13902, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); } const auto& stmt = tryResult1126.inspect
();; {auto tryResult1127 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1127.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13904, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); }}; {auto tryResult1128 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect
(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1128
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13906, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); }}; {auto tryResult1129 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1129.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13908, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1124 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1124)::ok_type>); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1124.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13885, mozilla::dom::quota::Severity::Error); return tryResult1124.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\", 13888); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13888; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1125 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1125.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13891, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const int64_t& fileSize = tryResult1125.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\", 13893); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13893; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1126 = (::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(!!(tryResult1126.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)\", tryResult1126.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13902, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const auto& stmt = tryResult1126.inspect();; {auto tryResult1127 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1127.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13904, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); }}; {auto tryResult1128 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1128.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13906, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); }}; {auto tryResult1129 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1129.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13908, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); }}; return Ok{}; }())"
, tryResult1130.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13910, mozilla::dom::quota::Severity::Warning); }}
13897 QM_TRY_INSPECT(const auto& stmt, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED({auto tryResult1130 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1124 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1124)::ok_type>); if ((__builtin_expect(!!(tryResult1124
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1124.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13885, mozilla::dom::quota::Severity::Error); return tryResult1124
.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"
, 13888); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { *((volatile int*)__null) = 13888; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1125 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1125.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1125.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13891, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); } const int64_t& fileSize = tryResult1125
.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"
, 13893); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 13893; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1126 = (::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(!!(tryResult1126.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)"
, tryResult1126.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13902, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); } const auto& stmt = tryResult1126.inspect
();; {auto tryResult1127 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1127.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13904, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); }}; {auto tryResult1128 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect
(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1128
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13906, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); }}; {auto tryResult1129 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1129.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13908, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1124 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1124)::ok_type>); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1124.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13885, mozilla::dom::quota::Severity::Error); return tryResult1124.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\", 13888); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13888; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1125 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1125.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13891, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const int64_t& fileSize = tryResult1125.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\", 13893); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13893; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1126 = (::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(!!(tryResult1126.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)\", tryResult1126.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13902, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const auto& stmt = tryResult1126.inspect();; {auto tryResult1127 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1127.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13904, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); }}; {auto tryResult1128 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1128.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13906, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); }}; {auto tryResult1129 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1129.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13908, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); }}; return Ok{}; }())"
, tryResult1130.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13910, mozilla::dom::quota::Severity::Warning); }}
13898 nsCOMPtr<mozIStorageStatement>,{auto tryResult1130 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1124 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1124)::ok_type>); if ((__builtin_expect(!!(tryResult1124
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1124.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13885, mozilla::dom::quota::Severity::Error); return tryResult1124
.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"
, 13888); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { *((volatile int*)__null) = 13888; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1125 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1125.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1125.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13891, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); } const int64_t& fileSize = tryResult1125
.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"
, 13893); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 13893; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1126 = (::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(!!(tryResult1126.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)"
, tryResult1126.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13902, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); } const auto& stmt = tryResult1126.inspect
();; {auto tryResult1127 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1127.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13904, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); }}; {auto tryResult1128 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect
(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1128
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13906, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); }}; {auto tryResult1129 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1129.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13908, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1124 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1124)::ok_type>); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1124.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13885, mozilla::dom::quota::Severity::Error); return tryResult1124.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\", 13888); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13888; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1125 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1125.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13891, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const int64_t& fileSize = tryResult1125.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\", 13893); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13893; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1126 = (::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(!!(tryResult1126.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)\", tryResult1126.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13902, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const auto& stmt = tryResult1126.inspect();; {auto tryResult1127 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1127.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13904, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); }}; {auto tryResult1128 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1128.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13906, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); }}; {auto tryResult1129 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1129.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13908, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); }}; return Ok{}; }())"
, tryResult1130.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13910, mozilla::dom::quota::Severity::Warning); }}
13899 aConnection, CreateStatement,{auto tryResult1130 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1124 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1124)::ok_type>); if ((__builtin_expect(!!(tryResult1124
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1124.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13885, mozilla::dom::quota::Severity::Error); return tryResult1124
.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"
, 13888); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { *((volatile int*)__null) = 13888; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1125 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1125.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1125.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13891, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); } const int64_t& fileSize = tryResult1125
.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"
, 13893); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 13893; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1126 = (::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(!!(tryResult1126.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)"
, tryResult1126.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13902, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); } const auto& stmt = tryResult1126.inspect
();; {auto tryResult1127 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1127.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13904, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); }}; {auto tryResult1128 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect
(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1128
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13906, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); }}; {auto tryResult1129 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1129.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13908, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1124 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1124)::ok_type>); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1124.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13885, mozilla::dom::quota::Severity::Error); return tryResult1124.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\", 13888); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13888; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1125 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1125.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13891, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const int64_t& fileSize = tryResult1125.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\", 13893); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13893; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1126 = (::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(!!(tryResult1126.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)\", tryResult1126.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13902, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const auto& stmt = tryResult1126.inspect();; {auto tryResult1127 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1127.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13904, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); }}; {auto tryResult1128 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1128.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13906, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); }}; {auto tryResult1129 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1129.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13908, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); }}; return Ok{}; }())"
, tryResult1130.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13910, mozilla::dom::quota::Severity::Warning); }}
13900 "UPDATE database "{auto tryResult1130 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1124 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1124)::ok_type>); if ((__builtin_expect(!!(tryResult1124
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1124.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13885, mozilla::dom::quota::Severity::Error); return tryResult1124
.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"
, 13888); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { *((volatile int*)__null) = 13888; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1125 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1125.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1125.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13891, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); } const int64_t& fileSize = tryResult1125
.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"
, 13893); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 13893; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1126 = (::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(!!(tryResult1126.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)"
, tryResult1126.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13902, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); } const auto& stmt = tryResult1126.inspect
();; {auto tryResult1127 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1127.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13904, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); }}; {auto tryResult1128 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect
(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1128
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13906, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); }}; {auto tryResult1129 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1129.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13908, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1124 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1124)::ok_type>); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1124.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13885, mozilla::dom::quota::Severity::Error); return tryResult1124.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\", 13888); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13888; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1125 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1125.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13891, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const int64_t& fileSize = tryResult1125.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\", 13893); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13893; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1126 = (::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(!!(tryResult1126.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)\", tryResult1126.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13902, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const auto& stmt = tryResult1126.inspect();; {auto tryResult1127 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1127.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13904, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); }}; {auto tryResult1128 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1128.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13906, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); }}; {auto tryResult1129 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1129.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13908, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); }}; return Ok{}; }())"
, tryResult1130.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13910, mozilla::dom::quota::Severity::Warning); }}
13901 "SET last_vacuum_time = :time"{auto tryResult1130 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1124 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1124)::ok_type>); if ((__builtin_expect(!!(tryResult1124
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1124.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13885, mozilla::dom::quota::Severity::Error); return tryResult1124
.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"
, 13888); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { *((volatile int*)__null) = 13888; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1125 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1125.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1125.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13891, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); } const int64_t& fileSize = tryResult1125
.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"
, 13893); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 13893; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1126 = (::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(!!(tryResult1126.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)"
, tryResult1126.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13902, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); } const auto& stmt = tryResult1126.inspect
();; {auto tryResult1127 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1127.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13904, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); }}; {auto tryResult1128 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect
(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1128
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13906, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); }}; {auto tryResult1129 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1129.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13908, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1124 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1124)::ok_type>); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1124.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13885, mozilla::dom::quota::Severity::Error); return tryResult1124.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\", 13888); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13888; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1125 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1125.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13891, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const int64_t& fileSize = tryResult1125.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\", 13893); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13893; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1126 = (::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(!!(tryResult1126.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)\", tryResult1126.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13902, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const auto& stmt = tryResult1126.inspect();; {auto tryResult1127 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1127.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13904, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); }}; {auto tryResult1128 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1128.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13906, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); }}; {auto tryResult1129 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1129.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13908, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); }}; return Ok{}; }())"
, tryResult1130.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13910, mozilla::dom::quota::Severity::Warning); }}
13902 ", last_vacuum_size = :size;"_ns));{auto tryResult1130 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1124 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1124)::ok_type>); if ((__builtin_expect(!!(tryResult1124
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1124.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13885, mozilla::dom::quota::Severity::Error); return tryResult1124
.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"
, 13888); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { *((volatile int*)__null) = 13888; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1125 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1125.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1125.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13891, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); } const int64_t& fileSize = tryResult1125
.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"
, 13893); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 13893; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1126 = (::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(!!(tryResult1126.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)"
, tryResult1126.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13902, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); } const auto& stmt = tryResult1126.inspect
();; {auto tryResult1127 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1127.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13904, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); }}; {auto tryResult1128 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect
(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1128
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13906, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); }}; {auto tryResult1129 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1129.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13908, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1124 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1124)::ok_type>); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1124.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13885, mozilla::dom::quota::Severity::Error); return tryResult1124.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\", 13888); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13888; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1125 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1125.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13891, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const int64_t& fileSize = tryResult1125.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\", 13893); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13893; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1126 = (::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(!!(tryResult1126.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)\", tryResult1126.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13902, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const auto& stmt = tryResult1126.inspect();; {auto tryResult1127 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1127.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13904, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); }}; {auto tryResult1128 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1128.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13906, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); }}; {auto tryResult1129 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1129.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13908, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); }}; return Ok{}; }())"
, tryResult1130.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13910, mozilla::dom::quota::Severity::Warning); }}
13903
13904 QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByIndex(0, vacuumTime)));{auto tryResult1130 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1124 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1124)::ok_type>); if ((__builtin_expect(!!(tryResult1124
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1124.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13885, mozilla::dom::quota::Severity::Error); return tryResult1124
.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"
, 13888); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { *((volatile int*)__null) = 13888; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1125 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1125.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1125.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13891, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); } const int64_t& fileSize = tryResult1125
.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"
, 13893); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 13893; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1126 = (::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(!!(tryResult1126.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)"
, tryResult1126.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13902, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); } const auto& stmt = tryResult1126.inspect
();; {auto tryResult1127 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1127.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13904, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); }}; {auto tryResult1128 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect
(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1128
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13906, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); }}; {auto tryResult1129 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1129.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13908, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1124 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1124)::ok_type>); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1124.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13885, mozilla::dom::quota::Severity::Error); return tryResult1124.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\", 13888); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13888; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1125 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1125.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13891, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const int64_t& fileSize = tryResult1125.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\", 13893); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13893; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1126 = (::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(!!(tryResult1126.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)\", tryResult1126.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13902, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const auto& stmt = tryResult1126.inspect();; {auto tryResult1127 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1127.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13904, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); }}; {auto tryResult1128 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1128.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13906, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); }}; {auto tryResult1129 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1129.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13908, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); }}; return Ok{}; }())"
, tryResult1130.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13910, mozilla::dom::quota::Severity::Warning); }}
13905
13906 QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByIndex(1, fileSize)));{auto tryResult1130 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1124 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1124)::ok_type>); if ((__builtin_expect(!!(tryResult1124
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1124.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13885, mozilla::dom::quota::Severity::Error); return tryResult1124
.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"
, 13888); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { *((volatile int*)__null) = 13888; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1125 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1125.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1125.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13891, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); } const int64_t& fileSize = tryResult1125
.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"
, 13893); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 13893; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1126 = (::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(!!(tryResult1126.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)"
, tryResult1126.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13902, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); } const auto& stmt = tryResult1126.inspect
();; {auto tryResult1127 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1127.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13904, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); }}; {auto tryResult1128 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect
(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1128
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13906, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); }}; {auto tryResult1129 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1129.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13908, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1124 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1124)::ok_type>); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1124.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13885, mozilla::dom::quota::Severity::Error); return tryResult1124.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\", 13888); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13888; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1125 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1125.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13891, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const int64_t& fileSize = tryResult1125.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\", 13893); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13893; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1126 = (::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(!!(tryResult1126.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)\", tryResult1126.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13902, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const auto& stmt = tryResult1126.inspect();; {auto tryResult1127 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1127.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13904, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); }}; {auto tryResult1128 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1128.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13906, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); }}; {auto tryResult1129 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1129.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13908, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); }}; return Ok{}; }())"
, tryResult1130.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13910, mozilla::dom::quota::Severity::Warning); }}
13907
13908 QM_TRY(MOZ_TO_RESULT(stmt->Execute()));{auto tryResult1130 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1124 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1124)::ok_type>); if ((__builtin_expect(!!(tryResult1124
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1124.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13885, mozilla::dom::quota::Severity::Error); return tryResult1124
.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"
, 13888); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { *((volatile int*)__null) = 13888; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1125 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1125.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1125.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13891, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); } const int64_t& fileSize = tryResult1125
.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"
, 13893); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 13893; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1126 = (::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(!!(tryResult1126.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)"
, tryResult1126.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13902, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); } const auto& stmt = tryResult1126.inspect
();; {auto tryResult1127 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1127.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13904, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); }}; {auto tryResult1128 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect
(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1128
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13906, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); }}; {auto tryResult1129 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1129.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13908, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1124 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1124)::ok_type>); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1124.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13885, mozilla::dom::quota::Severity::Error); return tryResult1124.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\", 13888); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13888; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1125 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1125.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13891, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const int64_t& fileSize = tryResult1125.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\", 13893); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13893; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1126 = (::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(!!(tryResult1126.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)\", tryResult1126.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13902, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const auto& stmt = tryResult1126.inspect();; {auto tryResult1127 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1127.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13904, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); }}; {auto tryResult1128 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1128.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13906, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); }}; {auto tryResult1129 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1129.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13908, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); }}; return Ok{}; }())"
, tryResult1130.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13910, mozilla::dom::quota::Severity::Warning); }}
13909 return Ok{};{auto tryResult1130 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1124 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1124)::ok_type>); if ((__builtin_expect(!!(tryResult1124
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1124.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13885, mozilla::dom::quota::Severity::Error); return tryResult1124
.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"
, 13888); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { *((volatile int*)__null) = 13888; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1125 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1125.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1125.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13891, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); } const int64_t& fileSize = tryResult1125
.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"
, 13893); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 13893; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1126 = (::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(!!(tryResult1126.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)"
, tryResult1126.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13902, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); } const auto& stmt = tryResult1126.inspect
();; {auto tryResult1127 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1127.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13904, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); }}; {auto tryResult1128 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect
(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1128
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13906, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); }}; {auto tryResult1129 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1129.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13908, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1124 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1124)::ok_type>); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1124.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13885, mozilla::dom::quota::Severity::Error); return tryResult1124.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\", 13888); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13888; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1125 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1125.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13891, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const int64_t& fileSize = tryResult1125.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\", 13893); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13893; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1126 = (::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(!!(tryResult1126.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)\", tryResult1126.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13902, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const auto& stmt = tryResult1126.inspect();; {auto tryResult1127 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1127.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13904, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); }}; {auto tryResult1128 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1128.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13906, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); }}; {auto tryResult1129 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1129.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13908, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); }}; return Ok{}; }())"
, tryResult1130.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13910, mozilla::dom::quota::Severity::Warning); }}
13910 }())){auto tryResult1130 = (([&]() -> Result<Ok, nsresult
> { {auto tryResult1124 = (ToResult(aConnection.ExecuteSimpleSQL
("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype
(tryResult1124)::ok_type>); if ((__builtin_expect(!!(tryResult1124
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))"
, tryResult1124.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13885, mozilla::dom::quota::Severity::Error); return tryResult1124
.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"
, 13888); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime > 0"
")"); do { *((volatile int*)__null) = 13888; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1125 = (::mozilla::ToResultInvokeMember( (aDatabaseFile
), &::mozilla::detail::DerefedType<decltype(aDatabaseFile
)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1125.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)"
, tryResult1125.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13891, mozilla::dom::quota::Severity::Error); return tryResult1125
.propagateErr(); } const int64_t& fileSize = tryResult1125
.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"
, 13893); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0"
")"); do { *((volatile int*)__null) = 13893; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); auto
tryResult1126 = (::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(!!(tryResult1126.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)"
, tryResult1126.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13902, mozilla::dom::quota::Severity::Error); return tryResult1126
.propagateErr(); } const auto& stmt = tryResult1126.inspect
();; {auto tryResult1127 = (ToResult(stmt->BindInt64ByIndex
(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype
(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))"
, tryResult1127.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13904, mozilla::dom::quota::Severity::Error); return tryResult1127
.propagateErr(); }}; {auto tryResult1128 = (ToResult(stmt->
BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v
<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect
(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1128
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13906, mozilla::dom::quota::Severity::Error); return tryResult1128
.propagateErr(); }}; {auto tryResult1129 = (ToResult(stmt->
Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1129.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13908, mozilla::dom::quota::Severity::Error); return tryResult1129
.propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v
<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect
(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&]() -> Result<Ok, nsresult> { {auto tryResult1124 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1124)::ok_type>); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1124.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13885, mozilla::dom::quota::Severity::Error); return tryResult1124.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\", 13888); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"vacuumTime > 0\" \")\"); do { *((volatile int*)__null) = 13888; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1125 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize)\", tryResult1125.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13891, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const int64_t& fileSize = tryResult1125.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\", 13893); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileSize > 0\" \")\"); do { *((volatile int*)__null) = 13893; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1126 = (::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(!!(tryResult1126.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)\", tryResult1126.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13902, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const auto& stmt = tryResult1126.inspect();; {auto tryResult1127 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1127)::ok_type>); if ((__builtin_expect(!!(tryResult1127.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1127.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13904, mozilla::dom::quota::Severity::Error); return tryResult1127.propagateErr(); }}; {auto tryResult1128 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1128)::ok_type>); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1128.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13906, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); }}; {auto tryResult1129 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1129)::ok_type>); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1129.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 13908, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); }}; return Ok{}; }())"
, tryResult1130.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13910, mozilla::dom::quota::Severity::Warning); }}
;
13911}
13912
13913void DatabaseMaintenance::RunOnOwningThread() {
13914 AssertIsOnBackgroundThread();
13915
13916 DropDirectoryLock(mDirectoryLock);
13917
13918 if (mCompleteCallback) {
13919 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 { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(NS_DispatchToCurrentThread(mCompleteCallback.forget()))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13919); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(NS_DispatchToCurrentThread(mCompleteCallback.forget()))"
")"); do { *((volatile int*)__null) = 13919; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
13920 }
13921
13922 mMaintenance->UnregisterDatabaseMaintenance(this);
13923}
13924
13925void DatabaseMaintenance::RunOnConnectionThread() {
13926 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"
, 13926); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { *((volatile int*)__null) = 13926; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13927 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"
, 13927); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 13927; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13928
13929 PerformMaintenanceOnDatabase();
13930
13931 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mMaintenance->BackgroundThread()->Dispatch(this, nsIEventTarget
::DISPATCH_NORMAL))), 1)))), 1))) { } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "NS_SUCCEEDED(mMaintenance->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13932); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(mMaintenance->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { *((volatile int*)__null) = 13932; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
13932 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 { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "NS_SUCCEEDED(mMaintenance->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 13932); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(mMaintenance->BackgroundThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { *((volatile int*)__null) = 13932; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
13933}
13934
13935NS_IMETHODIMPnsresult
13936DatabaseMaintenance::Run() {
13937 if (IsOnBackgroundThread()) {
13938 RunOnOwningThread();
13939 } else {
13940 RunOnConnectionThread();
13941 }
13942
13943 return NS_OK;
13944}
13945
13946/*******************************************************************************
13947 * Local class implementations
13948 ******************************************************************************/
13949
13950// static
13951nsAutoCString DatabaseOperationBase::MaybeGetBindingClauseForKeyRange(
13952 const Maybe<SerializedKeyRange>& aOptionalKeyRange,
13953 const nsACString& aKeyColumnName) {
13954 return aOptionalKeyRange.isSome()
13955 ? GetBindingClauseForKeyRange(aOptionalKeyRange.ref(),
13956 aKeyColumnName)
13957 : nsAutoCString{};
13958}
13959
13960// static
13961nsAutoCString DatabaseOperationBase::GetBindingClauseForKeyRange(
13962 const SerializedKeyRange& aKeyRange, const nsACString& aKeyColumnName) {
13963 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"
, 13963); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 13963; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13964 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"
, 13964); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aKeyColumnName.IsEmpty()"
")"); do { *((volatile int*)__null) = 13964; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13965
13966 constexpr auto andStr = " AND "_ns;
13967 constexpr auto spacecolon = " :"_ns;
13968
13969 nsAutoCString result;
13970 if (aKeyRange.isOnly()) {
13971 // Both keys equal.
13972 result =
13973 andStr + aKeyColumnName + " ="_ns + spacecolon + kStmtParamNameLowerKey;
13974 } else {
13975 if (!aKeyRange.lower().IsUnset()) {
13976 // Lower key is set.
13977 result.Append(andStr + aKeyColumnName);
13978 result.AppendLiteral(" >");
13979 if (!aKeyRange.lowerOpen()) {
13980 result.AppendLiteral("=");
13981 }
13982 result.Append(spacecolon + kStmtParamNameLowerKey);
13983 }
13984
13985 if (!aKeyRange.upper().IsUnset()) {
13986 // Upper key is set.
13987 result.Append(andStr + aKeyColumnName);
13988 result.AppendLiteral(" <");
13989 if (!aKeyRange.upperOpen()) {
13990 result.AppendLiteral("=");
13991 }
13992 result.Append(spacecolon + kStmtParamNameUpperKey);
13993 }
13994 }
13995
13996 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"
, 13996); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!result.IsEmpty()"
")"); do { *((volatile int*)__null) = 13996; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
13997
13998 return result;
13999}
14000
14001// static
14002uint64_t DatabaseOperationBase::ReinterpretDoubleAsUInt64(double aDouble) {
14003 // This is a duplicate of the js engine's byte munging in StructuredClone.cpp
14004 return BitwiseCast<uint64_t>(aDouble);
14005}
14006
14007// static
14008template <typename KeyTransformation>
14009nsresult DatabaseOperationBase::MaybeBindKeyToStatement(
14010 const Key& aKey, mozIStorageStatement* const aStatement,
14011 const nsACString& aParameterName,
14012 const KeyTransformation& aKeyTransformation) {
14013 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"
, 14013); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 14013; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14014 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"
, 14014); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aStatement"
")"); do { *((volatile int*)__null) = 14014; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14015
14016 if (!aKey.IsUnset()) {
14017 // XXX This case distinction could be avoided if QM_TRY_INSPECT would also
14018 // work with a function not returning a Result<V, E> but simply a V (which
14019 // is const Key& here) and then assuming it is always a success. Or the
14020 // transformation could be changed to return Result<const V&, void> but I
14021 // don't think that Result supports that at the moment.
14022 if constexpr (std::is_reference_v<
14023 std::invoke_result_t<KeyTransformation, Key>>) {
14024 QM_TRY(MOZ_TO_RESULT(aKeyTransformation(aKey).BindToStatement({auto tryResult1131 = (ToResult(aKeyTransformation(aKey).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(aKeyTransformation(aKey).BindToStatement( aStatement, aParameterName))"
, tryResult1131.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14025, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
14025 aStatement, aParameterName))){auto tryResult1131 = (ToResult(aKeyTransformation(aKey).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(aKeyTransformation(aKey).BindToStatement( aStatement, aParameterName))"
, tryResult1131.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14025, mozilla::dom::quota::Severity::Error); return tryResult1131
.propagateErr(); }}
;
14026 } else {
14027 QM_TRY_INSPECT(const auto& transformedKey, aKeyTransformation(aKey))auto tryResult1132 = (aKeyTransformation(aKey)); if ((__builtin_expect
(!!(tryResult1132.isErr()), 0))) { mozilla::dom::quota::HandleError
("aKeyTransformation(aKey)", tryResult1132.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14027, mozilla::dom::quota::Severity::Error); return tryResult1132
.propagateErr(); } const auto& transformedKey = tryResult1132
.inspect();
;
14028 QM_TRY(MOZ_TO_RESULT({auto tryResult1133 = (ToResult(transformedKey.BindToStatement
(aStatement, aParameterName))); static_assert(std::is_empty_v
<typename decltype(tryResult1133)::ok_type>); if ((__builtin_expect
(!!(tryResult1133.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(transformedKey.BindToStatement(aStatement, aParameterName))"
, tryResult1133.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14029, mozilla::dom::quota::Severity::Error); return tryResult1133
.propagateErr(); }}
14029 transformedKey.BindToStatement(aStatement, aParameterName))){auto tryResult1133 = (ToResult(transformedKey.BindToStatement
(aStatement, aParameterName))); static_assert(std::is_empty_v
<typename decltype(tryResult1133)::ok_type>); if ((__builtin_expect
(!!(tryResult1133.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(transformedKey.BindToStatement(aStatement, aParameterName))"
, tryResult1133.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14029, mozilla::dom::quota::Severity::Error); return tryResult1133
.propagateErr(); }}
;
14030 }
14031 }
14032
14033 return NS_OK;
14034}
14035
14036// static
14037template <typename KeyTransformation>
14038nsresult DatabaseOperationBase::BindTransformedKeyRangeToStatement(
14039 const SerializedKeyRange& aKeyRange, mozIStorageStatement* const aStatement,
14040 const KeyTransformation& aKeyTransformation) {
14041 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"
, 14041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 14041; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14042 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"
, 14042); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aStatement"
")"); do { *((volatile int*)__null) = 14042; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14043
14044 QM_TRY(MOZ_TO_RESULT(MaybeBindKeyToStatement(aKeyRange.lower(), aStatement,{auto tryResult1134 = (ToResult(MaybeBindKeyToStatement(aKeyRange
.lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation
))); static_assert(std::is_empty_v<typename decltype(tryResult1134
)::ok_type>); if ((__builtin_expect(!!(tryResult1134.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation))"
, tryResult1134.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14046, mozilla::dom::quota::Severity::Error); return tryResult1134
.propagateErr(); }}
14045 kStmtParamNameLowerKey,{auto tryResult1134 = (ToResult(MaybeBindKeyToStatement(aKeyRange
.lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation
))); static_assert(std::is_empty_v<typename decltype(tryResult1134
)::ok_type>); if ((__builtin_expect(!!(tryResult1134.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation))"
, tryResult1134.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14046, mozilla::dom::quota::Severity::Error); return tryResult1134
.propagateErr(); }}
14046 aKeyTransformation))){auto tryResult1134 = (ToResult(MaybeBindKeyToStatement(aKeyRange
.lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation
))); static_assert(std::is_empty_v<typename decltype(tryResult1134
)::ok_type>); if ((__builtin_expect(!!(tryResult1134.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation))"
, tryResult1134.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14046, mozilla::dom::quota::Severity::Error); return tryResult1134
.propagateErr(); }}
;
14047
14048 if (aKeyRange.isOnly()) {
14049 return NS_OK;
14050 }
14051
14052 QM_TRY(MOZ_TO_RESULT(MaybeBindKeyToStatement(aKeyRange.upper(), aStatement,{auto tryResult1135 = (ToResult(MaybeBindKeyToStatement(aKeyRange
.upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation
))); static_assert(std::is_empty_v<typename decltype(tryResult1135
)::ok_type>); if ((__builtin_expect(!!(tryResult1135.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation))"
, tryResult1135.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14054, mozilla::dom::quota::Severity::Error); return tryResult1135
.propagateErr(); }}
14053 kStmtParamNameUpperKey,{auto tryResult1135 = (ToResult(MaybeBindKeyToStatement(aKeyRange
.upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation
))); static_assert(std::is_empty_v<typename decltype(tryResult1135
)::ok_type>); if ((__builtin_expect(!!(tryResult1135.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation))"
, tryResult1135.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14054, mozilla::dom::quota::Severity::Error); return tryResult1135
.propagateErr(); }}
14054 aKeyTransformation))){auto tryResult1135 = (ToResult(MaybeBindKeyToStatement(aKeyRange
.upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation
))); static_assert(std::is_empty_v<typename decltype(tryResult1135
)::ok_type>); if ((__builtin_expect(!!(tryResult1135.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation))"
, tryResult1135.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14054, mozilla::dom::quota::Severity::Error); return tryResult1135
.propagateErr(); }}
;
14055
14056 return NS_OK;
14057}
14058
14059// static
14060nsresult DatabaseOperationBase::BindKeyRangeToStatement(
14061 const SerializedKeyRange& aKeyRange,
14062 mozIStorageStatement* const aStatement) {
14063 return BindTransformedKeyRangeToStatement(
14064 aKeyRange, aStatement, [](const Key& key) -> const auto& { return key; });
14065}
14066
14067// static
14068nsresult DatabaseOperationBase::BindKeyRangeToStatement(
14069 const SerializedKeyRange& aKeyRange, mozIStorageStatement* const aStatement,
14070 const nsCString& aLocale) {
14071 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"
, 14071); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aLocale.IsEmpty()"
")"); do { *((volatile int*)__null) = 14071; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14072
14073 return BindTransformedKeyRangeToStatement(
14074 aKeyRange, aStatement,
14075 [&aLocale](const Key& key) { return key.ToLocaleAwareKey(aLocale); });
14076}
14077
14078// static
14079void CommonOpenOpHelperBase::AppendConditionClause(
14080 const nsACString& aColumnName, const nsACString& aStatementParameterName,
14081 bool aLessThan, bool aEquals, nsCString& aResult) {
14082 aResult += " AND "_ns + aColumnName + " "_ns;
14083
14084 if (aLessThan) {
14085 aResult.Append('<');
14086 } else {
14087 aResult.Append('>');
14088 }
14089
14090 if (aEquals) {
14091 aResult.Append('=');
14092 }
14093
14094 aResult += " :"_ns + aStatementParameterName;
14095}
14096
14097// static
14098Result<IndexDataValuesAutoArray, nsresult>
14099DatabaseOperationBase::IndexDataValuesFromUpdateInfos(
14100 const nsTArray<IndexUpdateInfo>& aUpdateInfos,
14101 const UniqueIndexTable& aUniqueIndexTable) {
14102 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"
, 14102); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aUniqueIndexTable.Count()"
")"); do { *((volatile int*)__null) = 14102; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
14103
14104 AUTO_PROFILER_LABEL("DatabaseOperationBase::IndexDataValuesFromUpdateInfos",mozilla::AutoProfilerLabel raiiObject14105( "DatabaseOperationBase::IndexDataValuesFromUpdateInfos"
, nullptr, JS::ProfilingCategoryPair::DOM)
14105 DOM)mozilla::AutoProfilerLabel raiiObject14105( "DatabaseOperationBase::IndexDataValuesFromUpdateInfos"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
14106
14107 // XXX We could use TransformIntoNewArray here if it allowed to specify that
14108 // an AutoArray should be created.
14109 IndexDataValuesAutoArray indexValues;
14110
14111 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"
, 14111)
) {
14112 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14112, "UnknownErr")
;
14113 return Err(NS_ERROR_OUT_OF_MEMORY);
14114 }
14115
14116 std::transform(aUpdateInfos.cbegin(), aUpdateInfos.cend(),
14117 MakeBackInserter(indexValues),
14118 [&aUniqueIndexTable](const IndexUpdateInfo& updateInfo) {
14119 const IndexOrObjectStoreId& indexId = updateInfo.indexId();
14120
14121 bool unique = false;
14122 MOZ_ALWAYS_TRUE(aUniqueIndexTable.Get(indexId, &unique))do { if ((__builtin_expect(!!(aUniqueIndexTable.Get(indexId, &
unique)), 1))) { } else { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "aUniqueIndexTable.Get(indexId, &unique)"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14122); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "aUniqueIndexTable.Get(indexId, &unique)" ")"); do
{ *((volatile int*)__null) = 14122; __attribute__((nomerge))
::abort(); } while (false); } } while (false); } } while (false
)
;
14123
14124 return IndexDataValue{indexId, unique, updateInfo.value(),
14125 updateInfo.localizedValue()};
14126 });
14127 indexValues.Sort();
14128
14129 return indexValues;
14130}
14131
14132// static
14133nsresult DatabaseOperationBase::InsertIndexTableRows(
14134 DatabaseConnection* aConnection, const IndexOrObjectStoreId aObjectStoreId,
14135 const Key& aObjectStoreKey, const nsTArray<IndexDataValue>& aIndexValues) {
14136 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"
, 14136); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 14136; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14137 aConnection->AssertIsOnConnectionThread();
14138 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"
, 14138); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aObjectStoreKey.IsUnset()"
")"); do { *((volatile int*)__null) = 14138; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14139
14140 AUTO_PROFILER_LABEL("DatabaseOperationBase::InsertIndexTableRows", DOM)mozilla::AutoProfilerLabel raiiObject14140( "DatabaseOperationBase::InsertIndexTableRows"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
14141
14142 const uint32_t count = aIndexValues.Length();
14143 if (!count) {
14144 return NS_OK;
14145 }
14146
14147 auto insertUniqueStmt = DatabaseConnection::LazyStatement{
14148 *aConnection,
14149 "INSERT INTO unique_index_data "
14150 "(index_id, value, object_store_id, "
14151 "object_data_key, value_locale) "
14152 "VALUES (:"_ns +
14153 kStmtParamNameIndexId + ", :"_ns + kStmtParamNameValue + ", :"_ns +
14154 kStmtParamNameObjectStoreId + ", :"_ns + kStmtParamNameObjectDataKey +
14155 ", :"_ns + kStmtParamNameValueLocale + ");"_ns};
14156 auto insertStmt = DatabaseConnection::LazyStatement{
14157 *aConnection,
14158 "INSERT OR IGNORE INTO index_data "
14159 "(index_id, value, object_data_key, "
14160 "object_store_id, value_locale) "
14161 "VALUES (:"_ns +
14162 kStmtParamNameIndexId + ", :"_ns + kStmtParamNameValue + ", :"_ns +
14163 kStmtParamNameObjectDataKey + ", :"_ns + kStmtParamNameObjectStoreId +
14164 ", :"_ns + kStmtParamNameValueLocale + ");"_ns};
14165
14166 for (uint32_t index = 0; index < count; index++) {
14167 const IndexDataValue& info = aIndexValues[index];
14168
14169 auto& stmt = info.mUnique ? insertUniqueStmt : insertStmt;
14170
14171 QM_TRY_INSPECT(const auto& borrowedStmt, stmt.Borrow())auto tryResult1136 = (stmt.Borrow()); if ((__builtin_expect(!
!(tryResult1136.isErr()), 0))) { mozilla::dom::quota::HandleError
("stmt.Borrow()", tryResult1136.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14171, mozilla::dom::quota::Severity::Error); return tryResult1136
.propagateErr(); } const auto& borrowedStmt = tryResult1136
.inspect();
;
14172
14173 QM_TRY(MOZ_TO_RESULT({auto tryResult1137 = (ToResult(borrowedStmt->BindInt64ByName
(kStmtParamNameIndexId, info.mIndexId))); static_assert(std::
is_empty_v<typename decltype(tryResult1137)::ok_type>);
if ((__builtin_expect(!!(tryResult1137.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName(kStmtParamNameIndexId, info.mIndexId))"
, tryResult1137.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14174, mozilla::dom::quota::Severity::Error); return tryResult1137
.propagateErr(); }}
14174 borrowedStmt->BindInt64ByName(kStmtParamNameIndexId, info.mIndexId))){auto tryResult1137 = (ToResult(borrowedStmt->BindInt64ByName
(kStmtParamNameIndexId, info.mIndexId))); static_assert(std::
is_empty_v<typename decltype(tryResult1137)::ok_type>);
if ((__builtin_expect(!!(tryResult1137.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName(kStmtParamNameIndexId, info.mIndexId))"
, tryResult1137.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14174, mozilla::dom::quota::Severity::Error); return tryResult1137
.propagateErr(); }}
;
14175 QM_TRY(MOZ_TO_RESULT({auto tryResult1138 = (ToResult(info.mPosition.BindToStatement
(&*borrowedStmt, kStmtParamNameValue))); static_assert(std
::is_empty_v<typename decltype(tryResult1138)::ok_type>
); if ((__builtin_expect(!!(tryResult1138.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(info.mPosition.BindToStatement(&*borrowedStmt, kStmtParamNameValue))"
, tryResult1138.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14176, mozilla::dom::quota::Severity::Error); return tryResult1138
.propagateErr(); }}
14176 info.mPosition.BindToStatement(&*borrowedStmt, kStmtParamNameValue))){auto tryResult1138 = (ToResult(info.mPosition.BindToStatement
(&*borrowedStmt, kStmtParamNameValue))); static_assert(std
::is_empty_v<typename decltype(tryResult1138)::ok_type>
); if ((__builtin_expect(!!(tryResult1138.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(info.mPosition.BindToStatement(&*borrowedStmt, kStmtParamNameValue))"
, tryResult1138.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14176, mozilla::dom::quota::Severity::Error); return tryResult1138
.propagateErr(); }}
;
14177 QM_TRY(MOZ_TO_RESULT(info.mLocaleAwarePosition.BindToStatement({auto tryResult1139 = (ToResult(info.mLocaleAwarePosition.BindToStatement
( &*borrowedStmt, kStmtParamNameValueLocale))); static_assert
(std::is_empty_v<typename decltype(tryResult1139)::ok_type
>); if ((__builtin_expect(!!(tryResult1139.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(info.mLocaleAwarePosition.BindToStatement( &*borrowedStmt, kStmtParamNameValueLocale))"
, tryResult1139.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14178, mozilla::dom::quota::Severity::Error); return tryResult1139
.propagateErr(); }}
14178 &*borrowedStmt, kStmtParamNameValueLocale))){auto tryResult1139 = (ToResult(info.mLocaleAwarePosition.BindToStatement
( &*borrowedStmt, kStmtParamNameValueLocale))); static_assert
(std::is_empty_v<typename decltype(tryResult1139)::ok_type
>); if ((__builtin_expect(!!(tryResult1139.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(info.mLocaleAwarePosition.BindToStatement( &*borrowedStmt, kStmtParamNameValueLocale))"
, tryResult1139.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14178, mozilla::dom::quota::Severity::Error); return tryResult1139
.propagateErr(); }}
;
14179 QM_TRY(MOZ_TO_RESULT(borrowedStmt->BindInt64ByName({auto tryResult1140 = (ToResult(borrowedStmt->BindInt64ByName
( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1140)::ok_type
>); if ((__builtin_expect(!!(tryResult1140.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1140.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14180, mozilla::dom::quota::Severity::Error); return tryResult1140
.propagateErr(); }}
14180 kStmtParamNameObjectStoreId, aObjectStoreId))){auto tryResult1140 = (ToResult(borrowedStmt->BindInt64ByName
( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1140)::ok_type
>); if ((__builtin_expect(!!(tryResult1140.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1140.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14180, mozilla::dom::quota::Severity::Error); return tryResult1140
.propagateErr(); }}
;
14181 QM_TRY(MOZ_TO_RESULT(aObjectStoreKey.BindToStatement({auto tryResult1141 = (ToResult(aObjectStoreKey.BindToStatement
( &*borrowedStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1141)::ok_type
>); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement( &*borrowedStmt, kStmtParamNameObjectDataKey))"
, tryResult1141.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14182, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); }}
14182 &*borrowedStmt, kStmtParamNameObjectDataKey))){auto tryResult1141 = (ToResult(aObjectStoreKey.BindToStatement
( &*borrowedStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1141)::ok_type
>); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement( &*borrowedStmt, kStmtParamNameObjectDataKey))"
, tryResult1141.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14182, mozilla::dom::quota::Severity::Error); return tryResult1141
.propagateErr(); }}
;
14183
14184 // QM_OR_ELSE_WARN_IF is not used here since we just want to log the
14185 // collision and not spam the reports.
14186 QM_TRY(QM_OR_ELSE_LOG_VERBOSE_IF({auto tryResult1142 = (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"
, 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1142)::ok_type>); if ((__builtin_expect(!!(tryResult1142
.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\", 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14211, mozilla::dom::quota::Severity::Error); return tryResult1142
.propagateErr(); }}
14187 // Expression.{auto tryResult1142 = (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"
, 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1142)::ok_type>); if ((__builtin_expect(!!(tryResult1142
.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\", 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14211, mozilla::dom::quota::Severity::Error); return tryResult1142
.propagateErr(); }}
14188 MOZ_TO_RESULT(borrowedStmt->Execute()),{auto tryResult1142 = (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"
, 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1142)::ok_type>); if ((__builtin_expect(!!(tryResult1142
.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\", 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14211, mozilla::dom::quota::Severity::Error); return tryResult1142
.propagateErr(); }}
14189 // Predicate.{auto tryResult1142 = (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"
, 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1142)::ok_type>); if ((__builtin_expect(!!(tryResult1142
.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\", 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14211, mozilla::dom::quota::Severity::Error); return tryResult1142
.propagateErr(); }}
14190 ([&info, index, &aIndexValues](nsresult rv) {{auto tryResult1142 = (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"
, 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1142)::ok_type>); if ((__builtin_expect(!!(tryResult1142
.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\", 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14211, mozilla::dom::quota::Severity::Error); return tryResult1142
.propagateErr(); }}
14191 if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) {{auto tryResult1142 = (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"
, 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1142)::ok_type>); if ((__builtin_expect(!!(tryResult1142
.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\", 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14211, mozilla::dom::quota::Severity::Error); return tryResult1142
.propagateErr(); }}
14192 // If we're inserting multiple entries for the same unique{auto tryResult1142 = (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"
, 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1142)::ok_type>); if ((__builtin_expect(!!(tryResult1142
.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\", 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14211, mozilla::dom::quota::Severity::Error); return tryResult1142
.propagateErr(); }}
14193 // index, then we might have failed to insert due to{auto tryResult1142 = (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"
, 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1142)::ok_type>); if ((__builtin_expect(!!(tryResult1142
.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\", 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14211, mozilla::dom::quota::Severity::Error); return tryResult1142
.propagateErr(); }}
14194 // colliding with another entry for the same index in which{auto tryResult1142 = (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"
, 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1142)::ok_type>); if ((__builtin_expect(!!(tryResult1142
.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\", 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14211, mozilla::dom::quota::Severity::Error); return tryResult1142
.propagateErr(); }}
14195 // case we should ignore it.{auto tryResult1142 = (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"
, 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1142)::ok_type>); if ((__builtin_expect(!!(tryResult1142
.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\", 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14211, mozilla::dom::quota::Severity::Error); return tryResult1142
.propagateErr(); }}
14196 for (int32_t index2 = int32_t(index) - 1;{auto tryResult1142 = (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"
, 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1142)::ok_type>); if ((__builtin_expect(!!(tryResult1142
.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\", 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14211, mozilla::dom::quota::Severity::Error); return tryResult1142
.propagateErr(); }}
14197 index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId;{auto tryResult1142 = (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"
, 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1142)::ok_type>); if ((__builtin_expect(!!(tryResult1142
.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\", 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14211, mozilla::dom::quota::Severity::Error); return tryResult1142
.propagateErr(); }}
14198 --index2) {{auto tryResult1142 = (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"
, 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1142)::ok_type>); if ((__builtin_expect(!!(tryResult1142
.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\", 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14211, mozilla::dom::quota::Severity::Error); return tryResult1142
.propagateErr(); }}
14199 if (info.mPosition == aIndexValues[index2].mPosition) {{auto tryResult1142 = (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"
, 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1142)::ok_type>); if ((__builtin_expect(!!(tryResult1142
.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\", 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14211, mozilla::dom::quota::Severity::Error); return tryResult1142
.propagateErr(); }}
14200 // We found a key with the same value for the same{auto tryResult1142 = (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"
, 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1142)::ok_type>); if ((__builtin_expect(!!(tryResult1142
.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\", 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14211, mozilla::dom::quota::Severity::Error); return tryResult1142
.propagateErr(); }}
14201 // index. So we must have had a collision with a value{auto tryResult1142 = (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"
, 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1142)::ok_type>); if ((__builtin_expect(!!(tryResult1142
.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\", 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14211, mozilla::dom::quota::Severity::Error); return tryResult1142
.propagateErr(); }}
14202 // we just inserted.{auto tryResult1142 = (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"
, 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1142)::ok_type>); if ((__builtin_expect(!!(tryResult1142
.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\", 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14211, mozilla::dom::quota::Severity::Error); return tryResult1142
.propagateErr(); }}
14203 return true;{auto tryResult1142 = (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"
, 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1142)::ok_type>); if ((__builtin_expect(!!(tryResult1142
.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\", 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14211, mozilla::dom::quota::Severity::Error); return tryResult1142
.propagateErr(); }}
14204 }{auto tryResult1142 = (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"
, 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1142)::ok_type>); if ((__builtin_expect(!!(tryResult1142
.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\", 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14211, mozilla::dom::quota::Severity::Error); return tryResult1142
.propagateErr(); }}
14205 }{auto tryResult1142 = (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"
, 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1142)::ok_type>); if ((__builtin_expect(!!(tryResult1142
.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\", 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14211, mozilla::dom::quota::Severity::Error); return tryResult1142
.propagateErr(); }}
14206 }{auto tryResult1142 = (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"
, 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1142)::ok_type>); if ((__builtin_expect(!!(tryResult1142
.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\", 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14211, mozilla::dom::quota::Severity::Error); return tryResult1142
.propagateErr(); }}
14207
14208 return false;{auto tryResult1142 = (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"
, 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1142)::ok_type>); if ((__builtin_expect(!!(tryResult1142
.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\", 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14211, mozilla::dom::quota::Severity::Error); return tryResult1142
.propagateErr(); }}
14209 }),{auto tryResult1142 = (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"
, 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1142)::ok_type>); if ((__builtin_expect(!!(tryResult1142
.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\", 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14211, mozilla::dom::quota::Severity::Error); return tryResult1142
.propagateErr(); }}
14210 // Fallback.{auto tryResult1142 = (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"
, 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1142)::ok_type>); if ((__builtin_expect(!!(tryResult1142
.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\", 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14211, mozilla::dom::quota::Severity::Error); return tryResult1142
.propagateErr(); }}
14211 ErrToDefaultOk<>)){auto tryResult1142 = (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"
, 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla
::dom::quota::Severity::Error); return res; }, ErrToDefaultOk
<>)); static_assert(std::is_empty_v<typename decltype
(tryResult1142)::ok_type>); if ((__builtin_expect(!!(tryResult1142
.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\", 14211, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)"
, tryResult1142.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14211, mozilla::dom::quota::Severity::Error); return tryResult1142
.propagateErr(); }}
;
14212 }
14213
14214 return NS_OK;
14215}
14216
14217// static
14218nsresult DatabaseOperationBase::DeleteIndexDataTableRows(
14219 DatabaseConnection* aConnection, const Key& aObjectStoreKey,
14220 const nsTArray<IndexDataValue>& aIndexValues) {
14221 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"
, 14221); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 14221; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14222 aConnection->AssertIsOnConnectionThread();
14223 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"
, 14223); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aObjectStoreKey.IsUnset()"
")"); do { *((volatile int*)__null) = 14223; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14224
14225 AUTO_PROFILER_LABEL("DatabaseOperationBase::DeleteIndexDataTableRows", DOM)mozilla::AutoProfilerLabel raiiObject14225( "DatabaseOperationBase::DeleteIndexDataTableRows"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
14226
14227 const uint32_t count = aIndexValues.Length();
14228 if (!count) {
14229 return NS_OK;
14230 }
14231
14232 auto deleteUniqueStmt = DatabaseConnection::LazyStatement{
14233 *aConnection, "DELETE FROM unique_index_data WHERE index_id = :"_ns +
14234 kStmtParamNameIndexId + " AND value = :"_ns +
14235 kStmtParamNameValue + ";"_ns};
14236 auto deleteStmt = DatabaseConnection::LazyStatement{
14237 *aConnection, "DELETE FROM index_data WHERE index_id = :"_ns +
14238 kStmtParamNameIndexId + " AND value = :"_ns +
14239 kStmtParamNameValue + " AND object_data_key = :"_ns +
14240 kStmtParamNameObjectDataKey + ";"_ns};
14241
14242 for (uint32_t index = 0; index < count; index++) {
14243 const IndexDataValue& indexValue = aIndexValues[index];
14244
14245 auto& stmt = indexValue.mUnique ? deleteUniqueStmt : deleteStmt;
14246
14247 QM_TRY_INSPECT(const auto& borrowedStmt, stmt.Borrow())auto tryResult1143 = (stmt.Borrow()); if ((__builtin_expect(!
!(tryResult1143.isErr()), 0))) { mozilla::dom::quota::HandleError
("stmt.Borrow()", tryResult1143.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14247, mozilla::dom::quota::Severity::Error); return tryResult1143
.propagateErr(); } const auto& borrowedStmt = tryResult1143
.inspect();
;
14248
14249 QM_TRY(MOZ_TO_RESULT(borrowedStmt->BindInt64ByName(kStmtParamNameIndexId,{auto tryResult1144 = (ToResult(borrowedStmt->BindInt64ByName
(kStmtParamNameIndexId, indexValue.mIndexId))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName(kStmtParamNameIndexId, indexValue.mIndexId))"
, tryResult1144.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14250, mozilla::dom::quota::Severity::Error); return tryResult1144
.propagateErr(); }}
14250 indexValue.mIndexId))){auto tryResult1144 = (ToResult(borrowedStmt->BindInt64ByName
(kStmtParamNameIndexId, indexValue.mIndexId))); static_assert
(std::is_empty_v<typename decltype(tryResult1144)::ok_type
>); if ((__builtin_expect(!!(tryResult1144.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName(kStmtParamNameIndexId, indexValue.mIndexId))"
, tryResult1144.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14250, mozilla::dom::quota::Severity::Error); return tryResult1144
.propagateErr(); }}
;
14251
14252 QM_TRY(MOZ_TO_RESULT(indexValue.mPosition.BindToStatement({auto tryResult1145 = (ToResult(indexValue.mPosition.BindToStatement
( &*borrowedStmt, kStmtParamNameValue))); static_assert(std
::is_empty_v<typename decltype(tryResult1145)::ok_type>
); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(indexValue.mPosition.BindToStatement( &*borrowedStmt, kStmtParamNameValue))"
, tryResult1145.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14253, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); }}
14253 &*borrowedStmt, kStmtParamNameValue))){auto tryResult1145 = (ToResult(indexValue.mPosition.BindToStatement
( &*borrowedStmt, kStmtParamNameValue))); static_assert(std
::is_empty_v<typename decltype(tryResult1145)::ok_type>
); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(indexValue.mPosition.BindToStatement( &*borrowedStmt, kStmtParamNameValue))"
, tryResult1145.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14253, mozilla::dom::quota::Severity::Error); return tryResult1145
.propagateErr(); }}
;
14254
14255 if (!indexValue.mUnique) {
14256 QM_TRY(MOZ_TO_RESULT(aObjectStoreKey.BindToStatement({auto tryResult1146 = (ToResult(aObjectStoreKey.BindToStatement
( &*borrowedStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1146)::ok_type
>); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement( &*borrowedStmt, kStmtParamNameObjectDataKey))"
, tryResult1146.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14257, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); }}
14257 &*borrowedStmt, kStmtParamNameObjectDataKey))){auto tryResult1146 = (ToResult(aObjectStoreKey.BindToStatement
( &*borrowedStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1146)::ok_type
>); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement( &*borrowedStmt, kStmtParamNameObjectDataKey))"
, tryResult1146.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14257, mozilla::dom::quota::Severity::Error); return tryResult1146
.propagateErr(); }}
;
14258 }
14259
14260 QM_TRY(MOZ_TO_RESULT(borrowedStmt->Execute())){auto tryResult1147 = (ToResult(borrowedStmt->Execute()));
static_assert(std::is_empty_v<typename decltype(tryResult1147
)::ok_type>); if ((__builtin_expect(!!(tryResult1147.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedStmt->Execute())"
, tryResult1147.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14260, mozilla::dom::quota::Severity::Error); return tryResult1147
.propagateErr(); }}
;
14261 }
14262
14263 return NS_OK;
14264}
14265
14266// static
14267nsresult DatabaseOperationBase::DeleteObjectStoreDataTableRowsWithIndexes(
14268 DatabaseConnection* aConnection, const IndexOrObjectStoreId aObjectStoreId,
14269 const Maybe<SerializedKeyRange>& aKeyRange) {
14270 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"
, 14270); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 14270; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14271 aConnection->AssertIsOnConnectionThread();
14272 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"
, 14272); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aObjectStoreId"
")"); do { *((volatile int*)__null) = 14272; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14273
14274#ifdef DEBUG1
14275 {
14276 QM_TRY_INSPECT(const bool& hasIndexes,auto tryResult1148 = (ObjectStoreHasIndexes(*aConnection, aObjectStoreId
)); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { auto
tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota
::HandleError("ObjectStoreHasIndexes(*aConnection, aObjectStoreId)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14278, 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"
, 14278); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ")"
); do { *((volatile int*)__null) = 14278; __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 = tryResult1148
.inspect();
14277 ObjectStoreHasIndexes(*aConnection, aObjectStoreId),auto tryResult1148 = (ObjectStoreHasIndexes(*aConnection, aObjectStoreId
)); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { auto
tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota
::HandleError("ObjectStoreHasIndexes(*aConnection, aObjectStoreId)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14278, 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"
, 14278); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ")"
); do { *((volatile int*)__null) = 14278; __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 = tryResult1148
.inspect();
14278 QM_PROPAGATE, [](const auto&) { MOZ_ASSERT(false); })auto tryResult1148 = (ObjectStoreHasIndexes(*aConnection, aObjectStoreId
)); if ((__builtin_expect(!!(tryResult1148.isErr()), 0))) { auto
tryTempError = tryResult1148.unwrapErr(); mozilla::dom::quota
::HandleError("ObjectStoreHasIndexes(*aConnection, aObjectStoreId)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14278, 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"
, 14278); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ")"
); do { *((volatile int*)__null) = 14278; __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 = tryResult1148
.inspect();
;
14279 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"
, 14280); AnnotateMozCrashReason("MOZ_ASSERT" "(" "hasIndexes"
") (" "Don't use this slow method if there are no indexes!" ")"
); do { *((volatile int*)__null) = 14280; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
14280 "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"
, 14280); AnnotateMozCrashReason("MOZ_ASSERT" "(" "hasIndexes"
") (" "Don't use this slow method if there are no indexes!" ")"
); do { *((volatile int*)__null) = 14280; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
14281 }
14282#endif
14283
14284 AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject14285( "DatabaseOperationBase::DeleteObjectStoreDataTableRowsWithIndexes"
, nullptr, JS::ProfilingCategoryPair::DOM)
14285 "DatabaseOperationBase::DeleteObjectStoreDataTableRowsWithIndexes", DOM)mozilla::AutoProfilerLabel raiiObject14285( "DatabaseOperationBase::DeleteObjectStoreDataTableRowsWithIndexes"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
14286
14287 const bool singleRowOnly = aKeyRange.isSome() && aKeyRange.ref().isOnly();
14288
14289 const auto keyRangeClause =
14290 MaybeGetBindingClauseForKeyRange(aKeyRange, kColumnNameKey);
14291
14292 Key objectStoreKey;
14293 QM_TRY_INSPECT(auto tryResult1153 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1149 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14310, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; return selectStmt; } auto tryResult1151 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1151.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)"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14320, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1152.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14324, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14305, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14310, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; return selectStmt; } auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.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)\", tryResult1151.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14320, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1152.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14324, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; } return selectStmt; }())"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14328, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } const auto& selectStmt = tryResult1153
.inspect();
14294 const auto& selectStmt,auto tryResult1153 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1149 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14310, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; return selectStmt; } auto tryResult1151 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1151.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)"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14320, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1152.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14324, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14305, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14310, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; return selectStmt; } auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.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)\", tryResult1151.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14320, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1152.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14324, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; } return selectStmt; }())"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14328, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } const auto& selectStmt = tryResult1153
.inspect();
14295 ([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange,auto tryResult1153 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1149 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14310, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; return selectStmt; } auto tryResult1151 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1151.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)"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14320, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1152.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14324, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14305, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14310, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; return selectStmt; } auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.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)\", tryResult1151.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14320, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1152.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14324, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; } return selectStmt; }())"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14328, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } const auto& selectStmt = tryResult1153
.inspect();
14296 &keyRangeClause]()auto tryResult1153 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1149 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14310, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; return selectStmt; } auto tryResult1151 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1151.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)"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14320, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1152.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14324, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14305, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14310, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; return selectStmt; } auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.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)\", tryResult1151.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14320, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1152.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14324, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; } return selectStmt; }())"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14328, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } const auto& selectStmt = tryResult1153
.inspect();
14297 -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> {auto tryResult1153 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1149 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14310, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; return selectStmt; } auto tryResult1151 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1151.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)"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14320, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1152.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14324, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14305, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14310, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; return selectStmt; } auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.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)\", tryResult1151.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14320, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1152.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14324, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; } return selectStmt; }())"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14328, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } const auto& selectStmt = tryResult1153
.inspect();
14298 if (singleRowOnly) {auto tryResult1153 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1149 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14310, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; return selectStmt; } auto tryResult1151 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1151.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)"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14320, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1152.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14324, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14305, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14310, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; return selectStmt; } auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.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)\", tryResult1151.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14320, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1152.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14324, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; } return selectStmt; }())"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14328, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } const auto& selectStmt = tryResult1153
.inspect();
14299 QM_TRY_UNWRAP(auto selectStmt,auto tryResult1153 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1149 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14310, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; return selectStmt; } auto tryResult1151 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1151.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)"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14320, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1152.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14324, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14305, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14310, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; return selectStmt; } auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.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)\", tryResult1151.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14320, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1152.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14324, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; } return selectStmt; }())"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14328, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } const auto& selectStmt = tryResult1153
.inspect();
14300 aConnection->BorrowCachedStatement(auto tryResult1153 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1149 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14310, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; return selectStmt; } auto tryResult1151 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1151.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)"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14320, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1152.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14324, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14305, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14310, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; return selectStmt; } auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.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)\", tryResult1151.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14320, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1152.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14324, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; } return selectStmt; }())"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14328, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } const auto& selectStmt = tryResult1153
.inspect();
14301 "SELECT index_data_values "auto tryResult1153 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1149 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14310, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; return selectStmt; } auto tryResult1151 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1151.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)"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14320, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1152.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14324, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14305, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14310, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; return selectStmt; } auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.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)\", tryResult1151.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14320, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1152.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14324, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; } return selectStmt; }())"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14328, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } const auto& selectStmt = tryResult1153
.inspect();
14302 "FROM object_data "auto tryResult1153 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1149 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14310, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; return selectStmt; } auto tryResult1151 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1151.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)"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14320, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1152.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14324, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14305, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14310, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; return selectStmt; } auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.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)\", tryResult1151.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14320, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1152.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14324, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; } return selectStmt; }())"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14328, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } const auto& selectStmt = tryResult1153
.inspect();
14303 "WHERE object_store_id = :"_ns +auto tryResult1153 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1149 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14310, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; return selectStmt; } auto tryResult1151 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1151.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)"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14320, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1152.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14324, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14305, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14310, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; return selectStmt; } auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.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)\", tryResult1151.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14320, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1152.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14324, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; } return selectStmt; }())"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14328, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } const auto& selectStmt = tryResult1153
.inspect();
14304 kStmtParamNameObjectStoreId + " AND key = :"_ns +auto tryResult1153 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1149 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14310, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; return selectStmt; } auto tryResult1151 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1151.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)"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14320, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1152.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14324, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14305, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14310, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; return selectStmt; } auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.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)\", tryResult1151.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14320, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1152.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14324, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; } return selectStmt; }())"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14328, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } const auto& selectStmt = tryResult1153
.inspect();
14305 kStmtParamNameKey + ";"_ns));auto tryResult1153 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1149 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14310, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; return selectStmt; } auto tryResult1151 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1151.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)"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14320, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1152.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14324, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14305, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14310, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; return selectStmt; } auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.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)\", tryResult1151.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14320, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1152.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14324, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; } return selectStmt; }())"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14328, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } const auto& selectStmt = tryResult1153
.inspect();
14306
14307 objectStoreKey = aKeyRange.ref().lower();auto tryResult1153 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1149 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14310, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; return selectStmt; } auto tryResult1151 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1151.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)"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14320, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1152.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14324, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14305, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14310, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; return selectStmt; } auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.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)\", tryResult1151.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14320, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1152.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14324, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; } return selectStmt; }())"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14328, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } const auto& selectStmt = tryResult1153
.inspect();
14308
14309 QM_TRY(MOZ_TO_RESULT(auto tryResult1153 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1149 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14310, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; return selectStmt; } auto tryResult1151 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1151.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)"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14320, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1152.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14324, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14305, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14310, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; return selectStmt; } auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.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)\", tryResult1151.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14320, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1152.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14324, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; } return selectStmt; }())"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14328, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } const auto& selectStmt = tryResult1153
.inspect();
14310 objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey)));auto tryResult1153 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1149 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14310, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; return selectStmt; } auto tryResult1151 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1151.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)"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14320, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1152.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14324, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14305, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14310, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; return selectStmt; } auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.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)\", tryResult1151.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14320, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1152.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14324, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; } return selectStmt; }())"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14328, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } const auto& selectStmt = tryResult1153
.inspect();
14311
14312 return selectStmt;auto tryResult1153 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1149 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14310, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; return selectStmt; } auto tryResult1151 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1151.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)"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14320, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1152.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14324, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14305, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14310, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; return selectStmt; } auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.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)\", tryResult1151.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14320, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1152.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14324, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; } return selectStmt; }())"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14328, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } const auto& selectStmt = tryResult1153
.inspect();
14313 }auto tryResult1153 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1149 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14310, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; return selectStmt; } auto tryResult1151 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1151.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)"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14320, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1152.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14324, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14305, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14310, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; return selectStmt; } auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.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)\", tryResult1151.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14320, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1152.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14324, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; } return selectStmt; }())"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14328, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } const auto& selectStmt = tryResult1153
.inspect();
14314
14315 QM_TRY_UNWRAP(auto tryResult1153 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1149 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14310, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; return selectStmt; } auto tryResult1151 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1151.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)"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14320, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1152.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14324, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14305, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14310, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; return selectStmt; } auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.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)\", tryResult1151.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14320, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1152.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14324, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; } return selectStmt; }())"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14328, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } const auto& selectStmt = tryResult1153
.inspect();
14316 auto selectStmt,auto tryResult1153 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1149 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14310, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; return selectStmt; } auto tryResult1151 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1151.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)"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14320, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1152.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14324, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14305, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14310, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; return selectStmt; } auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.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)\", tryResult1151.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14320, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1152.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14324, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; } return selectStmt; }())"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14328, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } const auto& selectStmt = tryResult1153
.inspect();
14317 aConnection->BorrowCachedStatement(auto tryResult1153 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1149 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14310, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; return selectStmt; } auto tryResult1151 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1151.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)"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14320, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1152.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14324, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14305, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14310, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; return selectStmt; } auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.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)\", tryResult1151.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14320, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1152.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14324, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; } return selectStmt; }())"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14328, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } const auto& selectStmt = tryResult1153
.inspect();
14318 "SELECT index_data_values, "_ns + kColumnNameKey +auto tryResult1153 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1149 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14310, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; return selectStmt; } auto tryResult1151 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1151.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)"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14320, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1152.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14324, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14305, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14310, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; return selectStmt; } auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.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)\", tryResult1151.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14320, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1152.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14324, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; } return selectStmt; }())"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14328, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } const auto& selectStmt = tryResult1153
.inspect();
14319 " FROM object_data WHERE object_store_id = :"_ns +auto tryResult1153 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1149 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14310, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; return selectStmt; } auto tryResult1151 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1151.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)"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14320, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1152.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14324, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14305, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14310, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; return selectStmt; } auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.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)\", tryResult1151.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14320, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1152.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14324, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; } return selectStmt; }())"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14328, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } const auto& selectStmt = tryResult1153
.inspect();
14320 kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns));auto tryResult1153 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1149 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14310, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; return selectStmt; } auto tryResult1151 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1151.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)"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14320, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1152.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14324, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14305, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14310, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; return selectStmt; } auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.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)\", tryResult1151.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14320, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1152.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14324, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; } return selectStmt; }())"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14328, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } const auto& selectStmt = tryResult1153
.inspect();
14321
14322 if (aKeyRange.isSome()) {auto tryResult1153 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1149 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14310, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; return selectStmt; } auto tryResult1151 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1151.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)"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14320, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1152.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14324, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14305, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14310, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; return selectStmt; } auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.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)\", tryResult1151.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14320, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1152.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14324, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; } return selectStmt; }())"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14328, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } const auto& selectStmt = tryResult1153
.inspect();
14323 QM_TRY(MOZ_TO_RESULT(auto tryResult1153 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1149 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14310, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; return selectStmt; } auto tryResult1151 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1151.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)"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14320, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1152.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14324, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14305, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14310, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; return selectStmt; } auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.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)\", tryResult1151.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14320, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1152.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14324, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; } return selectStmt; }())"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14328, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } const auto& selectStmt = tryResult1153
.inspect();
14324 BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt)));auto tryResult1153 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1149 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14310, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; return selectStmt; } auto tryResult1151 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1151.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)"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14320, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1152.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14324, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14305, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14310, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; return selectStmt; } auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.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)\", tryResult1151.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14320, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1152.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14324, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; } return selectStmt; }())"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14328, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } const auto& selectStmt = tryResult1153
.inspect();
14325 }auto tryResult1153 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1149 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14310, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; return selectStmt; } auto tryResult1151 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1151.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)"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14320, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1152.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14324, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14305, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14310, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; return selectStmt; } auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.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)\", tryResult1151.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14320, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1152.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14324, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; } return selectStmt; }())"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14328, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } const auto& selectStmt = tryResult1153
.inspect();
14326
14327 return selectStmt;auto tryResult1153 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1149 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14310, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; return selectStmt; } auto tryResult1151 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1151.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)"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14320, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1152.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14324, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14305, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14310, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; return selectStmt; } auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.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)\", tryResult1151.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14320, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1152.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14324, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; } return selectStmt; }())"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14328, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } const auto& selectStmt = tryResult1153
.inspect();
14328 }()))auto tryResult1153 = (([singleRowOnly, &aConnection, &
objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result
<CachingDatabaseConnection::BorrowedStatement, nsresult>
{ if (singleRowOnly) { auto tryResult1149 = (aConnection->
BorrowCachedStatement( "SELECT index_data_values " "FROM object_data "
"WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect
(!!(tryResult1149.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)"
, tryResult1149.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14305, mozilla::dom::quota::Severity::Error); return tryResult1149
.propagateErr(); } auto selectStmt = tryResult1149.unwrap();;
objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150
= (ToResult(objectStoreKey.BindToStatement(&*selectStmt,
kStmtParamNameKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1150)::ok_type>); if ((__builtin_expect
(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))"
, tryResult1150.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14310, mozilla::dom::quota::Severity::Error); return tryResult1150
.propagateErr(); }}; return selectStmt; } auto tryResult1151 =
(aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns
+ kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if
((__builtin_expect(!!(tryResult1151.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)"
, tryResult1151.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14320, mozilla::dom::quota::Severity::Error); return tryResult1151
.propagateErr(); } auto selectStmt = tryResult1151.unwrap();;
if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement
(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect
(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))"
, tryResult1152.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14324, mozilla::dom::quota::Severity::Error); return tryResult1152
.propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect
(!!(tryResult1153.isErr()), 0))) { mozilla::dom::quota::HandleError
("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1149 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1149.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)\", tryResult1149.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14305, mozilla::dom::quota::Severity::Error); return tryResult1149.propagateErr(); } auto selectStmt = tryResult1149.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1150 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect(!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1150.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14310, mozilla::dom::quota::Severity::Error); return tryResult1150.propagateErr(); }}; return selectStmt; } auto tryResult1151 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1151.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)\", tryResult1151.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14320, mozilla::dom::quota::Severity::Error); return tryResult1151.propagateErr(); } auto selectStmt = tryResult1151.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1152 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1152)::ok_type>); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1152.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14324, mozilla::dom::quota::Severity::Error); return tryResult1152.propagateErr(); }}; } return selectStmt; }())"
, tryResult1153.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14328, mozilla::dom::quota::Severity::Error); return tryResult1153
.propagateErr(); } const auto& selectStmt = tryResult1153
.inspect();
;
14329
14330 QM_TRY(MOZ_TO_RESULT(selectStmt->BindInt64ByName(kStmtParamNameObjectStoreId,{auto tryResult1154 = (ToResult(selectStmt->BindInt64ByName
(kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1154)::ok_type
>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt->BindInt64ByName(kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1154.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14331, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}
14331 aObjectStoreId))){auto tryResult1154 = (ToResult(selectStmt->BindInt64ByName
(kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1154)::ok_type
>); if ((__builtin_expect(!!(tryResult1154.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt->BindInt64ByName(kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1154.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14331, mozilla::dom::quota::Severity::Error); return tryResult1154
.propagateErr(); }}
;
14332
14333 DebugOnly<uint32_t> resultCountDEBUG = 0;
14334
14335 QM_TRY(CollectWhileHasResult({auto tryResult1158 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1155 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1155)::ok_type>); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1155.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14342, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1156 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect
(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1156.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14348, mozilla::dom::quota::Severity::Error); return tryResult1156
.propagateErr(); }}; {auto tryResult1157 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1157)::ok_type>
); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1157.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14350, mozilla::dom::quota::Severity::Error); return tryResult1157
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1158)::ok_type
>); if ((__builtin_expect(!!(tryResult1158.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1155 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1155.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14342, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1156 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1156.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14348, mozilla::dom::quota::Severity::Error); return tryResult1156.propagateErr(); }}; {auto tryResult1157 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1157.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14350, mozilla::dom::quota::Severity::Error); return tryResult1157.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1158.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14355, mozilla::dom::quota::Severity::Error); return tryResult1158
.propagateErr(); }}
14336 *selectStmt,{auto tryResult1158 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1155 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1155)::ok_type>); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1155.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14342, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1156 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect
(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1156.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14348, mozilla::dom::quota::Severity::Error); return tryResult1156
.propagateErr(); }}; {auto tryResult1157 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1157)::ok_type>
); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1157.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14350, mozilla::dom::quota::Severity::Error); return tryResult1157
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1158)::ok_type
>); if ((__builtin_expect(!!(tryResult1158.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1155 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1155.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14342, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1156 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1156.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14348, mozilla::dom::quota::Severity::Error); return tryResult1156.propagateErr(); }}; {auto tryResult1157 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1157.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14350, mozilla::dom::quota::Severity::Error); return tryResult1157.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1158.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14355, mozilla::dom::quota::Severity::Error); return tryResult1158
.propagateErr(); }}
14337 [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG,{auto tryResult1158 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1155 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1155)::ok_type>); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1155.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14342, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1156 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect
(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1156.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14348, mozilla::dom::quota::Severity::Error); return tryResult1156
.propagateErr(); }}; {auto tryResult1157 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1157)::ok_type>
); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1157.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14350, mozilla::dom::quota::Severity::Error); return tryResult1157
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1158)::ok_type
>); if ((__builtin_expect(!!(tryResult1158.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1155 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1155.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14342, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1156 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1156.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14348, mozilla::dom::quota::Severity::Error); return tryResult1156.propagateErr(); }}; {auto tryResult1157 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1157.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14350, mozilla::dom::quota::Severity::Error); return tryResult1157.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1158.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14355, mozilla::dom::quota::Severity::Error); return tryResult1158
.propagateErr(); }}
14338 indexValues = IndexDataValuesAutoArray{}]({auto tryResult1158 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1155 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1155)::ok_type>); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1155.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14342, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1156 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect
(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1156.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14348, mozilla::dom::quota::Severity::Error); return tryResult1156
.propagateErr(); }}; {auto tryResult1157 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1157)::ok_type>
); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1157.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14350, mozilla::dom::quota::Severity::Error); return tryResult1157
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1158)::ok_type
>); if ((__builtin_expect(!!(tryResult1158.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1155 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1155.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14342, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1156 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1156.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14348, mozilla::dom::quota::Severity::Error); return tryResult1156.propagateErr(); }}; {auto tryResult1157 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1157.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14350, mozilla::dom::quota::Severity::Error); return tryResult1157.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1158.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14355, mozilla::dom::quota::Severity::Error); return tryResult1158
.propagateErr(); }}
14339 auto& selectStmt) mutable -> Result<Ok, nsresult> {{auto tryResult1158 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1155 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1155)::ok_type>); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1155.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14342, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1156 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect
(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1156.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14348, mozilla::dom::quota::Severity::Error); return tryResult1156
.propagateErr(); }}; {auto tryResult1157 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1157)::ok_type>
); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1157.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14350, mozilla::dom::quota::Severity::Error); return tryResult1157
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1158)::ok_type
>); if ((__builtin_expect(!!(tryResult1158.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1155 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1155.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14342, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1156 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1156.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14348, mozilla::dom::quota::Severity::Error); return tryResult1156.propagateErr(); }}; {auto tryResult1157 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1157.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14350, mozilla::dom::quota::Severity::Error); return tryResult1157.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1158.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14355, mozilla::dom::quota::Severity::Error); return tryResult1158
.propagateErr(); }}
14340 if (!singleRowOnly) {{auto tryResult1158 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1155 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1155)::ok_type>); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1155.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14342, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1156 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect
(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1156.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14348, mozilla::dom::quota::Severity::Error); return tryResult1156
.propagateErr(); }}; {auto tryResult1157 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1157)::ok_type>
); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1157.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14350, mozilla::dom::quota::Severity::Error); return tryResult1157
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1158)::ok_type
>); if ((__builtin_expect(!!(tryResult1158.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1155 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1155.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14342, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1156 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1156.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14348, mozilla::dom::quota::Severity::Error); return tryResult1156.propagateErr(); }}; {auto tryResult1157 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1157.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14350, mozilla::dom::quota::Severity::Error); return tryResult1157.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1158.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14355, mozilla::dom::quota::Severity::Error); return tryResult1158
.propagateErr(); }}
14341 QM_TRY({auto tryResult1158 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1155 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1155)::ok_type>); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1155.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14342, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1156 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect
(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1156.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14348, mozilla::dom::quota::Severity::Error); return tryResult1156
.propagateErr(); }}; {auto tryResult1157 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1157)::ok_type>
); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1157.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14350, mozilla::dom::quota::Severity::Error); return tryResult1157
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1158)::ok_type
>); if ((__builtin_expect(!!(tryResult1158.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1155 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1155.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14342, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1156 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1156.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14348, mozilla::dom::quota::Severity::Error); return tryResult1156.propagateErr(); }}; {auto tryResult1157 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1157.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14350, mozilla::dom::quota::Severity::Error); return tryResult1157.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1158.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14355, mozilla::dom::quota::Severity::Error); return tryResult1158
.propagateErr(); }}
14342 MOZ_TO_RESULT(objectStoreKey.SetFromStatement(&selectStmt, 1)));{auto tryResult1158 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1155 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1155)::ok_type>); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1155.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14342, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1156 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect
(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1156.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14348, mozilla::dom::quota::Severity::Error); return tryResult1156
.propagateErr(); }}; {auto tryResult1157 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1157)::ok_type>
); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1157.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14350, mozilla::dom::quota::Severity::Error); return tryResult1157
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1158)::ok_type
>); if ((__builtin_expect(!!(tryResult1158.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1155 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1155.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14342, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1156 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1156.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14348, mozilla::dom::quota::Severity::Error); return tryResult1156.propagateErr(); }}; {auto tryResult1157 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1157.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14350, mozilla::dom::quota::Severity::Error); return tryResult1157.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1158.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14355, mozilla::dom::quota::Severity::Error); return tryResult1158
.propagateErr(); }}
14343
14344 indexValues.ClearAndRetainStorage();{auto tryResult1158 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1155 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1155)::ok_type>); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1155.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14342, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1156 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect
(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1156.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14348, mozilla::dom::quota::Severity::Error); return tryResult1156
.propagateErr(); }}; {auto tryResult1157 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1157)::ok_type>
); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1157.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14350, mozilla::dom::quota::Severity::Error); return tryResult1157
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1158)::ok_type
>); if ((__builtin_expect(!!(tryResult1158.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1155 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1155.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14342, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1156 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1156.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14348, mozilla::dom::quota::Severity::Error); return tryResult1156.propagateErr(); }}; {auto tryResult1157 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1157.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14350, mozilla::dom::quota::Severity::Error); return tryResult1157.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1158.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14355, mozilla::dom::quota::Severity::Error); return tryResult1158
.propagateErr(); }}
14345 }{auto tryResult1158 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1155 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1155)::ok_type>); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1155.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14342, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1156 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect
(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1156.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14348, mozilla::dom::quota::Severity::Error); return tryResult1156
.propagateErr(); }}; {auto tryResult1157 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1157)::ok_type>
); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1157.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14350, mozilla::dom::quota::Severity::Error); return tryResult1157
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1158)::ok_type
>); if ((__builtin_expect(!!(tryResult1158.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1155 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1155.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14342, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1156 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1156.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14348, mozilla::dom::quota::Severity::Error); return tryResult1156.propagateErr(); }}; {auto tryResult1157 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1157.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14350, mozilla::dom::quota::Severity::Error); return tryResult1157.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1158.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14355, mozilla::dom::quota::Severity::Error); return tryResult1158
.propagateErr(); }}
14346
14347 QM_TRY(MOZ_TO_RESULT({auto tryResult1158 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1155 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1155)::ok_type>); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1155.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14342, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1156 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect
(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1156.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14348, mozilla::dom::quota::Severity::Error); return tryResult1156
.propagateErr(); }}; {auto tryResult1157 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1157)::ok_type>
); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1157.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14350, mozilla::dom::quota::Severity::Error); return tryResult1157
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1158)::ok_type
>); if ((__builtin_expect(!!(tryResult1158.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1155 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1155.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14342, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1156 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1156.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14348, mozilla::dom::quota::Severity::Error); return tryResult1156.propagateErr(); }}; {auto tryResult1157 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1157.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14350, mozilla::dom::quota::Severity::Error); return tryResult1157.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1158.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14355, mozilla::dom::quota::Severity::Error); return tryResult1158
.propagateErr(); }}
14348 ReadCompressedIndexDataValues(selectStmt, 0, indexValues)));{auto tryResult1158 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1155 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1155)::ok_type>); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1155.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14342, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1156 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect
(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1156.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14348, mozilla::dom::quota::Severity::Error); return tryResult1156
.propagateErr(); }}; {auto tryResult1157 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1157)::ok_type>
); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1157.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14350, mozilla::dom::quota::Severity::Error); return tryResult1157
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1158)::ok_type
>); if ((__builtin_expect(!!(tryResult1158.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1155 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1155.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14342, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1156 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1156.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14348, mozilla::dom::quota::Severity::Error); return tryResult1156.propagateErr(); }}; {auto tryResult1157 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1157.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14350, mozilla::dom::quota::Severity::Error); return tryResult1157.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1158.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14355, mozilla::dom::quota::Severity::Error); return tryResult1158
.propagateErr(); }}
14349 QM_TRY(MOZ_TO_RESULT(DeleteIndexDataTableRows({auto tryResult1158 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1155 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1155)::ok_type>); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1155.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14342, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1156 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect
(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1156.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14348, mozilla::dom::quota::Severity::Error); return tryResult1156
.propagateErr(); }}; {auto tryResult1157 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1157)::ok_type>
); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1157.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14350, mozilla::dom::quota::Severity::Error); return tryResult1157
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1158)::ok_type
>); if ((__builtin_expect(!!(tryResult1158.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1155 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1155.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14342, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1156 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1156.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14348, mozilla::dom::quota::Severity::Error); return tryResult1156.propagateErr(); }}; {auto tryResult1157 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1157.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14350, mozilla::dom::quota::Severity::Error); return tryResult1157.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1158.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14355, mozilla::dom::quota::Severity::Error); return tryResult1158
.propagateErr(); }}
14350 aConnection, objectStoreKey, indexValues)));{auto tryResult1158 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1155 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1155)::ok_type>); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1155.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14342, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1156 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect
(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1156.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14348, mozilla::dom::quota::Severity::Error); return tryResult1156
.propagateErr(); }}; {auto tryResult1157 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1157)::ok_type>
); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1157.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14350, mozilla::dom::quota::Severity::Error); return tryResult1157
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1158)::ok_type
>); if ((__builtin_expect(!!(tryResult1158.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1155 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1155.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14342, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1156 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1156.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14348, mozilla::dom::quota::Severity::Error); return tryResult1156.propagateErr(); }}; {auto tryResult1157 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1157.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14350, mozilla::dom::quota::Severity::Error); return tryResult1157.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1158.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14355, mozilla::dom::quota::Severity::Error); return tryResult1158
.propagateErr(); }}
14351
14352 resultCountDEBUG++;{auto tryResult1158 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1155 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1155)::ok_type>); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1155.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14342, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1156 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect
(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1156.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14348, mozilla::dom::quota::Severity::Error); return tryResult1156
.propagateErr(); }}; {auto tryResult1157 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1157)::ok_type>
); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1157.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14350, mozilla::dom::quota::Severity::Error); return tryResult1157
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1158)::ok_type
>); if ((__builtin_expect(!!(tryResult1158.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1155 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1155.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14342, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1156 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1156.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14348, mozilla::dom::quota::Severity::Error); return tryResult1156.propagateErr(); }}; {auto tryResult1157 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1157.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14350, mozilla::dom::quota::Severity::Error); return tryResult1157.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1158.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14355, mozilla::dom::quota::Severity::Error); return tryResult1158
.propagateErr(); }}
14353
14354 return Ok{};{auto tryResult1158 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1155 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1155)::ok_type>); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1155.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14342, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1156 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect
(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1156.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14348, mozilla::dom::quota::Severity::Error); return tryResult1156
.propagateErr(); }}; {auto tryResult1157 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1157)::ok_type>
); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1157.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14350, mozilla::dom::quota::Severity::Error); return tryResult1157
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1158)::ok_type
>); if ((__builtin_expect(!!(tryResult1158.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1155 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1155.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14342, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1156 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1156.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14348, mozilla::dom::quota::Severity::Error); return tryResult1156.propagateErr(); }}; {auto tryResult1157 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1157.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14350, mozilla::dom::quota::Severity::Error); return tryResult1157.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1158.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14355, mozilla::dom::quota::Severity::Error); return tryResult1158
.propagateErr(); }}
14355 })){auto tryResult1158 = (CollectWhileHasResult( *selectStmt, [singleRowOnly
, &objectStoreKey, &aConnection, &resultCountDEBUG
, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt
) mutable -> Result<Ok, nsresult> { if (!singleRowOnly
) { {auto tryResult1155 = (ToResult(objectStoreKey.SetFromStatement
(&selectStmt, 1))); static_assert(std::is_empty_v<typename
decltype(tryResult1155)::ok_type>); if ((__builtin_expect
(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))"
, tryResult1155.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14342, mozilla::dom::quota::Severity::Error); return tryResult1155
.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {
auto tryResult1156 = (ToResult(ReadCompressedIndexDataValues(
selectStmt, 0, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect
(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))"
, tryResult1156.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14348, mozilla::dom::quota::Severity::Error); return tryResult1156
.propagateErr(); }}; {auto tryResult1157 = (ToResult(DeleteIndexDataTableRows
( aConnection, objectStoreKey, indexValues))); static_assert(
std::is_empty_v<typename decltype(tryResult1157)::ok_type>
); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))"
, tryResult1157.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14350, mozilla::dom::quota::Severity::Error); return tryResult1157
.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1158)::ok_type
>); if ((__builtin_expect(!!(tryResult1158.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1155 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1155)::ok_type>); if ((__builtin_expect(!!(tryResult1155.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1155.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14342, mozilla::dom::quota::Severity::Error); return tryResult1155.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1156 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1156)::ok_type>); if ((__builtin_expect(!!(tryResult1156.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1156.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14348, mozilla::dom::quota::Severity::Error); return tryResult1156.propagateErr(); }}; {auto tryResult1157 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1157)::ok_type>); if ((__builtin_expect(!!(tryResult1157.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1157.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14350, mozilla::dom::quota::Severity::Error); return tryResult1157.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })"
, tryResult1158.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14355, mozilla::dom::quota::Severity::Error); return tryResult1158
.propagateErr(); }}
;
14356
14357 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"
, 14357); AnnotateMozCrashReason("MOZ_ASSERT" "(" "resultCountDEBUG <= 1"
")"); do { *((volatile int*)__null) = 14357; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
14358
14359 QM_TRY_UNWRAP(auto tryResult1159 = (aConnection->BorrowCachedStatement( "DELETE FROM object_data "_ns
+ "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1159
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"DELETE FROM object_data \"_ns + \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1159.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14363, mozilla::dom::quota::Severity::Error); return tryResult1159
.propagateErr(); } auto deleteManyStmt = tryResult1159.unwrap
();
14360 auto deleteManyStmt,auto tryResult1159 = (aConnection->BorrowCachedStatement( "DELETE FROM object_data "_ns
+ "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1159
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"DELETE FROM object_data \"_ns + \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1159.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14363, mozilla::dom::quota::Severity::Error); return tryResult1159
.propagateErr(); } auto deleteManyStmt = tryResult1159.unwrap
();
14361 aConnection->BorrowCachedStatement(auto tryResult1159 = (aConnection->BorrowCachedStatement( "DELETE FROM object_data "_ns
+ "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1159
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"DELETE FROM object_data \"_ns + \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1159.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14363, mozilla::dom::quota::Severity::Error); return tryResult1159
.propagateErr(); } auto deleteManyStmt = tryResult1159.unwrap
();
14362 "DELETE FROM object_data "_ns + "WHERE object_store_id = :"_ns +auto tryResult1159 = (aConnection->BorrowCachedStatement( "DELETE FROM object_data "_ns
+ "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1159
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"DELETE FROM object_data \"_ns + \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1159.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14363, mozilla::dom::quota::Severity::Error); return tryResult1159
.propagateErr(); } auto deleteManyStmt = tryResult1159.unwrap
();
14363 kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns))auto tryResult1159 = (aConnection->BorrowCachedStatement( "DELETE FROM object_data "_ns
+ "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId
+ keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1159
.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"DELETE FROM object_data \"_ns + \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)"
, tryResult1159.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14363, mozilla::dom::quota::Severity::Error); return tryResult1159
.propagateErr(); } auto deleteManyStmt = tryResult1159.unwrap
();
;
14364
14365 QM_TRY(MOZ_TO_RESULT(deleteManyStmt->BindInt64ByName({auto tryResult1160 = (ToResult(deleteManyStmt->BindInt64ByName
( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1160)::ok_type
>); if ((__builtin_expect(!!(tryResult1160.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(deleteManyStmt->BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1160.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14366, mozilla::dom::quota::Severity::Error); return tryResult1160
.propagateErr(); }}
14366 kStmtParamNameObjectStoreId, aObjectStoreId))){auto tryResult1160 = (ToResult(deleteManyStmt->BindInt64ByName
( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1160)::ok_type
>); if ((__builtin_expect(!!(tryResult1160.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(deleteManyStmt->BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1160.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14366, mozilla::dom::quota::Severity::Error); return tryResult1160
.propagateErr(); }}
;
14367
14368 if (aKeyRange.isSome()) {
14369 QM_TRY(MOZ_TO_RESULT({auto tryResult1161 = (ToResult(BindKeyRangeToStatement(aKeyRange
.ref(), &*deleteManyStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1161)::ok_type>); if ((__builtin_expect
(!!(tryResult1161.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*deleteManyStmt))"
, tryResult1161.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14370, mozilla::dom::quota::Severity::Error); return tryResult1161
.propagateErr(); }}
14370 BindKeyRangeToStatement(aKeyRange.ref(), &*deleteManyStmt))){auto tryResult1161 = (ToResult(BindKeyRangeToStatement(aKeyRange
.ref(), &*deleteManyStmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1161)::ok_type>); if ((__builtin_expect
(!!(tryResult1161.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*deleteManyStmt))"
, tryResult1161.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14370, mozilla::dom::quota::Severity::Error); return tryResult1161
.propagateErr(); }}
;
14371 }
14372
14373 QM_TRY(MOZ_TO_RESULT(deleteManyStmt->Execute())){auto tryResult1162 = (ToResult(deleteManyStmt->Execute())
); static_assert(std::is_empty_v<typename decltype(tryResult1162
)::ok_type>); if ((__builtin_expect(!!(tryResult1162.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(deleteManyStmt->Execute())"
, tryResult1162.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14373, mozilla::dom::quota::Severity::Error); return tryResult1162
.propagateErr(); }}
;
14374
14375 return NS_OK;
14376}
14377
14378// static
14379nsresult DatabaseOperationBase::UpdateIndexValues(
14380 DatabaseConnection* aConnection, const IndexOrObjectStoreId aObjectStoreId,
14381 const Key& aObjectStoreKey, const nsTArray<IndexDataValue>& aIndexValues) {
14382 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"
, 14382); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 14382; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14383 aConnection->AssertIsOnConnectionThread();
14384 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"
, 14384); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aObjectStoreKey.IsUnset()"
")"); do { *((volatile int*)__null) = 14384; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14385
14386 AUTO_PROFILER_LABEL("DatabaseOperationBase::UpdateIndexValues", DOM)mozilla::AutoProfilerLabel raiiObject14386( "DatabaseOperationBase::UpdateIndexValues"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
14387
14388 QM_TRY_UNWRAP((auto [indexDataValues, indexDataValuesLength]),auto tryResult1163 = (MakeCompressedIndexDataValues(aIndexValues
)); if ((__builtin_expect(!!(tryResult1163.isErr()), 0))) { mozilla
::dom::quota::HandleError("MakeCompressedIndexDataValues(aIndexValues)"
, tryResult1163.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14389, mozilla::dom::quota::Severity::Error); return tryResult1163
.propagateErr(); } auto [indexDataValues, indexDataValuesLength
] = tryResult1163.unwrap();
14389 MakeCompressedIndexDataValues(aIndexValues))auto tryResult1163 = (MakeCompressedIndexDataValues(aIndexValues
)); if ((__builtin_expect(!!(tryResult1163.isErr()), 0))) { mozilla
::dom::quota::HandleError("MakeCompressedIndexDataValues(aIndexValues)"
, tryResult1163.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14389, mozilla::dom::quota::Severity::Error); return tryResult1163
.propagateErr(); } auto [indexDataValues, indexDataValuesLength
] = tryResult1163.unwrap();
;
14390
14391 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"
, 14391); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!indexDataValuesLength == !(indexDataValues.get())"
")"); do { *((volatile int*)__null) = 14391; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14392
14393 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1167 = (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 tryResult1164
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1164
)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14407, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1165
)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14410, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1166)::ok_type
>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1166.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14413, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect
(!!(tryResult1167.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 tryResult1164 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14407, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1165.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14410, mozilla::dom::quota::Severity::Error); return tryResult1165.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1166.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14413, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; return Ok{}; }))"
, tryResult1167.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14416, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}
14394 "UPDATE object_data SET index_data_values = :"_ns +{auto tryResult1167 = (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 tryResult1164
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1164
)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14407, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1165
)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14410, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1166)::ok_type
>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1166.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14413, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect
(!!(tryResult1167.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 tryResult1164 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14407, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1165.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14410, mozilla::dom::quota::Severity::Error); return tryResult1165.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1166.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14413, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; return Ok{}; }))"
, tryResult1167.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14416, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}
14395 kStmtParamNameIndexDataValues + " WHERE object_store_id = :"_ns +{auto tryResult1167 = (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 tryResult1164
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1164
)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14407, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1165
)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14410, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1166)::ok_type
>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1166.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14413, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect
(!!(tryResult1167.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 tryResult1164 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14407, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1165.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14410, mozilla::dom::quota::Severity::Error); return tryResult1165.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1166.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14413, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; return Ok{}; }))"
, tryResult1167.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14416, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}
14396 kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey +{auto tryResult1167 = (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 tryResult1164
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1164
)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14407, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1165
)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14410, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1166)::ok_type
>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1166.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14413, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect
(!!(tryResult1167.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 tryResult1164 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14407, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1165.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14410, mozilla::dom::quota::Severity::Error); return tryResult1165.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1166.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14413, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; return Ok{}; }))"
, tryResult1167.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14416, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}
14397 ";"_ns,{auto tryResult1167 = (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 tryResult1164
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1164
)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14407, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1165
)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14410, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1166)::ok_type
>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1166.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14413, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect
(!!(tryResult1167.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 tryResult1164 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14407, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1165.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14410, mozilla::dom::quota::Severity::Error); return tryResult1165.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1166.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14413, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; return Ok{}; }))"
, tryResult1167.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14416, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}
14398 [&indexDataValues = indexDataValues,{auto tryResult1167 = (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 tryResult1164
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1164
)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14407, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1165
)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14410, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1166)::ok_type
>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1166.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14413, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect
(!!(tryResult1167.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 tryResult1164 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14407, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1165.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14410, mozilla::dom::quota::Severity::Error); return tryResult1165.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1166.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14413, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; return Ok{}; }))"
, tryResult1167.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14416, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}
14399 indexDataValuesLength = indexDataValuesLength, aObjectStoreId,{auto tryResult1167 = (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 tryResult1164
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1164
)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14407, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1165
)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14410, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1166)::ok_type
>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1166.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14413, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect
(!!(tryResult1167.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 tryResult1164 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14407, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1165.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14410, mozilla::dom::quota::Severity::Error); return tryResult1165.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1166.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14413, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; return Ok{}; }))"
, tryResult1167.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14416, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}
14400 &aObjectStoreKey]({auto tryResult1167 = (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 tryResult1164
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1164
)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14407, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1165
)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14410, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1166)::ok_type
>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1166.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14413, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect
(!!(tryResult1167.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 tryResult1164 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14407, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1165.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14410, mozilla::dom::quota::Severity::Error); return tryResult1165.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1166.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14413, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; return Ok{}; }))"
, tryResult1167.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14416, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}
14401 mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> {{auto tryResult1167 = (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 tryResult1164
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1164
)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14407, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1165
)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14410, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1166)::ok_type
>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1166.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14413, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect
(!!(tryResult1167.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 tryResult1164 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14407, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1165.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14410, mozilla::dom::quota::Severity::Error); return tryResult1165.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1166.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14413, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; return Ok{}; }))"
, tryResult1167.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14416, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}
14402 QM_TRY(MOZ_TO_RESULT({auto tryResult1167 = (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 tryResult1164
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1164
)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14407, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1165
)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14410, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1166)::ok_type
>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1166.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14413, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect
(!!(tryResult1167.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 tryResult1164 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14407, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1165.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14410, mozilla::dom::quota::Severity::Error); return tryResult1165.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1166.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14413, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; return Ok{}; }))"
, tryResult1167.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14416, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}
14403 indexDataValues{auto tryResult1167 = (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 tryResult1164
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1164
)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14407, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1165
)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14410, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1166)::ok_type
>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1166.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14413, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect
(!!(tryResult1167.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 tryResult1164 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14407, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1165.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14410, mozilla::dom::quota::Severity::Error); return tryResult1165.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1166.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14413, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; return Ok{}; }))"
, tryResult1167.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14416, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}
14404 ? updateStmt.BindAdoptedBlobByName({auto tryResult1167 = (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 tryResult1164
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1164
)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14407, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1165
)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14410, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1166)::ok_type
>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1166.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14413, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect
(!!(tryResult1167.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 tryResult1164 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14407, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1165.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14410, mozilla::dom::quota::Severity::Error); return tryResult1165.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1166.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14413, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; return Ok{}; }))"
, tryResult1167.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14416, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}
14405 kStmtParamNameIndexDataValues, indexDataValues.release(),{auto tryResult1167 = (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 tryResult1164
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1164
)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14407, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1165
)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14410, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1166)::ok_type
>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1166.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14413, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect
(!!(tryResult1167.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 tryResult1164 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14407, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1165.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14410, mozilla::dom::quota::Severity::Error); return tryResult1165.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1166.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14413, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; return Ok{}; }))"
, tryResult1167.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14416, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}
14406 indexDataValuesLength){auto tryResult1167 = (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 tryResult1164
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1164
)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14407, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1165
)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14410, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1166)::ok_type
>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1166.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14413, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect
(!!(tryResult1167.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 tryResult1164 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14407, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1165.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14410, mozilla::dom::quota::Severity::Error); return tryResult1165.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1166.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14413, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; return Ok{}; }))"
, tryResult1167.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14416, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}
14407 : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)));{auto tryResult1167 = (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 tryResult1164
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1164
)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14407, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1165
)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14410, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1166)::ok_type
>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1166.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14413, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect
(!!(tryResult1167.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 tryResult1164 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14407, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1165.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14410, mozilla::dom::quota::Severity::Error); return tryResult1165.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1166.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14413, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; return Ok{}; }))"
, tryResult1167.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14416, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}
14408
14409 QM_TRY(MOZ_TO_RESULT(updateStmt.BindInt64ByName({auto tryResult1167 = (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 tryResult1164
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1164
)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14407, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1165
)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14410, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1166)::ok_type
>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1166.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14413, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect
(!!(tryResult1167.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 tryResult1164 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14407, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1165.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14410, mozilla::dom::quota::Severity::Error); return tryResult1165.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1166.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14413, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; return Ok{}; }))"
, tryResult1167.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14416, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}
14410 kStmtParamNameObjectStoreId, aObjectStoreId)));{auto tryResult1167 = (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 tryResult1164
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1164
)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14407, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1165
)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14410, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1166)::ok_type
>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1166.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14413, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect
(!!(tryResult1167.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 tryResult1164 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14407, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1165.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14410, mozilla::dom::quota::Severity::Error); return tryResult1165.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1166.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14413, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; return Ok{}; }))"
, tryResult1167.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14416, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}
14411
14412 QM_TRY(MOZ_TO_RESULT({auto tryResult1167 = (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 tryResult1164
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1164
)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14407, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1165
)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14410, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1166)::ok_type
>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1166.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14413, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect
(!!(tryResult1167.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 tryResult1164 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14407, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1165.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14410, mozilla::dom::quota::Severity::Error); return tryResult1165.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1166.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14413, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; return Ok{}; }))"
, tryResult1167.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14416, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}
14413 aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey)));{auto tryResult1167 = (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 tryResult1164
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1164
)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14407, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1165
)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14410, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1166)::ok_type
>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1166.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14413, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect
(!!(tryResult1167.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 tryResult1164 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14407, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1165.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14410, mozilla::dom::quota::Severity::Error); return tryResult1165.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1166.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14413, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; return Ok{}; }))"
, tryResult1167.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14416, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}
14414
14415 return Ok{};{auto tryResult1167 = (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 tryResult1164
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1164
)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14407, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1165
)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14410, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1166)::ok_type
>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1166.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14413, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect
(!!(tryResult1167.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 tryResult1164 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14407, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1165.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14410, mozilla::dom::quota::Severity::Error); return tryResult1165.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1166.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14413, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; return Ok{}; }))"
, tryResult1167.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14416, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}
14416 }))){auto tryResult1167 = (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 tryResult1164
= (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName
( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength
) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))
); static_assert(std::is_empty_v<typename decltype(tryResult1164
)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))"
, tryResult1164.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14407, mozilla::dom::quota::Severity::Error); return tryResult1164
.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt
.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1165
)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1165.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14410, mozilla::dom::quota::Severity::Error); return tryResult1165
.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey
.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1166)::ok_type
>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))"
, tryResult1166.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14413, mozilla::dom::quota::Severity::Error); return tryResult1166
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect
(!!(tryResult1167.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 tryResult1164 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1164.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14407, mozilla::dom::quota::Severity::Error); return tryResult1164.propagateErr(); }}; {auto tryResult1165 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1165)::ok_type>); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1165.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14410, mozilla::dom::quota::Severity::Error); return tryResult1165.propagateErr(); }}; {auto tryResult1166 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1166)::ok_type>); if ((__builtin_expect(!!(tryResult1166.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1166.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14413, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); }}; return Ok{}; }))"
, tryResult1167.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14416, mozilla::dom::quota::Severity::Error); return tryResult1167
.propagateErr(); }}
;
14417
14418 return NS_OK;
14419}
14420
14421// static
14422Result<bool, nsresult> DatabaseOperationBase::ObjectStoreHasIndexes(
14423 DatabaseConnection& aConnection,
14424 const IndexOrObjectStoreId aObjectStoreId) {
14425 aConnection.AssertIsOnConnectionThread();
14426 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"
, 14426); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aObjectStoreId"
")"); do { *((volatile int*)__null) = 14426; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14427
14428 QM_TRY_RETURN(aConnection{auto tryResult1169 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1168
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1168)::ok_type>); if ((__builtin_expect
(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1168.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14436, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1169.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 tryResult1168 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1168.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14436, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1169.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14439, mozilla::dom::quota::Severity::Error); } return tryResult1169
;}
14429 .BorrowAndExecuteSingleStepStatement({auto tryResult1169 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1168
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1168)::ok_type>); if ((__builtin_expect
(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1168.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14436, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1169.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 tryResult1168 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1168.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14436, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1169.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14439, mozilla::dom::quota::Severity::Error); } return tryResult1169
;}
14430 "SELECT id "{auto tryResult1169 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1168
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1168)::ok_type>); if ((__builtin_expect
(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1168.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14436, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1169.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 tryResult1168 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1168.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14436, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1169.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14439, mozilla::dom::quota::Severity::Error); } return tryResult1169
;}
14431 "FROM object_store_index "{auto tryResult1169 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1168
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1168)::ok_type>); if ((__builtin_expect
(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1168.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14436, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1169.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 tryResult1168 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1168.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14436, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1169.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14439, mozilla::dom::quota::Severity::Error); } return tryResult1169
;}
14432 "WHERE object_store_id = :"_ns +{auto tryResult1169 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1168
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1168)::ok_type>); if ((__builtin_expect
(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1168.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14436, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1169.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 tryResult1168 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1168.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14436, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1169.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14439, mozilla::dom::quota::Severity::Error); } return tryResult1169
;}
14433 kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns,{auto tryResult1169 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1168
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1168)::ok_type>); if ((__builtin_expect
(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1168.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14436, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1169.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 tryResult1168 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1168.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14436, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1169.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14439, mozilla::dom::quota::Severity::Error); } return tryResult1169
;}
14434 [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> {{auto tryResult1169 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1168
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1168)::ok_type>); if ((__builtin_expect
(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1168.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14436, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1169.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 tryResult1168 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1168.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14436, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1169.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14439, mozilla::dom::quota::Severity::Error); } return tryResult1169
;}
14435 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByName({auto tryResult1169 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1168
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1168)::ok_type>); if ((__builtin_expect
(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1168.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14436, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1169.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 tryResult1168 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1168.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14436, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1169.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14439, mozilla::dom::quota::Severity::Error); } return tryResult1169
;}
14436 kStmtParamNameObjectStoreId, aObjectStoreId)));{auto tryResult1169 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1168
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1168)::ok_type>); if ((__builtin_expect
(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1168.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14436, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1169.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 tryResult1168 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1168.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14436, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1169.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14439, mozilla::dom::quota::Severity::Error); } return tryResult1169
;}
14437 return Ok{};{auto tryResult1169 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1168
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1168)::ok_type>); if ((__builtin_expect
(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1168.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14436, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1169.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 tryResult1168 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1168.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14436, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1169.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14439, mozilla::dom::quota::Severity::Error); } return tryResult1169
;}
14438 }){auto tryResult1169 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1168
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1168)::ok_type>); if ((__builtin_expect
(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1168.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14436, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1169.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 tryResult1168 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1168.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14436, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1169.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14439, mozilla::dom::quota::Severity::Error); } return tryResult1169
;}
14439 .map(IsSome)){auto tryResult1169 = (aConnection .BorrowAndExecuteSingleStepStatement
( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + kOpenLimit + "1;"_ns, [aObjectStoreId
](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1168
= (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, aObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1168)::ok_type>); if ((__builtin_expect
(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))"
, tryResult1168.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14436, mozilla::dom::quota::Severity::Error); return tryResult1168
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1169.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 tryResult1168 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1168.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14436, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryResult1169.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14439, mozilla::dom::quota::Severity::Error); } return tryResult1169
;}
;
14440}
14441
14442NS_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"
, 14443); 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((sizeof(table) / sizeof(table[0])) > 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; }
14443 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"
, 14443); 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((sizeof(table) / sizeof(table[0])) > 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; }
14444
14445NS_IMETHODIMPnsresult
14446DatabaseOperationBase::OnProgress(mozIStorageConnection* aConnection,
14447 bool* _retval) {
14448 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"
, 14448); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 14448; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14449 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"
, 14449); AnnotateMozCrashReason("MOZ_ASSERT" "(" "_retval" ")"
); do { *((volatile int*)__null) = 14449; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
14450
14451 // This is intentionally racy.
14452 *_retval = QuotaClient::IsShuttingDownOnNonBackgroundThread() ||
14453 !OperationMayProceed();
14454 return NS_OK;
14455}
14456
14457DatabaseOperationBase::AutoSetProgressHandler::AutoSetProgressHandler()
14458 : mConnection(Nothing())
14459#ifdef DEBUG1
14460 ,
14461 mDEBUGDatabaseOp(nullptr)
14462#endif
14463{
14464 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"
, 14464); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 14464; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14465}
14466
14467DatabaseOperationBase::AutoSetProgressHandler::~AutoSetProgressHandler() {
14468 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"
, 14468); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 14468; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14469
14470 if (mConnection) {
14471 Unregister();
14472 }
14473}
14474
14475nsresult DatabaseOperationBase::AutoSetProgressHandler::Register(
14476 mozIStorageConnection& aConnection, DatabaseOperationBase* aDatabaseOp) {
14477 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"
, 14477); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 14477; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14478 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"
, 14478); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseOp"
")"); do { *((volatile int*)__null) = 14478; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14479 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"
, 14479); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mConnection"
")"); do { *((volatile int*)__null) = 14479; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14480
14481 QM_TRY_UNWRAP(auto tryResult1170 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageProgressHandler> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::SetProgressHandler
), (aConnection), kStorageProgressGranularity, aDatabaseOp));
if ((__builtin_expect(!!(tryResult1170.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageProgressHandler>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::SetProgressHandler), (aConnection), kStorageProgressGranularity, aDatabaseOp)"
, tryResult1170.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14485, mozilla::dom::quota::Severity::Error); return tryResult1170
.propagateErr(); } const DebugOnly oldProgressHandler = tryResult1170
.unwrap();
14482 const DebugOnly oldProgressHandler,auto tryResult1170 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageProgressHandler> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::SetProgressHandler
), (aConnection), kStorageProgressGranularity, aDatabaseOp));
if ((__builtin_expect(!!(tryResult1170.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageProgressHandler>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::SetProgressHandler), (aConnection), kStorageProgressGranularity, aDatabaseOp)"
, tryResult1170.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14485, mozilla::dom::quota::Severity::Error); return tryResult1170
.propagateErr(); } const DebugOnly oldProgressHandler = tryResult1170
.unwrap();
14483 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1170 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageProgressHandler> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::SetProgressHandler
), (aConnection), kStorageProgressGranularity, aDatabaseOp));
if ((__builtin_expect(!!(tryResult1170.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageProgressHandler>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::SetProgressHandler), (aConnection), kStorageProgressGranularity, aDatabaseOp)"
, tryResult1170.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14485, mozilla::dom::quota::Severity::Error); return tryResult1170
.propagateErr(); } const DebugOnly oldProgressHandler = tryResult1170
.unwrap();
14484 nsCOMPtr<mozIStorageProgressHandler>, aConnection, SetProgressHandler,auto tryResult1170 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageProgressHandler> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::SetProgressHandler
), (aConnection), kStorageProgressGranularity, aDatabaseOp));
if ((__builtin_expect(!!(tryResult1170.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageProgressHandler>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::SetProgressHandler), (aConnection), kStorageProgressGranularity, aDatabaseOp)"
, tryResult1170.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14485, mozilla::dom::quota::Severity::Error); return tryResult1170
.propagateErr(); } const DebugOnly oldProgressHandler = tryResult1170
.unwrap();
14485 kStorageProgressGranularity, aDatabaseOp))auto tryResult1170 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageProgressHandler> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::SetProgressHandler
), (aConnection), kStorageProgressGranularity, aDatabaseOp));
if ((__builtin_expect(!!(tryResult1170.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageProgressHandler>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::SetProgressHandler), (aConnection), kStorageProgressGranularity, aDatabaseOp)"
, tryResult1170.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14485, mozilla::dom::quota::Severity::Error); return tryResult1170
.propagateErr(); } const DebugOnly oldProgressHandler = tryResult1170
.unwrap();
;
14486
14487 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"
, 14487); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!oldProgressHandler.inspect()"
")"); do { *((volatile int*)__null) = 14487; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14488
14489 mConnection = SomeRef(aConnection);
14490#ifdef DEBUG1
14491 mDEBUGDatabaseOp = aDatabaseOp;
14492#endif
14493
14494 return NS_OK;
14495}
14496
14497void DatabaseOperationBase::AutoSetProgressHandler::Unregister() {
14498 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"
, 14498); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 14498; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14499 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"
, 14499); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { *((volatile int*)__null) = 14499; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14500
14501 nsCOMPtr<mozIStorageProgressHandler> oldHandler;
14502 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mConnection->RemoveProgressHandler(getter_AddRefs(oldHandler
)))), 1)))), 1))) { } else { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(mConnection->RemoveProgressHandler(getter_AddRefs(oldHandler)))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14503); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(mConnection->RemoveProgressHandler(getter_AddRefs(oldHandler)))"
")"); do { *((volatile int*)__null) = 14503; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
14503 mConnection->RemoveProgressHandler(getter_AddRefs(oldHandler)))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mConnection->RemoveProgressHandler(getter_AddRefs(oldHandler
)))), 1)))), 1))) { } else { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(mConnection->RemoveProgressHandler(getter_AddRefs(oldHandler)))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14503); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(mConnection->RemoveProgressHandler(getter_AddRefs(oldHandler)))"
")"); do { *((volatile int*)__null) = 14503; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
14504 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"
, 14504); AnnotateMozCrashReason("MOZ_ASSERT" "(" "oldHandler == mDEBUGDatabaseOp"
")"); do { *((volatile int*)__null) = 14504; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14505
14506 mConnection = Nothing();
14507}
14508
14509FactoryOp::FactoryOp(SafeRefPtr<Factory> aFactory,
14510 const Maybe<ContentParentId>& aContentParentId,
14511 const PersistenceType aPersistenceType,
14512 const PrincipalInfo& aPrincipalInfo,
14513 const Maybe<nsString>& aDatabaseName, bool aDeleting)
14514 : DatabaseOperationBase(aFactory->GetLoggingInfo()->Id(),
14515 aFactory->GetLoggingInfo()->NextRequestSN()),
14516 mFactory(std::move(aFactory)),
14517 mContentParentId(aContentParentId),
14518 mPrincipalInfo(aPrincipalInfo),
14519 mDatabaseName(aDatabaseName),
14520 mDirectoryLockId(-1),
14521 mPersistenceType(aPersistenceType),
14522 mState(State::Initial),
14523 mWaitingForPermissionRetry(false),
14524 mEnforcingQuota(true),
14525 mDeleting(aDeleting) {
14526 AssertIsOnBackgroundThread();
14527 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"
, 14527); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFactory" ")"
); do { *((volatile int*)__null) = 14527; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
14528 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"
, 14528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!QuotaClient::IsShuttingDownOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 14528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14529}
14530
14531nsresult FactoryOp::DispatchThisAfterProcessingCurrentEvent(
14532 nsCOMPtr<nsIEventTarget> aEventTarget) {
14533 QM_TRY(MOZ_TO_RESULT(RunAfterProcessingCurrentEvent({auto tryResult1172 = (ToResult(RunAfterProcessingCurrentEvent
( [eventTarget = std::move(aEventTarget), self = RefPtr(this)
]() mutable { {auto tryResult1171 = (ToResult(eventTarget->
Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1171)::ok_type
>); if ((__builtin_expect(!!(tryResult1171.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))"
, tryResult1171.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14536, mozilla::dom::quota::Severity::Warning); }}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1172)::ok_type
>); if ((__builtin_expect(!!(tryResult1172.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RunAfterProcessingCurrentEvent( [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable { {auto tryResult1171 = (ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert(std::is_empty_v<typename decltype(tryResult1171)::ok_type>); if ((__builtin_expect(!!(tryResult1171.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))\", tryResult1171.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14536, mozilla::dom::quota::Severity::Warning); }}; }))"
, tryResult1172.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14537, mozilla::dom::quota::Severity::Error); return tryResult1172
.propagateErr(); }}
14534 [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable {{auto tryResult1172 = (ToResult(RunAfterProcessingCurrentEvent
( [eventTarget = std::move(aEventTarget), self = RefPtr(this)
]() mutable { {auto tryResult1171 = (ToResult(eventTarget->
Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1171)::ok_type
>); if ((__builtin_expect(!!(tryResult1171.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))"
, tryResult1171.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14536, mozilla::dom::quota::Severity::Warning); }}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1172)::ok_type
>); if ((__builtin_expect(!!(tryResult1172.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RunAfterProcessingCurrentEvent( [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable { {auto tryResult1171 = (ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert(std::is_empty_v<typename decltype(tryResult1171)::ok_type>); if ((__builtin_expect(!!(tryResult1171.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))\", tryResult1171.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14536, mozilla::dom::quota::Severity::Warning); }}; }))"
, tryResult1172.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14537, mozilla::dom::quota::Severity::Error); return tryResult1172
.propagateErr(); }}
14535 QM_WARNONLY_TRY(MOZ_TO_RESULT({auto tryResult1172 = (ToResult(RunAfterProcessingCurrentEvent
( [eventTarget = std::move(aEventTarget), self = RefPtr(this)
]() mutable { {auto tryResult1171 = (ToResult(eventTarget->
Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1171)::ok_type
>); if ((__builtin_expect(!!(tryResult1171.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))"
, tryResult1171.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14536, mozilla::dom::quota::Severity::Warning); }}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1172)::ok_type
>); if ((__builtin_expect(!!(tryResult1172.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RunAfterProcessingCurrentEvent( [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable { {auto tryResult1171 = (ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert(std::is_empty_v<typename decltype(tryResult1171)::ok_type>); if ((__builtin_expect(!!(tryResult1171.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))\", tryResult1171.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14536, mozilla::dom::quota::Severity::Warning); }}; }))"
, tryResult1172.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14537, mozilla::dom::quota::Severity::Error); return tryResult1172
.propagateErr(); }}
14536 eventTarget->Dispatch(self.forget(), NS_DISPATCH_NORMAL)));{auto tryResult1172 = (ToResult(RunAfterProcessingCurrentEvent
( [eventTarget = std::move(aEventTarget), self = RefPtr(this)
]() mutable { {auto tryResult1171 = (ToResult(eventTarget->
Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1171)::ok_type
>); if ((__builtin_expect(!!(tryResult1171.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))"
, tryResult1171.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14536, mozilla::dom::quota::Severity::Warning); }}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1172)::ok_type
>); if ((__builtin_expect(!!(tryResult1172.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RunAfterProcessingCurrentEvent( [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable { {auto tryResult1171 = (ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert(std::is_empty_v<typename decltype(tryResult1171)::ok_type>); if ((__builtin_expect(!!(tryResult1171.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))\", tryResult1171.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14536, mozilla::dom::quota::Severity::Warning); }}; }))"
, tryResult1172.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14537, mozilla::dom::quota::Severity::Error); return tryResult1172
.propagateErr(); }}
14537 }))){auto tryResult1172 = (ToResult(RunAfterProcessingCurrentEvent
( [eventTarget = std::move(aEventTarget), self = RefPtr(this)
]() mutable { {auto tryResult1171 = (ToResult(eventTarget->
Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert
(std::is_empty_v<typename decltype(tryResult1171)::ok_type
>); if ((__builtin_expect(!!(tryResult1171.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))"
, tryResult1171.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14536, mozilla::dom::quota::Severity::Warning); }}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1172)::ok_type
>); if ((__builtin_expect(!!(tryResult1172.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RunAfterProcessingCurrentEvent( [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable { {auto tryResult1171 = (ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert(std::is_empty_v<typename decltype(tryResult1171)::ok_type>); if ((__builtin_expect(!!(tryResult1171.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))\", tryResult1171.unwrapErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14536, mozilla::dom::quota::Severity::Warning); }}; }))"
, tryResult1172.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14537, mozilla::dom::quota::Severity::Error); return tryResult1172
.propagateErr(); }}
;
14538
14539 return NS_OK;
14540}
14541
14542void FactoryOp::NoteDatabaseBlocked(Database* aDatabase) {
14543 AssertIsOnOwningThread();
14544 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"
, 14544); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabase"
")"); do { *((volatile int*)__null) = 14544; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14545 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"
, 14545); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForOtherDatabasesToClose"
")"); do { *((volatile int*)__null) = 14545; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14546 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"
, 14546); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mMaybeBlockedDatabases.IsEmpty()"
")"); do { *((volatile int*)__null) = 14546; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14547 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"
, 14547); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.Contains(aDatabase)"
")"); do { *((volatile int*)__null) = 14547; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14548
14549 // Only send the blocked event if all databases have reported back. If the
14550 // database was closed then it will have been removed from the array.
14551 // Otherwise if it was blocked its |mBlocked| flag will be true.
14552 bool sendBlockedEvent = true;
14553
14554 for (auto& info : mMaybeBlockedDatabases) {
14555 if (info == aDatabase) {
14556 // This database was blocked, mark accordingly.
14557 info.mBlocked = true;
14558 } else if (!info.mBlocked) {
14559 // A database has not yet reported back yet, don't send the event yet.
14560 sendBlockedEvent = false;
14561 }
14562 }
14563
14564 if (sendBlockedEvent) {
14565 SendBlockedNotification();
14566 }
14567}
14568
14569void FactoryOp::NoteDatabaseClosed(Database* const aDatabase) {
14570 AssertIsOnOwningThread();
14571 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"
, 14571); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabase"
")"); do { *((volatile int*)__null) = 14571; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14572 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"
, 14572); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForOtherDatabasesToClose"
")"); do { *((volatile int*)__null) = 14572; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14573 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"
, 14573); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mMaybeBlockedDatabases.IsEmpty()"
")"); do { *((volatile int*)__null) = 14573; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14574 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"
, 14574); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.Contains(aDatabase)"
")"); do { *((volatile int*)__null) = 14574; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14575
14576 mMaybeBlockedDatabases.RemoveElement(aDatabase);
14577
14578 if (!mMaybeBlockedDatabases.IsEmpty()) {
14579 return;
14580 }
14581
14582 DatabaseActorInfo* info;
14583 MOZ_ALWAYS_TRUE(gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info))do { if ((__builtin_expect(!!(gLiveDatabaseHashtable->Get(
mDatabaseId.ref(), &info)), 1))) { } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14583); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)"
")"); do { *((volatile int*)__null) = 14583; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
14584 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"
, 14584); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mWaitingFactoryOp == this"
")"); do { *((volatile int*)__null) = 14584; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14585
14586 if (AreActorsAlive()) {
14587 // The IPDL strong reference has not yet been released, so we can clear
14588 // mWaitingFactoryOp immediately.
14589 info->mWaitingFactoryOp = nullptr;
14590
14591 WaitForTransactions();
14592 return;
14593 }
14594
14595 // The IPDL strong reference has been released, mWaitingFactoryOp holds the
14596 // last strong reference to us, so we need to move it to a stack variable
14597 // instead of clearing it immediately (We could clear it immediately if only
14598 // the other actor is destroyed, but we don't need to optimize for that, and
14599 // move it anyway).
14600 const RefPtr<FactoryOp> waitingFactoryOp = std::move(info->mWaitingFactoryOp);
14601
14602 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14602, "UnknownErr")
;
14603 SetFailureCodeIfUnset(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR);
14604
14605 // We hold a strong ref in waitingFactoryOp, so it's safe to call Run()
14606 // directly.
14607
14608 mState = State::SendingResults;
14609 MOZ_ALWAYS_SUCCEEDS(Run())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(Run())), 1)))), 1))) { } else { do { static_assert( mozilla::
detail::AssertionConditionType<decltype(false)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "NS_SUCCEEDED(Run())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14609); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(Run())" ")"); do { *((volatile int*)__null
) = 14609; __attribute__((nomerge)) ::abort(); } while (false
); } } while (false); } } while (false)
;
14610}
14611
14612void FactoryOp::StringifyState(nsACString& aResult) const {
14613 AssertIsOnOwningThread();
14614
14615 switch (mState) {
14616 case State::Initial:
14617 aResult.AppendLiteral("Initial");
14618 return;
14619
14620 case State::DirectoryOpenPending:
14621 aResult.AppendLiteral("DirectoryOpenPending");
14622 return;
14623
14624 case State::DirectoryWorkOpen:
14625 aResult.AppendLiteral("DirectoryWorkOpen");
14626 return;
14627
14628 case State::DirectoryWorkDone:
14629 aResult.AppendLiteral("DirectoryWorkDone");
14630 return;
14631
14632 case State::DatabaseOpenPending:
14633 aResult.AppendLiteral("DatabaseOpenPending");
14634 return;
14635
14636 case State::DatabaseWorkOpen:
14637 aResult.AppendLiteral("DatabaseWorkOpen");
14638 return;
14639
14640 case State::BeginVersionChange:
14641 aResult.AppendLiteral("BeginVersionChange");
14642 return;
14643
14644 case State::WaitingForOtherDatabasesToClose:
14645 aResult.AppendLiteral("WaitingForOtherDatabasesToClose");
14646 return;
14647
14648 case State::WaitingForTransactionsToComplete:
14649 aResult.AppendLiteral("WaitingForTransactionsToComplete");
14650 return;
14651
14652 case State::DatabaseWorkVersionChange:
14653 aResult.AppendLiteral("DatabaseWorkVersionChange");
14654 return;
14655
14656 case State::SendingResults:
14657 aResult.AppendLiteral("SendingResults");
14658 return;
14659
14660 case State::Completed:
14661 aResult.AppendLiteral("Completed");
14662 return;
14663
14664 default:
14665 MOZ_CRASH("Bad state!")do { do { } while (false); MOZ_ReportCrash("" "Bad state!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14665); AnnotateMozCrashReason("MOZ_CRASH(" "Bad state!" ")"
); do { *((volatile int*)__null) = 14665; __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
14666 }
14667}
14668
14669void FactoryOp::Stringify(nsACString& aResult) const {
14670 AssertIsOnOwningThread();
14671
14672 aResult.AppendLiteral("PersistenceType:");
14673 aResult.Append(PersistenceTypeToString(mPersistenceType));
14674 aResult.Append(kQuotaGenericDelimiter);
14675
14676 aResult.AppendLiteral("Origin:");
14677 aResult.Append(AnonymizedOriginString(mOriginMetadata.mOrigin));
14678 aResult.Append(kQuotaGenericDelimiter);
14679
14680 aResult.AppendLiteral("State:");
14681 StringifyState(aResult);
14682}
14683
14684nsresult FactoryOp::Open() {
14685 AssertIsOnOwningThread();
14686 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"
, 14686); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial"
")"); do { *((volatile int*)__null) = 14686; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14687 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"
, 14687); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOriginMetadata.mOrigin.IsEmpty()"
")"); do { *((volatile int*)__null) = 14687; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14688 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"
, 14688); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLock"
")"); do { *((volatile int*)__null) = 14688; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14689
14690 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"
, 14690)
||
14691 IsActorDestroyed()) {
14692 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14692, "UnknownErr")
;
14693 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
14694 }
14695
14696 QM_TRY(QuotaManager::EnsureCreated()){auto tryResult1173 = (QuotaManager::EnsureCreated()); static_assert
(std::is_empty_v<typename decltype(tryResult1173)::ok_type
>); if ((__builtin_expect(!!(tryResult1173.isErr()), 0))) {
mozilla::dom::quota::HandleError("QuotaManager::EnsureCreated()"
, tryResult1173.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14696, mozilla::dom::quota::Severity::Error); return tryResult1173
.propagateErr(); }}
;
14697
14698 QuotaManager* const quotaManager = QuotaManager::Get();
14699 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"
, 14699); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { *((volatile int*)__null) = 14699; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14700
14701 QM_TRY_UNWRAP(auto tryResult1174 = (quotaManager->GetInfoFromValidatedPrincipalInfo
(mPrincipalInfo)); if ((__builtin_expect(!!(tryResult1174.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetInfoFromValidatedPrincipalInfo(mPrincipalInfo)"
, tryResult1174.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14703, mozilla::dom::quota::Severity::Error); return tryResult1174
.propagateErr(); } auto principalMetadata = tryResult1174.unwrap
();
14702 auto principalMetadata,auto tryResult1174 = (quotaManager->GetInfoFromValidatedPrincipalInfo
(mPrincipalInfo)); if ((__builtin_expect(!!(tryResult1174.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetInfoFromValidatedPrincipalInfo(mPrincipalInfo)"
, tryResult1174.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14703, mozilla::dom::quota::Severity::Error); return tryResult1174
.propagateErr(); } auto principalMetadata = tryResult1174.unwrap
();
14703 quotaManager->GetInfoFromValidatedPrincipalInfo(mPrincipalInfo))auto tryResult1174 = (quotaManager->GetInfoFromValidatedPrincipalInfo
(mPrincipalInfo)); if ((__builtin_expect(!!(tryResult1174.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetInfoFromValidatedPrincipalInfo(mPrincipalInfo)"
, tryResult1174.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14703, mozilla::dom::quota::Severity::Error); return tryResult1174
.propagateErr(); } auto principalMetadata = tryResult1174.unwrap
();
;
14704
14705 mOriginMetadata = {std::move(principalMetadata), mPersistenceType};
14706
14707 if (mPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo) {
14708 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"
, 14708); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mPersistenceType == PERSISTENCE_TYPE_PERSISTENT"
")"); do { *((volatile int*)__null) = 14708; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14709
14710 mEnforcingQuota = false;
14711 } else if (mPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo) {
14712 const ContentPrincipalInfo& contentPrincipalInfo =
14713 mPrincipalInfo.get_ContentPrincipalInfo();
14714
14715 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"
, 14717); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mPersistenceType == PERSISTENCE_TYPE_PERSISTENT"
")"); do { *((volatile int*)__null) = 14717; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
14716 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"
, 14717); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mPersistenceType == PERSISTENCE_TYPE_PERSISTENT"
")"); do { *((volatile int*)__null) = 14717; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
14717 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"
, 14717); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mPersistenceType == PERSISTENCE_TYPE_PERSISTENT"
")"); do { *((volatile int*)__null) = 14717; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
14718
14719 mEnforcingQuota = mPersistenceType != PERSISTENCE_TYPE_PERSISTENT;
14720
14721 if (mOriginMetadata.mIsPrivate) {
14722 if (StaticPrefs::dom_indexedDB_privateBrowsing_enabled()) {
14723 // Explicitly disallow moz-extension urls from using the encrypted
14724 // indexedDB storage mode when the caller is an extension (see Bug
14725 // 1841806).
14726 if (StringBeginsWith(contentPrincipalInfo.originNoSuffix(),
14727 "moz-extension:"_ns)) {
14728 return NS_ERROR_DOM_INDEXEDDB_NOT_ALLOWED_ERR;
14729 }
14730
14731 mInPrivateBrowsing.Flip();
14732 } else {
14733 return NS_ERROR_DOM_INDEXEDDB_NOT_ALLOWED_ERR;
14734 }
14735 }
14736 } else {
14737 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"
, 14737); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ")"
); do { *((volatile int*)__null) = 14737; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
14738 }
14739
14740 if (mDatabaseName.isSome()) {
14741 nsCString databaseId;
14742
14743 QuotaManager::GetStorageId(mPersistenceType, mOriginMetadata.mOrigin,
14744 Client::IDB, databaseId);
14745
14746 databaseId.Append('*');
14747 databaseId.Append(NS_ConvertUTF16toUTF8(mDatabaseName.ref()));
14748
14749 mDatabaseId = Some(std::move(databaseId));
14750
14751 // Need to get database file path before opening the directory.
14752 // XXX: For what reason?
14753 QM_TRY_UNWRAP(auto tryResult1179 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1175 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1175
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14757, mozilla::dom::quota::Severity::Error); return tryResult1175
.propagateErr(); } const auto& dbFile = tryResult1175.inspect
();; {auto tryResult1176 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1176
)::ok_type>); if ((__builtin_expect(!!(tryResult1176.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14760, mozilla::dom::quota::Severity::Error); return tryResult1176
.propagateErr(); }}; {auto tryResult1177 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect
(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1177.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14765, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); }}; {auto tryResult1178 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1178.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14768, mozilla::dom::quota::Severity::Error); } return tryResult1178
;}; }())); if ((__builtin_expect(!!(tryResult1179.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1175 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1175.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14757, mozilla::dom::quota::Severity::Error); return tryResult1175.propagateErr(); } const auto& dbFile = tryResult1175.inspect();; {auto tryResult1176 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1176)::ok_type>); if ((__builtin_expect(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1176.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14760, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); }}; {auto tryResult1177 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1177.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14765, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; {auto tryResult1178 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1178.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14768, mozilla::dom::quota::Severity::Error); } return tryResult1178;}; }())"
, tryResult1179.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14769, mozilla::dom::quota::Severity::Error); return tryResult1179
.propagateErr(); } auto databaseFilePath = tryResult1179.unwrap
();
14754 auto databaseFilePath,auto tryResult1179 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1175 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1175
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14757, mozilla::dom::quota::Severity::Error); return tryResult1175
.propagateErr(); } const auto& dbFile = tryResult1175.inspect
();; {auto tryResult1176 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1176
)::ok_type>); if ((__builtin_expect(!!(tryResult1176.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14760, mozilla::dom::quota::Severity::Error); return tryResult1176
.propagateErr(); }}; {auto tryResult1177 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect
(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1177.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14765, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); }}; {auto tryResult1178 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1178.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14768, mozilla::dom::quota::Severity::Error); } return tryResult1178
;}; }())); if ((__builtin_expect(!!(tryResult1179.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1175 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1175.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14757, mozilla::dom::quota::Severity::Error); return tryResult1175.propagateErr(); } const auto& dbFile = tryResult1175.inspect();; {auto tryResult1176 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1176)::ok_type>); if ((__builtin_expect(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1176.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14760, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); }}; {auto tryResult1177 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1177.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14765, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; {auto tryResult1178 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1178.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14768, mozilla::dom::quota::Severity::Error); } return tryResult1178;}; }())"
, tryResult1179.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14769, mozilla::dom::quota::Severity::Error); return tryResult1179
.propagateErr(); } auto databaseFilePath = tryResult1179.unwrap
();
14755 ([this, quotaManager]() -> mozilla::Result<nsString, nsresult> {auto tryResult1179 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1175 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1175
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14757, mozilla::dom::quota::Severity::Error); return tryResult1175
.propagateErr(); } const auto& dbFile = tryResult1175.inspect
();; {auto tryResult1176 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1176
)::ok_type>); if ((__builtin_expect(!!(tryResult1176.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14760, mozilla::dom::quota::Severity::Error); return tryResult1176
.propagateErr(); }}; {auto tryResult1177 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect
(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1177.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14765, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); }}; {auto tryResult1178 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1178.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14768, mozilla::dom::quota::Severity::Error); } return tryResult1178
;}; }())); if ((__builtin_expect(!!(tryResult1179.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1175 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1175.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14757, mozilla::dom::quota::Severity::Error); return tryResult1175.propagateErr(); } const auto& dbFile = tryResult1175.inspect();; {auto tryResult1176 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1176)::ok_type>); if ((__builtin_expect(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1176.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14760, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); }}; {auto tryResult1177 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1177.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14765, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; {auto tryResult1178 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1178.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14768, mozilla::dom::quota::Severity::Error); } return tryResult1178;}; }())"
, tryResult1179.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14769, mozilla::dom::quota::Severity::Error); return tryResult1179
.propagateErr(); } auto databaseFilePath = tryResult1179.unwrap
();
14756 QM_TRY_INSPECT(const auto& dbFile,auto tryResult1179 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1175 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1175
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14757, mozilla::dom::quota::Severity::Error); return tryResult1175
.propagateErr(); } const auto& dbFile = tryResult1175.inspect
();; {auto tryResult1176 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1176
)::ok_type>); if ((__builtin_expect(!!(tryResult1176.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14760, mozilla::dom::quota::Severity::Error); return tryResult1176
.propagateErr(); }}; {auto tryResult1177 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect
(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1177.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14765, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); }}; {auto tryResult1178 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1178.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14768, mozilla::dom::quota::Severity::Error); } return tryResult1178
;}; }())); if ((__builtin_expect(!!(tryResult1179.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1175 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1175.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14757, mozilla::dom::quota::Severity::Error); return tryResult1175.propagateErr(); } const auto& dbFile = tryResult1175.inspect();; {auto tryResult1176 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1176)::ok_type>); if ((__builtin_expect(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1176.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14760, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); }}; {auto tryResult1177 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1177.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14765, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; {auto tryResult1178 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1178.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14768, mozilla::dom::quota::Severity::Error); } return tryResult1178;}; }())"
, tryResult1179.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14769, mozilla::dom::quota::Severity::Error); return tryResult1179
.propagateErr(); } auto databaseFilePath = tryResult1179.unwrap
();
14757 quotaManager->GetOriginDirectory(mOriginMetadata));auto tryResult1179 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1175 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1175
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14757, mozilla::dom::quota::Severity::Error); return tryResult1175
.propagateErr(); } const auto& dbFile = tryResult1175.inspect
();; {auto tryResult1176 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1176
)::ok_type>); if ((__builtin_expect(!!(tryResult1176.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14760, mozilla::dom::quota::Severity::Error); return tryResult1176
.propagateErr(); }}; {auto tryResult1177 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect
(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1177.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14765, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); }}; {auto tryResult1178 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1178.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14768, mozilla::dom::quota::Severity::Error); } return tryResult1178
;}; }())); if ((__builtin_expect(!!(tryResult1179.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1175 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1175.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14757, mozilla::dom::quota::Severity::Error); return tryResult1175.propagateErr(); } const auto& dbFile = tryResult1175.inspect();; {auto tryResult1176 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1176)::ok_type>); if ((__builtin_expect(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1176.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14760, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); }}; {auto tryResult1177 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1177.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14765, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; {auto tryResult1178 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1178.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14768, mozilla::dom::quota::Severity::Error); } return tryResult1178;}; }())"
, tryResult1179.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14769, mozilla::dom::quota::Severity::Error); return tryResult1179
.propagateErr(); } auto databaseFilePath = tryResult1179.unwrap
();
14758
14759 QM_TRY(MOZ_TO_RESULT(dbFile->Append(auto tryResult1179 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1175 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1175
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14757, mozilla::dom::quota::Severity::Error); return tryResult1175
.propagateErr(); } const auto& dbFile = tryResult1175.inspect
();; {auto tryResult1176 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1176
)::ok_type>); if ((__builtin_expect(!!(tryResult1176.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14760, mozilla::dom::quota::Severity::Error); return tryResult1176
.propagateErr(); }}; {auto tryResult1177 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect
(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1177.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14765, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); }}; {auto tryResult1178 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1178.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14768, mozilla::dom::quota::Severity::Error); } return tryResult1178
;}; }())); if ((__builtin_expect(!!(tryResult1179.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1175 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1175.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14757, mozilla::dom::quota::Severity::Error); return tryResult1175.propagateErr(); } const auto& dbFile = tryResult1175.inspect();; {auto tryResult1176 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1176)::ok_type>); if ((__builtin_expect(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1176.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14760, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); }}; {auto tryResult1177 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1177.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14765, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; {auto tryResult1178 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1178.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14768, mozilla::dom::quota::Severity::Error); } return tryResult1178;}; }())"
, tryResult1179.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14769, mozilla::dom::quota::Severity::Error); return tryResult1179
.propagateErr(); } auto databaseFilePath = tryResult1179.unwrap
();
14760 NS_LITERAL_STRING_FROM_CSTRING(IDB_DIRECTORY_NAME))));auto tryResult1179 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1175 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1175
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14757, mozilla::dom::quota::Severity::Error); return tryResult1175
.propagateErr(); } const auto& dbFile = tryResult1175.inspect
();; {auto tryResult1176 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1176
)::ok_type>); if ((__builtin_expect(!!(tryResult1176.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14760, mozilla::dom::quota::Severity::Error); return tryResult1176
.propagateErr(); }}; {auto tryResult1177 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect
(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1177.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14765, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); }}; {auto tryResult1178 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1178.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14768, mozilla::dom::quota::Severity::Error); } return tryResult1178
;}; }())); if ((__builtin_expect(!!(tryResult1179.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1175 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1175.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14757, mozilla::dom::quota::Severity::Error); return tryResult1175.propagateErr(); } const auto& dbFile = tryResult1175.inspect();; {auto tryResult1176 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1176)::ok_type>); if ((__builtin_expect(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1176.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14760, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); }}; {auto tryResult1177 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1177.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14765, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; {auto tryResult1178 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1178.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14768, mozilla::dom::quota::Severity::Error); } return tryResult1178;}; }())"
, tryResult1179.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14769, mozilla::dom::quota::Severity::Error); return tryResult1179
.propagateErr(); } auto databaseFilePath = tryResult1179.unwrap
();
14761
14762 QM_TRY(MOZ_TO_RESULT(dbFile->Append(auto tryResult1179 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1175 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1175
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14757, mozilla::dom::quota::Severity::Error); return tryResult1175
.propagateErr(); } const auto& dbFile = tryResult1175.inspect
();; {auto tryResult1176 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1176
)::ok_type>); if ((__builtin_expect(!!(tryResult1176.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14760, mozilla::dom::quota::Severity::Error); return tryResult1176
.propagateErr(); }}; {auto tryResult1177 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect
(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1177.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14765, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); }}; {auto tryResult1178 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1178.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14768, mozilla::dom::quota::Severity::Error); } return tryResult1178
;}; }())); if ((__builtin_expect(!!(tryResult1179.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1175 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1175.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14757, mozilla::dom::quota::Severity::Error); return tryResult1175.propagateErr(); } const auto& dbFile = tryResult1175.inspect();; {auto tryResult1176 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1176)::ok_type>); if ((__builtin_expect(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1176.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14760, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); }}; {auto tryResult1177 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1177.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14765, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; {auto tryResult1178 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1178.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14768, mozilla::dom::quota::Severity::Error); } return tryResult1178;}; }())"
, tryResult1179.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14769, mozilla::dom::quota::Severity::Error); return tryResult1179
.propagateErr(); } auto databaseFilePath = tryResult1179.unwrap
();
14763 GetDatabaseFilenameBase(mDatabaseName.ref(),auto tryResult1179 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1175 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1175
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14757, mozilla::dom::quota::Severity::Error); return tryResult1175
.propagateErr(); } const auto& dbFile = tryResult1175.inspect
();; {auto tryResult1176 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1176
)::ok_type>); if ((__builtin_expect(!!(tryResult1176.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14760, mozilla::dom::quota::Severity::Error); return tryResult1176
.propagateErr(); }}; {auto tryResult1177 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect
(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1177.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14765, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); }}; {auto tryResult1178 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1178.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14768, mozilla::dom::quota::Severity::Error); } return tryResult1178
;}; }())); if ((__builtin_expect(!!(tryResult1179.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1175 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1175.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14757, mozilla::dom::quota::Severity::Error); return tryResult1175.propagateErr(); } const auto& dbFile = tryResult1175.inspect();; {auto tryResult1176 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1176)::ok_type>); if ((__builtin_expect(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1176.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14760, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); }}; {auto tryResult1177 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1177.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14765, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; {auto tryResult1178 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1178.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14768, mozilla::dom::quota::Severity::Error); } return tryResult1178;}; }())"
, tryResult1179.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14769, mozilla::dom::quota::Severity::Error); return tryResult1179
.propagateErr(); } auto databaseFilePath = tryResult1179.unwrap
();
14764 mOriginMetadata.mIsPrivate) +auto tryResult1179 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1175 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1175
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14757, mozilla::dom::quota::Severity::Error); return tryResult1175
.propagateErr(); } const auto& dbFile = tryResult1175.inspect
();; {auto tryResult1176 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1176
)::ok_type>); if ((__builtin_expect(!!(tryResult1176.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14760, mozilla::dom::quota::Severity::Error); return tryResult1176
.propagateErr(); }}; {auto tryResult1177 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect
(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1177.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14765, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); }}; {auto tryResult1178 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1178.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14768, mozilla::dom::quota::Severity::Error); } return tryResult1178
;}; }())); if ((__builtin_expect(!!(tryResult1179.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1175 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1175.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14757, mozilla::dom::quota::Severity::Error); return tryResult1175.propagateErr(); } const auto& dbFile = tryResult1175.inspect();; {auto tryResult1176 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1176)::ok_type>); if ((__builtin_expect(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1176.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14760, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); }}; {auto tryResult1177 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1177.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14765, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; {auto tryResult1178 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1178.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14768, mozilla::dom::quota::Severity::Error); } return tryResult1178;}; }())"
, tryResult1179.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14769, mozilla::dom::quota::Severity::Error); return tryResult1179
.propagateErr(); } auto databaseFilePath = tryResult1179.unwrap
();
14765 kSQLiteSuffix)));auto tryResult1179 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1175 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1175
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14757, mozilla::dom::quota::Severity::Error); return tryResult1175
.propagateErr(); } const auto& dbFile = tryResult1175.inspect
();; {auto tryResult1176 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1176
)::ok_type>); if ((__builtin_expect(!!(tryResult1176.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14760, mozilla::dom::quota::Severity::Error); return tryResult1176
.propagateErr(); }}; {auto tryResult1177 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect
(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1177.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14765, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); }}; {auto tryResult1178 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1178.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14768, mozilla::dom::quota::Severity::Error); } return tryResult1178
;}; }())); if ((__builtin_expect(!!(tryResult1179.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1175 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1175.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14757, mozilla::dom::quota::Severity::Error); return tryResult1175.propagateErr(); } const auto& dbFile = tryResult1175.inspect();; {auto tryResult1176 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1176)::ok_type>); if ((__builtin_expect(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1176.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14760, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); }}; {auto tryResult1177 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1177.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14765, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; {auto tryResult1178 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1178.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14768, mozilla::dom::quota::Severity::Error); } return tryResult1178;}; }())"
, tryResult1179.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14769, mozilla::dom::quota::Severity::Error); return tryResult1179
.propagateErr(); } auto databaseFilePath = tryResult1179.unwrap
();
14766
14767 QM_TRY_RETURN(auto tryResult1179 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1175 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1175
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14757, mozilla::dom::quota::Severity::Error); return tryResult1175
.propagateErr(); } const auto& dbFile = tryResult1175.inspect
();; {auto tryResult1176 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1176
)::ok_type>); if ((__builtin_expect(!!(tryResult1176.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14760, mozilla::dom::quota::Severity::Error); return tryResult1176
.propagateErr(); }}; {auto tryResult1177 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect
(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1177.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14765, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); }}; {auto tryResult1178 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1178.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14768, mozilla::dom::quota::Severity::Error); } return tryResult1178
;}; }())); if ((__builtin_expect(!!(tryResult1179.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1175 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1175.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14757, mozilla::dom::quota::Severity::Error); return tryResult1175.propagateErr(); } const auto& dbFile = tryResult1175.inspect();; {auto tryResult1176 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1176)::ok_type>); if ((__builtin_expect(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1176.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14760, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); }}; {auto tryResult1177 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1177.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14765, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; {auto tryResult1178 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1178.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14768, mozilla::dom::quota::Severity::Error); } return tryResult1178;}; }())"
, tryResult1179.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14769, mozilla::dom::quota::Severity::Error); return tryResult1179
.propagateErr(); } auto databaseFilePath = tryResult1179.unwrap
();
14768 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, dbFile, GetPath));auto tryResult1179 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1175 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1175
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14757, mozilla::dom::quota::Severity::Error); return tryResult1175
.propagateErr(); } const auto& dbFile = tryResult1175.inspect
();; {auto tryResult1176 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1176
)::ok_type>); if ((__builtin_expect(!!(tryResult1176.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14760, mozilla::dom::quota::Severity::Error); return tryResult1176
.propagateErr(); }}; {auto tryResult1177 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect
(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1177.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14765, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); }}; {auto tryResult1178 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1178.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14768, mozilla::dom::quota::Severity::Error); } return tryResult1178
;}; }())); if ((__builtin_expect(!!(tryResult1179.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1175 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1175.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14757, mozilla::dom::quota::Severity::Error); return tryResult1175.propagateErr(); } const auto& dbFile = tryResult1175.inspect();; {auto tryResult1176 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1176)::ok_type>); if ((__builtin_expect(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1176.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14760, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); }}; {auto tryResult1177 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1177.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14765, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; {auto tryResult1178 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1178.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14768, mozilla::dom::quota::Severity::Error); } return tryResult1178;}; }())"
, tryResult1179.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14769, mozilla::dom::quota::Severity::Error); return tryResult1179
.propagateErr(); } auto databaseFilePath = tryResult1179.unwrap
();
14769 }()))auto tryResult1179 = (([this, quotaManager]() -> mozilla::
Result<nsString, nsresult> { auto tryResult1175 = (quotaManager
->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect
(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1175
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14757, mozilla::dom::quota::Severity::Error); return tryResult1175
.propagateErr(); } const auto& dbFile = tryResult1175.inspect
();; {auto tryResult1176 = (ToResult(dbFile->Append( static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1176
)::ok_type>); if ((__builtin_expect(!!(tryResult1176.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1176.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14760, mozilla::dom::quota::Severity::Error); return tryResult1176
.propagateErr(); }}; {auto tryResult1177 = (ToResult(dbFile->
Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata
.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v
<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect
(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))"
, tryResult1177.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14765, mozilla::dom::quota::Severity::Error); return tryResult1177
.propagateErr(); }}; {auto tryResult1178 = (::mozilla::ToResultInvoke
< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType
<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect
(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1178.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14768, mozilla::dom::quota::Severity::Error); } return tryResult1178
;}; }())); if ((__builtin_expect(!!(tryResult1179.isErr()), 0
))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1175 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1175.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1175.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14757, mozilla::dom::quota::Severity::Error); return tryResult1175.propagateErr(); } const auto& dbFile = tryResult1175.inspect();; {auto tryResult1176 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1176)::ok_type>); if ((__builtin_expect(!!(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1176.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14760, mozilla::dom::quota::Severity::Error); return tryResult1176.propagateErr(); }}; {auto tryResult1177 = (ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( GetDatabaseFilenameBase(mDatabaseName.ref(), mOriginMetadata.mIsPrivate) + kSQLiteSuffix))\", tryResult1177.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14765, mozilla::dom::quota::Severity::Error); return tryResult1177.propagateErr(); }}; {auto tryResult1178 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))\", tryResult1178.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 14768, mozilla::dom::quota::Severity::Error); } return tryResult1178;}; }())"
, tryResult1179.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14769, mozilla::dom::quota::Severity::Error); return tryResult1179
.propagateErr(); } auto databaseFilePath = tryResult1179.unwrap
();
;
14770
14771 mDatabaseFilePath = Some(std::move(databaseFilePath));
14772 }
14773
14774 // Open directory
14775 mState = State::DirectoryOpenPending;
14776
14777 quotaManager->OpenClientDirectory({mOriginMetadata, Client::IDB})
14778 ->Then(
14779 GetCurrentSerialEventTarget(), __func__,
14780 [self = RefPtr(this)](
14781 const ClientDirectoryLockPromise::ResolveOrRejectValue& aValue) {
14782 if (aValue.IsResolve()) {
14783 self->DirectoryLockAcquired(aValue.ResolveValue());
14784 } else {
14785 self->DirectoryLockFailed();
14786 }
14787 });
14788
14789 return NS_OK;
14790}
14791
14792nsresult FactoryOp::DirectoryOpen() {
14793 AssertIsOnOwningThread();
14794 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"
, 14794); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending"
")"); do { *((volatile int*)__null) = 14794; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14795 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"
, 14795); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock"
")"); do { *((volatile int*)__null) = 14795; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14796
14797 if (mDatabaseName.isNothing()) {
14798 QuotaManager* const quotaManager = QuotaManager::Get();
14799 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"
, 14799); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { *((volatile int*)__null) = 14799; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14800
14801 // Must set this before dispatching otherwise we will race with the IO
14802 // thread.
14803 mState = State::DirectoryWorkOpen;
14804
14805 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"
, 14807, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14807, "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); }}
14806 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"
, 14807, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14807, "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); }}
14807 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"
, 14807, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14807, "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); }}
;
14808
14809 return NS_OK;
14810 }
14811
14812 mState = State::DirectoryWorkDone;
14813 MOZ_ALWAYS_SUCCEEDS(Run())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(Run())), 1)))), 1))) { } else { do { static_assert( mozilla::
detail::AssertionConditionType<decltype(false)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "NS_SUCCEEDED(Run())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14813); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(Run())" ")"); do { *((volatile int*)__null
) = 14813; __attribute__((nomerge)) ::abort(); } while (false
); } } while (false); } } while (false)
;
14814
14815 return NS_OK;
14816}
14817
14818nsresult FactoryOp::DirectoryWorkDone() {
14819 AssertIsOnOwningThread();
14820 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"
, 14820); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryWorkDone"
")"); do { *((volatile int*)__null) = 14820; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14821 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"
, 14821); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock"
")"); do { *((volatile int*)__null) = 14821; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14822 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"
, 14822); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gFactoryOps"
")"); do { *((volatile int*)__null) = 14822; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14823
14824 // See if this FactoryOp needs to wait.
14825 const bool blocked = [&self = *this] {
14826 bool foundThis = false;
14827 bool blocked = false;
14828
14829 for (const auto& existingOp : Reversed(*gFactoryOps)) {
14830 if (existingOp == &self) {
14831 foundThis = true;
14832 continue;
14833 }
14834
14835 if (foundThis && self.MustWaitFor(*existingOp)) {
14836 existingOp->AddBlockingOp(self);
14837 self.AddBlockedOnOp(*existingOp);
14838 blocked = true;
14839 }
14840 }
14841
14842 return blocked;
14843 }() || [&self = *this] {
14844 QuotaClient* quotaClient = QuotaClient::GetInstance();
14845 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"
, 14845); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaClient"
")"); do { *((volatile int*)__null) = 14845; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14846
14847 if (RefPtr<Maintenance> currentMaintenance =
14848 quotaClient->GetCurrentMaintenance()) {
14849 if (self.mDatabaseName.isSome()) {
14850 if (RefPtr<DatabaseMaintenance> databaseMaintenance =
14851 currentMaintenance->GetDatabaseMaintenance(
14852 self.mDatabaseFilePath.ref())) {
14853 databaseMaintenance->WaitForCompletion(&self);
14854 return true;
14855 }
14856 } else if (currentMaintenance->HasDatabaseMaintenances()) {
14857 currentMaintenance->WaitForCompletion(&self);
14858 return true;
14859 }
14860 }
14861
14862 return false;
14863 }();
14864
14865 mState = State::DatabaseOpenPending;
14866 if (!blocked) {
14867 QM_TRY(MOZ_TO_RESULT(DatabaseOpen())){auto tryResult1181 = (ToResult(DatabaseOpen())); static_assert
(std::is_empty_v<typename decltype(tryResult1181)::ok_type
>); if ((__builtin_expect(!!(tryResult1181.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(DatabaseOpen())",
tryResult1181.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14867, mozilla::dom::quota::Severity::Error); return tryResult1181
.propagateErr(); }}
;
14868 }
14869
14870 return NS_OK;
14871}
14872
14873nsresult FactoryOp::SendToIOThread() {
14874 AssertIsOnOwningThread();
14875 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"
, 14875); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseOpenPending"
")"); do { *((volatile int*)__null) = 14875; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14876
14877 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"
, 14877)
||
14878 !OperationMayProceed()) {
14879 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14879, "UnknownErr")
;
14880 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
14881 }
14882
14883 QuotaManager* const quotaManager = QuotaManager::Get();
14884 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"
, 14884); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { *((volatile int*)__null) = 14884; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14885
14886 // Must set this before dispatching otherwise we will race with the IO thread.
14887 mState = State::DatabaseWorkOpen;
14888
14889 QM_TRY(MOZ_TO_RESULT({auto tryResult1182 = (ToResult(quotaManager->IOThread()->
Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); 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(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14891, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14891, "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); }}
14890 quotaManager->IOThread()->Dispatch(this, NS_DISPATCH_NORMAL)),{auto tryResult1182 = (ToResult(quotaManager->IOThread()->
Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); 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(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14891, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14891, "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); }}
14891 NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1182 = (ToResult(quotaManager->IOThread()->
Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); 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(quotaManager->IOThread()->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14891, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 14891, "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); }}
;
14892
14893 return NS_OK;
14894}
14895
14896void FactoryOp::WaitForTransactions() {
14897 AssertIsOnOwningThread();
14898 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"
, 14899); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange || mState == State::WaitingForOtherDatabasesToClose"
")"); do { *((volatile int*)__null) = 14899; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
14899 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"
, 14899); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange || mState == State::WaitingForOtherDatabasesToClose"
")"); do { *((volatile int*)__null) = 14899; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14900 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"
, 14900); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseId.ref().IsEmpty()"
")"); do { *((volatile int*)__null) = 14900; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14901 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"
, 14901); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()"
")"); do { *((volatile int*)__null) = 14901; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14902
14903 mState = State::WaitingForTransactionsToComplete;
14904
14905 RefPtr<WaitForTransactionsHelper> helper =
14906 new WaitForTransactionsHelper(mDatabaseId.ref(), this);
14907 helper->WaitForTransactions();
14908}
14909
14910void FactoryOp::CleanupMetadata() {
14911 AssertIsOnOwningThread();
14912
14913 for (const NotNull<RefPtr<FactoryOp>>& blockingOp : mBlocking) {
14914 blockingOp->MaybeUnblock(*this);
14915 }
14916 mBlocking.Clear();
14917
14918 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"
, 14918); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gFactoryOps"
")"); do { *((volatile int*)__null) = 14918; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14919 gFactoryOps->RemoveElement(this);
14920
14921 // We might get here even after QuotaManagerOpen failed, so we need to check
14922 // if we have a quota manager.
14923 quota::QuotaManager::SafeMaybeRecordQuotaClientShutdownStep(
14924 quota::Client::IDB, "An element was removed from gFactoryOps"_ns);
14925
14926 // Match the IncreaseBusyCount in AllocPBackgroundIDBFactoryRequestParent().
14927 DecreaseBusyCount();
14928}
14929
14930void FactoryOp::FinishSendResults() {
14931 AssertIsOnOwningThread();
14932 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"
, 14932); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::SendingResults"
")"); do { *((volatile int*)__null) = 14932; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14933 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"
, 14933); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFactory" ")"
); do { *((volatile int*)__null) = 14933; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
14934
14935 mState = State::Completed;
14936
14937 // Make sure to release the factory on this thread.
14938 mFactory = nullptr;
14939}
14940
14941nsresult FactoryOp::SendVersionChangeMessages(
14942 DatabaseActorInfo* aDatabaseActorInfo, Maybe<Database&> aOpeningDatabase,
14943 uint64_t aOldVersion, const Maybe<uint64_t>& aNewVersion) {
14944 AssertIsOnOwningThread();
14945 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"
, 14945); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseActorInfo"
")"); do { *((volatile int*)__null) = 14945; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14946 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"
, 14946); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange"
")"); do { *((volatile int*)__null) = 14946; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14947 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"
, 14947); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()"
")"); do { *((volatile int*)__null) = 14947; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14948 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"
, 14948); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()"
")"); do { *((volatile int*)__null) = 14948; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
14949
14950 const uint32_t expectedCount = mDeleting ? 0 : 1;
14951 const uint32_t liveCount = aDatabaseActorInfo->mLiveDatabases.Length();
14952 if (liveCount > expectedCount) {
14953 nsTArray<MaybeBlockedDatabaseInfo> maybeBlockedDatabases;
14954 for (const auto& database : aDatabaseActorInfo->mLiveDatabases) {
14955 if ((!aOpeningDatabase || database.get() != &aOpeningDatabase.ref()) &&
14956 !database->IsClosed() &&
14957 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"
, 14959)
14958 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"
, 14959)
14959 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"
, 14959)
) {
14960 return NS_ERROR_OUT_OF_MEMORY;
14961 }
14962 }
14963
14964 mMaybeBlockedDatabases = std::move(maybeBlockedDatabases);
14965 }
14966
14967 // We don't want to wait forever if we were not able to send the
14968 // message.
14969 mMaybeBlockedDatabases.RemoveLastElements(
14970 mMaybeBlockedDatabases.end() -
14971 std::remove_if(mMaybeBlockedDatabases.begin(),
14972 mMaybeBlockedDatabases.end(),
14973 [aOldVersion, &aNewVersion](auto& maybeBlockedDatabase) {
14974 return !maybeBlockedDatabase->SendVersionChange(
14975 aOldVersion, aNewVersion);
14976 }));
14977
14978 return NS_OK;
14979} // namespace indexedDB
14980
14981bool FactoryOp::MustWaitFor(const FactoryOp& aExistingOp) {
14982 AssertIsOnOwningThread();
14983
14984 // If the persistence types don't overlap, the op can proceed.
14985 if (aExistingOp.mPersistenceType != mPersistenceType) {
14986 return false;
14987 }
14988
14989 // If the origins don't overlap, the op can proceed.
14990 if (aExistingOp.mOriginMetadata.mOrigin != mOriginMetadata.mOrigin) {
14991 return false;
14992 }
14993
14994 // If the database ids don't overlap, the op can proceed.
14995 if (!aExistingOp.mDatabaseId.isNothing() && !mDatabaseId.isNothing() &&
14996 aExistingOp.mDatabaseId.ref() != mDatabaseId.ref()) {
14997 return false;
14998 }
14999
15000 return true;
15001}
15002
15003// Run() assumes that the caller holds a strong reference to the object that
15004// can't be cleared while Run() is being executed.
15005// So if you call Run() directly (as opposed to dispatching to an event queue)
15006// you need to make sure there's such a reference.
15007// See bug 1356824 for more details.
15008NS_IMETHODIMPnsresult
15009FactoryOp::Run() {
15010 const auto handleError = [this](const nsresult rv) {
15011 if (mState != State::SendingResults) {
15012 SetFailureCodeIfUnset(rv);
15013
15014 // Must set mState before dispatching otherwise we will race with the
15015 // owning thread.
15016 mState = State::SendingResults;
15017
15018 if (IsOnOwningThread()) {
15019 SendResults();
15020 } else {
15021 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))
), 1)))), 1))) { } else { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15022); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
")"); do { *((volatile int*)__null) = 15022; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
15022 DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))
), 1)))), 1))) { } else { do { static_assert( mozilla::detail
::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15022); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
")"); do { *((volatile int*)__null) = 15022; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
15023 }
15024 }
15025 };
15026
15027 switch (mState) {
15028 case State::Initial:
15029 QM_WARNONLY_TRY(MOZ_TO_RESULT(Open()), handleError){auto tryResult1183 = (ToResult(Open())); 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(Open())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15029, mozilla::dom::quota::Severity::Warning); handleError
(tryTempError); }}
;
15030 break;
15031
15032 case State::DirectoryWorkOpen:
15033 QM_WARNONLY_TRY(MOZ_TO_RESULT(DoDirectoryWork()), handleError){auto tryResult1184 = (ToResult(DoDirectoryWork())); 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(DoDirectoryWork())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15033, mozilla::dom::quota::Severity::Warning); handleError
(tryTempError); }}
;
15034 break;
15035
15036 case State::DirectoryWorkDone:
15037 QM_WARNONLY_TRY(MOZ_TO_RESULT(DirectoryWorkDone()), handleError){auto tryResult1185 = (ToResult(DirectoryWorkDone())); 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(DirectoryWorkDone())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15037, mozilla::dom::quota::Severity::Warning); handleError
(tryTempError); }}
;
15038 break;
15039
15040 case State::DatabaseOpenPending:
15041 QM_WARNONLY_TRY(MOZ_TO_RESULT(DatabaseOpen()), handleError){auto tryResult1186 = (ToResult(DatabaseOpen())); 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(DatabaseOpen())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15041, mozilla::dom::quota::Severity::Warning); handleError
(tryTempError); }}
;
15042 break;
15043
15044 case State::DatabaseWorkOpen:
15045 QM_WARNONLY_TRY(MOZ_TO_RESULT(DoDatabaseWork()), handleError){auto tryResult1187 = (ToResult(DoDatabaseWork())); 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(DoDatabaseWork())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15045, mozilla::dom::quota::Severity::Warning); handleError
(tryTempError); }}
;
15046 break;
15047
15048 case State::BeginVersionChange:
15049 QM_WARNONLY_TRY(MOZ_TO_RESULT(BeginVersionChange()), handleError){auto tryResult1188 = (ToResult(BeginVersionChange())); 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(BeginVersionChange())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15049, mozilla::dom::quota::Severity::Warning); handleError
(tryTempError); }}
;
15050 break;
15051
15052 case State::WaitingForTransactionsToComplete:
15053 QM_WARNONLY_TRY(MOZ_TO_RESULT(DispatchToWorkThread()), handleError){auto tryResult1189 = (ToResult(DispatchToWorkThread())); 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(DispatchToWorkThread())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15053, mozilla::dom::quota::Severity::Warning); handleError
(tryTempError); }}
;
15054 break;
15055
15056 case State::SendingResults:
15057 SendResults();
15058 break;
15059
15060 default:
15061 MOZ_CRASH("Bad state!")do { do { } while (false); MOZ_ReportCrash("" "Bad state!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15061); AnnotateMozCrashReason("MOZ_CRASH(" "Bad state!" ")"
); do { *((volatile int*)__null) = 15061; __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
15062 }
15063
15064 return NS_OK;
15065}
15066
15067void FactoryOp::DirectoryLockAcquired(DirectoryLock* aLock) {
15068 AssertIsOnOwningThread();
15069 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"
, 15069); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLock" ")"
); do { *((volatile int*)__null) = 15069; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
15070 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"
, 15070); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending"
")"); do { *((volatile int*)__null) = 15070; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15071 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"
, 15071); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLock"
")"); do { *((volatile int*)__null) = 15071; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15072
15073 mDirectoryLock = aLock;
15074
15075 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"
, 15075); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock->Id() >= 0"
")"); do { *((volatile int*)__null) = 15075; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15076 mDirectoryLockId = mDirectoryLock->Id();
15077
15078 auto cleanupAndReturn = [self = RefPtr(this)](const nsresult rv) {
15079 self->SetFailureCodeIfUnset(rv);
15080
15081 // The caller holds a strong reference to us, no need for a self reference
15082 // before calling Run().
15083
15084 self->mState = State::SendingResults;
15085 MOZ_ALWAYS_SUCCEEDS(self->Run())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(self->Run())), 1)))), 1))) { } else { do { static_assert(
mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "NS_SUCCEEDED(self->Run())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15085); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(self->Run())" ")"); do { *((volatile int
*)__null) = 15085; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); } } while (false)
;
15086 };
15087
15088 if (mDirectoryLock->Invalidated()) {
15089 return cleanupAndReturn(NS_ERROR_DOM_INDEXEDDB_ABORT_ERR);
15090 }
15091
15092 QM_WARNONLY_TRY(MOZ_TO_RESULT(DirectoryOpen()), cleanupAndReturn){auto tryResult1190 = (ToResult(DirectoryOpen())); 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("ToResult(DirectoryOpen())", tryTempError,
"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15092, mozilla::dom::quota::Severity::Warning); cleanupAndReturn
(tryTempError); }}
;
15093}
15094
15095void FactoryOp::DirectoryLockFailed() {
15096 AssertIsOnOwningThread();
15097 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"
, 15097); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending"
")"); do { *((volatile int*)__null) = 15097; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15098 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"
, 15098); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLock"
")"); do { *((volatile int*)__null) = 15098; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15099
15100 if (!HasFailed()) {
15101 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15101, "UnknownErr")
;
15102 SetFailureCode(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR);
15103 }
15104
15105 // The caller holds a strong reference to us, no need for a self reference
15106 // before calling Run().
15107
15108 mState = State::SendingResults;
15109 MOZ_ALWAYS_SUCCEEDS(Run())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(Run())), 1)))), 1))) { } else { do { static_assert( mozilla::
detail::AssertionConditionType<decltype(false)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "NS_SUCCEEDED(Run())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15109); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(Run())" ")"); do { *((volatile int*)__null
) = 15109; __attribute__((nomerge)) ::abort(); } while (false
); } } while (false); } } while (false)
;
15110}
15111
15112nsresult FactoryRequestOp::DoDirectoryWork() {
15113 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"
, 15113); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable."
")"); do { *((volatile int*)__null) = 15113; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
15114}
15115
15116void FactoryRequestOp::ActorDestroy(ActorDestroyReason aWhy) {
15117 AssertIsOnBackgroundThread();
15118
15119 NoteActorDestroyed();
15120}
15121
15122OpenDatabaseOp::OpenDatabaseOp(SafeRefPtr<Factory> aFactory,
15123 const Maybe<ContentParentId>& aContentParentId,
15124 const CommonFactoryRequestParams& aParams)
15125 : FactoryRequestOp(std::move(aFactory), aContentParentId, aParams,
15126 /* aDeleting */ false),
15127 mMetadata(MakeSafeRefPtr<FullDatabaseMetadata>(aParams.metadata())),
15128 mRequestedVersion(aParams.metadata().version()),
15129 mVersionChangeOp(nullptr),
15130 mTelemetryId(0) {}
15131
15132void OpenDatabaseOp::ActorDestroy(ActorDestroyReason aWhy) {
15133 AssertIsOnOwningThread();
15134
15135 FactoryRequestOp::ActorDestroy(aWhy);
15136
15137 if (mVersionChangeOp) {
15138 mVersionChangeOp->NoteActorDestroyed();
15139 }
15140}
15141
15142nsresult OpenDatabaseOp::DatabaseOpen() {
15143 AssertIsOnOwningThread();
15144 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"
, 15144); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseOpenPending"
")"); do { *((volatile int*)__null) = 15144; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15145
15146 nsresult rv = SendToIOThread();
15147 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"
, 15147)
) {
15148 return rv;
15149 }
15150
15151 return NS_OK;
15152}
15153
15154nsresult OpenDatabaseOp::DoDatabaseWork() {
15155 AssertIsOnIOThread();
15156 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"
, 15156); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkOpen"
")"); do { *((volatile int*)__null) = 15156; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15157
15158 AUTO_PROFILER_LABEL("OpenDatabaseOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject15158( "OpenDatabaseOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
15159
15160 QM_TRY(OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread()),{auto tryResult1191 = (OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread
())); static_assert(std::is_empty_v<typename decltype(tryResult1191
)::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr
()), 0))) { auto tryTempError = tryResult1191.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15161, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15161, "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); }}
15161 NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1191 = (OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread
())); static_assert(std::is_empty_v<typename decltype(tryResult1191
)::ok_type>); if ((__builtin_expect(!!(tryResult1191.isErr
()), 0))) { auto tryTempError = tryResult1191.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15161, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15161, "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); }}
;
15162
15163 if (!OperationMayProceed()) {
15164 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15164, "UnknownErr")
;
15165 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
15166 }
15167
15168 const nsAString& databaseName = mCommonParams.metadata().name();
15169 const PersistenceType persistenceType =
15170 mCommonParams.metadata().persistenceType();
15171
15172 QuotaManager* const quotaManager = QuotaManager::Get();
15173 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"
, 15173); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { *((volatile int*)__null) = 15173; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15174
15175 QM_TRY_INSPECT(auto tryResult1195 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile
>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT
) { {auto tryResult1192 = (quotaManager->EnsurePersistentOriginIsInitializedInternal
( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1192.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15182, mozilla::dom::quota::Severity::Error); } return tryResult1192
;}; } {auto tryResult1193 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal
())); static_assert(std::is_empty_v<typename decltype(tryResult1193
)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())"
, tryResult1193.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15186, mozilla::dom::quota::Severity::Error); return tryResult1193
.propagateErr(); }}; {auto tryResult1194 = (quotaManager->
EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata))
; if ((__builtin_expect(!!(tryResult1194.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1194.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15188, mozilla::dom::quota::Severity::Error); } return tryResult1194
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla
::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1192 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult1192.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15182, mozilla::dom::quota::Severity::Error); } return tryResult1192;}; } {auto tryResult1193 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())); static_assert(std::is_empty_v<typename decltype(tryResult1193)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())\", tryResult1193.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15186, mozilla::dom::quota::Severity::Error); return tryResult1193.propagateErr(); }}; {auto tryResult1194 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1194.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult1194.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15188, mozilla::dom::quota::Severity::Error); } return tryResult1194;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1195.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15190, mozilla::dom::quota::Severity::Error); return tryResult1195
.propagateErr(); } const auto& dbDirectory = tryResult1195
.inspect();
15176 const auto& dbDirectory,auto tryResult1195 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile
>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT
) { {auto tryResult1192 = (quotaManager->EnsurePersistentOriginIsInitializedInternal
( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1192.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15182, mozilla::dom::quota::Severity::Error); } return tryResult1192
;}; } {auto tryResult1193 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal
())); static_assert(std::is_empty_v<typename decltype(tryResult1193
)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())"
, tryResult1193.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15186, mozilla::dom::quota::Severity::Error); return tryResult1193
.propagateErr(); }}; {auto tryResult1194 = (quotaManager->
EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata))
; if ((__builtin_expect(!!(tryResult1194.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1194.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15188, mozilla::dom::quota::Severity::Error); } return tryResult1194
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla
::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1192 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult1192.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15182, mozilla::dom::quota::Severity::Error); } return tryResult1192;}; } {auto tryResult1193 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())); static_assert(std::is_empty_v<typename decltype(tryResult1193)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())\", tryResult1193.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15186, mozilla::dom::quota::Severity::Error); return tryResult1193.propagateErr(); }}; {auto tryResult1194 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1194.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult1194.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15188, mozilla::dom::quota::Severity::Error); } return tryResult1194;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1195.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15190, mozilla::dom::quota::Severity::Error); return tryResult1195
.propagateErr(); } const auto& dbDirectory = tryResult1195
.inspect();
15177 ([persistenceType, &quotaManager, this]()auto tryResult1195 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile
>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT
) { {auto tryResult1192 = (quotaManager->EnsurePersistentOriginIsInitializedInternal
( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1192.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15182, mozilla::dom::quota::Severity::Error); } return tryResult1192
;}; } {auto tryResult1193 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal
())); static_assert(std::is_empty_v<typename decltype(tryResult1193
)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())"
, tryResult1193.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15186, mozilla::dom::quota::Severity::Error); return tryResult1193
.propagateErr(); }}; {auto tryResult1194 = (quotaManager->
EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata))
; if ((__builtin_expect(!!(tryResult1194.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1194.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15188, mozilla::dom::quota::Severity::Error); } return tryResult1194
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla
::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1192 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult1192.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15182, mozilla::dom::quota::Severity::Error); } return tryResult1192;}; } {auto tryResult1193 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())); static_assert(std::is_empty_v<typename decltype(tryResult1193)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())\", tryResult1193.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15186, mozilla::dom::quota::Severity::Error); return tryResult1193.propagateErr(); }}; {auto tryResult1194 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1194.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult1194.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15188, mozilla::dom::quota::Severity::Error); } return tryResult1194;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1195.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15190, mozilla::dom::quota::Severity::Error); return tryResult1195
.propagateErr(); } const auto& dbDirectory = tryResult1195
.inspect();
15178 -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> {auto tryResult1195 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile
>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT
) { {auto tryResult1192 = (quotaManager->EnsurePersistentOriginIsInitializedInternal
( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1192.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15182, mozilla::dom::quota::Severity::Error); } return tryResult1192
;}; } {auto tryResult1193 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal
())); static_assert(std::is_empty_v<typename decltype(tryResult1193
)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())"
, tryResult1193.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15186, mozilla::dom::quota::Severity::Error); return tryResult1193
.propagateErr(); }}; {auto tryResult1194 = (quotaManager->
EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata))
; if ((__builtin_expect(!!(tryResult1194.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1194.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15188, mozilla::dom::quota::Severity::Error); } return tryResult1194
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla
::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1192 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult1192.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15182, mozilla::dom::quota::Severity::Error); } return tryResult1192;}; } {auto tryResult1193 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())); static_assert(std::is_empty_v<typename decltype(tryResult1193)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())\", tryResult1193.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15186, mozilla::dom::quota::Severity::Error); return tryResult1193.propagateErr(); }}; {auto tryResult1194 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1194.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult1194.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15188, mozilla::dom::quota::Severity::Error); } return tryResult1194;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1195.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15190, mozilla::dom::quota::Severity::Error); return tryResult1195
.propagateErr(); } const auto& dbDirectory = tryResult1195
.inspect();
15179 if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) {auto tryResult1195 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile
>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT
) { {auto tryResult1192 = (quotaManager->EnsurePersistentOriginIsInitializedInternal
( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1192.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15182, mozilla::dom::quota::Severity::Error); } return tryResult1192
;}; } {auto tryResult1193 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal
())); static_assert(std::is_empty_v<typename decltype(tryResult1193
)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())"
, tryResult1193.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15186, mozilla::dom::quota::Severity::Error); return tryResult1193
.propagateErr(); }}; {auto tryResult1194 = (quotaManager->
EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata))
; if ((__builtin_expect(!!(tryResult1194.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1194.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15188, mozilla::dom::quota::Severity::Error); } return tryResult1194
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla
::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1192 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult1192.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15182, mozilla::dom::quota::Severity::Error); } return tryResult1192;}; } {auto tryResult1193 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())); static_assert(std::is_empty_v<typename decltype(tryResult1193)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())\", tryResult1193.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15186, mozilla::dom::quota::Severity::Error); return tryResult1193.propagateErr(); }}; {auto tryResult1194 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1194.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult1194.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15188, mozilla::dom::quota::Severity::Error); } return tryResult1194;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1195.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15190, mozilla::dom::quota::Severity::Error); return tryResult1195
.propagateErr(); } const auto& dbDirectory = tryResult1195
.inspect();
15180 QM_TRY_RETURN(auto tryResult1195 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile
>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT
) { {auto tryResult1192 = (quotaManager->EnsurePersistentOriginIsInitializedInternal
( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1192.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15182, mozilla::dom::quota::Severity::Error); } return tryResult1192
;}; } {auto tryResult1193 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal
())); static_assert(std::is_empty_v<typename decltype(tryResult1193
)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())"
, tryResult1193.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15186, mozilla::dom::quota::Severity::Error); return tryResult1193
.propagateErr(); }}; {auto tryResult1194 = (quotaManager->
EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata))
; if ((__builtin_expect(!!(tryResult1194.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1194.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15188, mozilla::dom::quota::Severity::Error); } return tryResult1194
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla
::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1192 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult1192.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15182, mozilla::dom::quota::Severity::Error); } return tryResult1192;}; } {auto tryResult1193 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())); static_assert(std::is_empty_v<typename decltype(tryResult1193)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())\", tryResult1193.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15186, mozilla::dom::quota::Severity::Error); return tryResult1193.propagateErr(); }}; {auto tryResult1194 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1194.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult1194.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15188, mozilla::dom::quota::Severity::Error); } return tryResult1194;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1195.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15190, mozilla::dom::quota::Severity::Error); return tryResult1195
.propagateErr(); } const auto& dbDirectory = tryResult1195
.inspect();
15181 quotaManager->EnsurePersistentOriginIsInitializedInternal(auto tryResult1195 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile
>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT
) { {auto tryResult1192 = (quotaManager->EnsurePersistentOriginIsInitializedInternal
( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1192.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15182, mozilla::dom::quota::Severity::Error); } return tryResult1192
;}; } {auto tryResult1193 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal
())); static_assert(std::is_empty_v<typename decltype(tryResult1193
)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())"
, tryResult1193.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15186, mozilla::dom::quota::Severity::Error); return tryResult1193
.propagateErr(); }}; {auto tryResult1194 = (quotaManager->
EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata))
; if ((__builtin_expect(!!(tryResult1194.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1194.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15188, mozilla::dom::quota::Severity::Error); } return tryResult1194
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla
::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1192 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult1192.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15182, mozilla::dom::quota::Severity::Error); } return tryResult1192;}; } {auto tryResult1193 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())); static_assert(std::is_empty_v<typename decltype(tryResult1193)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())\", tryResult1193.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15186, mozilla::dom::quota::Severity::Error); return tryResult1193.propagateErr(); }}; {auto tryResult1194 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1194.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult1194.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15188, mozilla::dom::quota::Severity::Error); } return tryResult1194;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1195.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15190, mozilla::dom::quota::Severity::Error); return tryResult1195
.propagateErr(); } const auto& dbDirectory = tryResult1195
.inspect();
15182 mOriginMetadata));auto tryResult1195 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile
>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT
) { {auto tryResult1192 = (quotaManager->EnsurePersistentOriginIsInitializedInternal
( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1192.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15182, mozilla::dom::quota::Severity::Error); } return tryResult1192
;}; } {auto tryResult1193 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal
())); static_assert(std::is_empty_v<typename decltype(tryResult1193
)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())"
, tryResult1193.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15186, mozilla::dom::quota::Severity::Error); return tryResult1193
.propagateErr(); }}; {auto tryResult1194 = (quotaManager->
EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata))
; if ((__builtin_expect(!!(tryResult1194.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1194.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15188, mozilla::dom::quota::Severity::Error); } return tryResult1194
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla
::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1192 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult1192.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15182, mozilla::dom::quota::Severity::Error); } return tryResult1192;}; } {auto tryResult1193 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())); static_assert(std::is_empty_v<typename decltype(tryResult1193)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())\", tryResult1193.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15186, mozilla::dom::quota::Severity::Error); return tryResult1193.propagateErr(); }}; {auto tryResult1194 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1194.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult1194.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15188, mozilla::dom::quota::Severity::Error); } return tryResult1194;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1195.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15190, mozilla::dom::quota::Severity::Error); return tryResult1195
.propagateErr(); } const auto& dbDirectory = tryResult1195
.inspect();
15183 }auto tryResult1195 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile
>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT
) { {auto tryResult1192 = (quotaManager->EnsurePersistentOriginIsInitializedInternal
( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1192.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15182, mozilla::dom::quota::Severity::Error); } return tryResult1192
;}; } {auto tryResult1193 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal
())); static_assert(std::is_empty_v<typename decltype(tryResult1193
)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())"
, tryResult1193.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15186, mozilla::dom::quota::Severity::Error); return tryResult1193
.propagateErr(); }}; {auto tryResult1194 = (quotaManager->
EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata))
; if ((__builtin_expect(!!(tryResult1194.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1194.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15188, mozilla::dom::quota::Severity::Error); } return tryResult1194
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla
::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1192 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult1192.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15182, mozilla::dom::quota::Severity::Error); } return tryResult1192;}; } {auto tryResult1193 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())); static_assert(std::is_empty_v<typename decltype(tryResult1193)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())\", tryResult1193.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15186, mozilla::dom::quota::Severity::Error); return tryResult1193.propagateErr(); }}; {auto tryResult1194 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1194.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult1194.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15188, mozilla::dom::quota::Severity::Error); } return tryResult1194;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1195.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15190, mozilla::dom::quota::Severity::Error); return tryResult1195
.propagateErr(); } const auto& dbDirectory = tryResult1195
.inspect();
15184
15185 QM_TRY(MOZ_TO_RESULT(auto tryResult1195 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile
>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT
) { {auto tryResult1192 = (quotaManager->EnsurePersistentOriginIsInitializedInternal
( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1192.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15182, mozilla::dom::quota::Severity::Error); } return tryResult1192
;}; } {auto tryResult1193 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal
())); static_assert(std::is_empty_v<typename decltype(tryResult1193
)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())"
, tryResult1193.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15186, mozilla::dom::quota::Severity::Error); return tryResult1193
.propagateErr(); }}; {auto tryResult1194 = (quotaManager->
EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata))
; if ((__builtin_expect(!!(tryResult1194.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1194.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15188, mozilla::dom::quota::Severity::Error); } return tryResult1194
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla
::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1192 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult1192.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15182, mozilla::dom::quota::Severity::Error); } return tryResult1192;}; } {auto tryResult1193 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())); static_assert(std::is_empty_v<typename decltype(tryResult1193)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())\", tryResult1193.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15186, mozilla::dom::quota::Severity::Error); return tryResult1193.propagateErr(); }}; {auto tryResult1194 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1194.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult1194.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15188, mozilla::dom::quota::Severity::Error); } return tryResult1194;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1195.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15190, mozilla::dom::quota::Severity::Error); return tryResult1195
.propagateErr(); } const auto& dbDirectory = tryResult1195
.inspect();
15186 quotaManager->EnsureTemporaryStorageIsInitializedInternal()));auto tryResult1195 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile
>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT
) { {auto tryResult1192 = (quotaManager->EnsurePersistentOriginIsInitializedInternal
( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1192.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15182, mozilla::dom::quota::Severity::Error); } return tryResult1192
;}; } {auto tryResult1193 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal
())); static_assert(std::is_empty_v<typename decltype(tryResult1193
)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())"
, tryResult1193.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15186, mozilla::dom::quota::Severity::Error); return tryResult1193
.propagateErr(); }}; {auto tryResult1194 = (quotaManager->
EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata))
; if ((__builtin_expect(!!(tryResult1194.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1194.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15188, mozilla::dom::quota::Severity::Error); } return tryResult1194
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla
::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1192 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult1192.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15182, mozilla::dom::quota::Severity::Error); } return tryResult1192;}; } {auto tryResult1193 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())); static_assert(std::is_empty_v<typename decltype(tryResult1193)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())\", tryResult1193.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15186, mozilla::dom::quota::Severity::Error); return tryResult1193.propagateErr(); }}; {auto tryResult1194 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1194.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult1194.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15188, mozilla::dom::quota::Severity::Error); } return tryResult1194;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1195.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15190, mozilla::dom::quota::Severity::Error); return tryResult1195
.propagateErr(); } const auto& dbDirectory = tryResult1195
.inspect();
15187 QM_TRY_RETURN(quotaManager->EnsureTemporaryOriginIsInitializedInternal(auto tryResult1195 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile
>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT
) { {auto tryResult1192 = (quotaManager->EnsurePersistentOriginIsInitializedInternal
( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1192.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15182, mozilla::dom::quota::Severity::Error); } return tryResult1192
;}; } {auto tryResult1193 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal
())); static_assert(std::is_empty_v<typename decltype(tryResult1193
)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())"
, tryResult1193.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15186, mozilla::dom::quota::Severity::Error); return tryResult1193
.propagateErr(); }}; {auto tryResult1194 = (quotaManager->
EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata))
; if ((__builtin_expect(!!(tryResult1194.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1194.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15188, mozilla::dom::quota::Severity::Error); } return tryResult1194
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla
::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1192 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult1192.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15182, mozilla::dom::quota::Severity::Error); } return tryResult1192;}; } {auto tryResult1193 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())); static_assert(std::is_empty_v<typename decltype(tryResult1193)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())\", tryResult1193.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15186, mozilla::dom::quota::Severity::Error); return tryResult1193.propagateErr(); }}; {auto tryResult1194 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1194.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult1194.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15188, mozilla::dom::quota::Severity::Error); } return tryResult1194;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1195.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15190, mozilla::dom::quota::Severity::Error); return tryResult1195
.propagateErr(); } const auto& dbDirectory = tryResult1195
.inspect();
15188 mOriginMetadata));auto tryResult1195 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile
>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT
) { {auto tryResult1192 = (quotaManager->EnsurePersistentOriginIsInitializedInternal
( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1192.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15182, mozilla::dom::quota::Severity::Error); } return tryResult1192
;}; } {auto tryResult1193 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal
())); static_assert(std::is_empty_v<typename decltype(tryResult1193
)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())"
, tryResult1193.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15186, mozilla::dom::quota::Severity::Error); return tryResult1193
.propagateErr(); }}; {auto tryResult1194 = (quotaManager->
EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata))
; if ((__builtin_expect(!!(tryResult1194.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1194.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15188, mozilla::dom::quota::Severity::Error); } return tryResult1194
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla
::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1192 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult1192.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15182, mozilla::dom::quota::Severity::Error); } return tryResult1192;}; } {auto tryResult1193 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())); static_assert(std::is_empty_v<typename decltype(tryResult1193)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())\", tryResult1193.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15186, mozilla::dom::quota::Severity::Error); return tryResult1193.propagateErr(); }}; {auto tryResult1194 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1194.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult1194.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15188, mozilla::dom::quota::Severity::Error); } return tryResult1194;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1195.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15190, mozilla::dom::quota::Severity::Error); return tryResult1195
.propagateErr(); } const auto& dbDirectory = tryResult1195
.inspect();
15189 }()auto tryResult1195 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile
>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT
) { {auto tryResult1192 = (quotaManager->EnsurePersistentOriginIsInitializedInternal
( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1192.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15182, mozilla::dom::quota::Severity::Error); } return tryResult1192
;}; } {auto tryResult1193 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal
())); static_assert(std::is_empty_v<typename decltype(tryResult1193
)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())"
, tryResult1193.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15186, mozilla::dom::quota::Severity::Error); return tryResult1193
.propagateErr(); }}; {auto tryResult1194 = (quotaManager->
EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata))
; if ((__builtin_expect(!!(tryResult1194.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1194.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15188, mozilla::dom::quota::Severity::Error); } return tryResult1194
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla
::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1192 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult1192.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15182, mozilla::dom::quota::Severity::Error); } return tryResult1192;}; } {auto tryResult1193 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())); static_assert(std::is_empty_v<typename decltype(tryResult1193)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())\", tryResult1193.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15186, mozilla::dom::quota::Severity::Error); return tryResult1193.propagateErr(); }}; {auto tryResult1194 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1194.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult1194.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15188, mozilla::dom::quota::Severity::Error); } return tryResult1194;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1195.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15190, mozilla::dom::quota::Severity::Error); return tryResult1195
.propagateErr(); } const auto& dbDirectory = tryResult1195
.inspect();
15190 .map([](const auto& res) { return res.first; })))auto tryResult1195 = (([persistenceType, &quotaManager, this
]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile
>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT
) { {auto tryResult1192 = (quotaManager->EnsurePersistentOriginIsInitializedInternal
( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1192.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15182, mozilla::dom::quota::Severity::Error); } return tryResult1192
;}; } {auto tryResult1193 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal
())); static_assert(std::is_empty_v<typename decltype(tryResult1193
)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())"
, tryResult1193.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15186, mozilla::dom::quota::Severity::Error); return tryResult1193
.propagateErr(); }}; {auto tryResult1194 = (quotaManager->
EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata))
; if ((__builtin_expect(!!(tryResult1194.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1194.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15188, mozilla::dom::quota::Severity::Error); } return tryResult1194
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla
::dom::quota::HandleError("([persistenceType, &quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1192 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult1192.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15182, mozilla::dom::quota::Severity::Error); } return tryResult1192;}; } {auto tryResult1193 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())); static_assert(std::is_empty_v<typename decltype(tryResult1193)::ok_type>); if ((__builtin_expect(!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())\", tryResult1193.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15186, mozilla::dom::quota::Severity::Error); return tryResult1193.propagateErr(); }}; {auto tryResult1194 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1194.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult1194.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15188, mozilla::dom::quota::Severity::Error); } return tryResult1194;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1195.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15190, mozilla::dom::quota::Severity::Error); return tryResult1195
.propagateErr(); } const auto& dbDirectory = tryResult1195
.inspect();
;
15191
15192 QM_TRY(MOZ_TO_RESULT({auto tryResult1196 = (ToResult(dbDirectory->Append(static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1196
)::ok_type>); if ((__builtin_expect(!!(tryResult1196.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbDirectory->Append(static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15193, mozilla::dom::quota::Severity::Error); return tryResult1196
.propagateErr(); }}
15193 dbDirectory->Append(NS_LITERAL_STRING_FROM_CSTRING(IDB_DIRECTORY_NAME)))){auto tryResult1196 = (ToResult(dbDirectory->Append(static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1196
)::ok_type>); if ((__builtin_expect(!!(tryResult1196.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbDirectory->Append(static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1196.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15193, mozilla::dom::quota::Severity::Error); return tryResult1196
.propagateErr(); }}
;
15194
15195 {
15196 QM_TRY_INSPECT(const bool& exists,auto tryResult1197 = (::mozilla::ToResultInvokeMember( (dbDirectory
), &::mozilla::detail::DerefedType<decltype(dbDirectory
)>::Exists)); if ((__builtin_expect(!!(tryResult1197.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (dbDirectory), &::mozilla::detail::DerefedType<decltype(dbDirectory)>::Exists)"
, tryResult1197.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15197, mozilla::dom::quota::Severity::Error); return tryResult1197
.propagateErr(); } const bool& exists = tryResult1197.inspect
();
15197 MOZ_TO_RESULT_INVOKE_MEMBER(dbDirectory, Exists))auto tryResult1197 = (::mozilla::ToResultInvokeMember( (dbDirectory
), &::mozilla::detail::DerefedType<decltype(dbDirectory
)>::Exists)); if ((__builtin_expect(!!(tryResult1197.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (dbDirectory), &::mozilla::detail::DerefedType<decltype(dbDirectory)>::Exists)"
, tryResult1197.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15197, mozilla::dom::quota::Severity::Error); return tryResult1197
.propagateErr(); } const bool& exists = tryResult1197.inspect
();
;
15198
15199 if (!exists) {
15200 QM_TRY(MOZ_TO_RESULT(dbDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))){auto tryResult1198 = (ToResult(dbDirectory->Create(nsIFile
::DIRECTORY_TYPE, 0755))); static_assert(std::is_empty_v<typename
decltype(tryResult1198)::ok_type>); if ((__builtin_expect
(!!(tryResult1198.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(dbDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))"
, tryResult1198.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15200, mozilla::dom::quota::Severity::Error); return tryResult1198
.propagateErr(); }}
;
15201 }
15202#ifdef DEBUG1
15203 else {
15204 bool isDirectory;
15205 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"
, 15205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(dbDirectory->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 15205; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15206 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"
, 15206); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 15206; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15207 }
15208#endif
15209 }
15210
15211 const auto databaseFilenameBase =
15212 GetDatabaseFilenameBase(databaseName, mOriginMetadata.mIsPrivate);
15213
15214 QM_TRY_INSPECT(const auto& markerFile,auto tryResult1199 = (CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix
+ databaseFilenameBase)); if ((__builtin_expect(!!(tryResult1199
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix + databaseFilenameBase)"
, tryResult1199.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15216, mozilla::dom::quota::Severity::Error); return tryResult1199
.propagateErr(); } const auto& markerFile = tryResult1199
.inspect();
15215 CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix +auto tryResult1199 = (CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix
+ databaseFilenameBase)); if ((__builtin_expect(!!(tryResult1199
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix + databaseFilenameBase)"
, tryResult1199.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15216, mozilla::dom::quota::Severity::Error); return tryResult1199
.propagateErr(); } const auto& markerFile = tryResult1199
.inspect();
15216 databaseFilenameBase))auto tryResult1199 = (CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix
+ databaseFilenameBase)); if ((__builtin_expect(!!(tryResult1199
.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix + databaseFilenameBase)"
, tryResult1199.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15216, mozilla::dom::quota::Severity::Error); return tryResult1199
.propagateErr(); } const auto& markerFile = tryResult1199
.inspect();
;
15217
15218 QM_TRY_INSPECT(const bool& exists,auto tryResult1200 = (::mozilla::ToResultInvokeMember( (markerFile
), &::mozilla::detail::DerefedType<decltype(markerFile
)>::Exists)); if ((__builtin_expect(!!(tryResult1200.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (markerFile), &::mozilla::detail::DerefedType<decltype(markerFile)>::Exists)"
, tryResult1200.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15219, mozilla::dom::quota::Severity::Error); return tryResult1200
.propagateErr(); } const bool& exists = tryResult1200.inspect
();
15219 MOZ_TO_RESULT_INVOKE_MEMBER(markerFile, Exists))auto tryResult1200 = (::mozilla::ToResultInvokeMember( (markerFile
), &::mozilla::detail::DerefedType<decltype(markerFile
)>::Exists)); if ((__builtin_expect(!!(tryResult1200.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (markerFile), &::mozilla::detail::DerefedType<decltype(markerFile)>::Exists)"
, tryResult1200.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15219, mozilla::dom::quota::Severity::Error); return tryResult1200
.propagateErr(); } const bool& exists = tryResult1200.inspect
();
;
15220
15221 if (exists) {
15222 // Delete the database and directroy since they should be deleted in
15223 // previous operation.
15224 // Note: only update usage to the QuotaManager when mEnforcingQuota == true
15225 QM_TRY(MOZ_TO_RESULT(RemoveDatabaseFilesAndDirectory({auto tryResult1201 = (ToResult(RemoveDatabaseFilesAndDirectory
( *dbDirectory, databaseFilenameBase, mEnforcingQuota ? quotaManager
: nullptr, persistenceType, mOriginMetadata, databaseName)))
; static_assert(std::is_empty_v<typename decltype(tryResult1201
)::ok_type>); if ((__builtin_expect(!!(tryResult1201.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *dbDirectory, databaseFilenameBase, mEnforcingQuota ? quotaManager : nullptr, persistenceType, mOriginMetadata, databaseName))"
, tryResult1201.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15228, mozilla::dom::quota::Severity::Error); return tryResult1201
.propagateErr(); }}
15226 *dbDirectory, databaseFilenameBase,{auto tryResult1201 = (ToResult(RemoveDatabaseFilesAndDirectory
( *dbDirectory, databaseFilenameBase, mEnforcingQuota ? quotaManager
: nullptr, persistenceType, mOriginMetadata, databaseName)))
; static_assert(std::is_empty_v<typename decltype(tryResult1201
)::ok_type>); if ((__builtin_expect(!!(tryResult1201.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *dbDirectory, databaseFilenameBase, mEnforcingQuota ? quotaManager : nullptr, persistenceType, mOriginMetadata, databaseName))"
, tryResult1201.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15228, mozilla::dom::quota::Severity::Error); return tryResult1201
.propagateErr(); }}
15227 mEnforcingQuota ? quotaManager : nullptr, persistenceType,{auto tryResult1201 = (ToResult(RemoveDatabaseFilesAndDirectory
( *dbDirectory, databaseFilenameBase, mEnforcingQuota ? quotaManager
: nullptr, persistenceType, mOriginMetadata, databaseName)))
; static_assert(std::is_empty_v<typename decltype(tryResult1201
)::ok_type>); if ((__builtin_expect(!!(tryResult1201.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *dbDirectory, databaseFilenameBase, mEnforcingQuota ? quotaManager : nullptr, persistenceType, mOriginMetadata, databaseName))"
, tryResult1201.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15228, mozilla::dom::quota::Severity::Error); return tryResult1201
.propagateErr(); }}
15228 mOriginMetadata, databaseName))){auto tryResult1201 = (ToResult(RemoveDatabaseFilesAndDirectory
( *dbDirectory, databaseFilenameBase, mEnforcingQuota ? quotaManager
: nullptr, persistenceType, mOriginMetadata, databaseName)))
; static_assert(std::is_empty_v<typename decltype(tryResult1201
)::ok_type>); if ((__builtin_expect(!!(tryResult1201.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *dbDirectory, databaseFilenameBase, mEnforcingQuota ? quotaManager : nullptr, persistenceType, mOriginMetadata, databaseName))"
, tryResult1201.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15228, mozilla::dom::quota::Severity::Error); return tryResult1201
.propagateErr(); }}
;
15229 }
15230
15231 QM_TRY_INSPECT(auto tryResult1202 = (CloneFileAndAppend(*dbDirectory, databaseFilenameBase
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1202.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kSQLiteSuffix)"
, tryResult1202.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15233, mozilla::dom::quota::Severity::Error); return tryResult1202
.propagateErr(); } const auto& dbFile = tryResult1202.inspect
();
15232 const auto& dbFile,auto tryResult1202 = (CloneFileAndAppend(*dbDirectory, databaseFilenameBase
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1202.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kSQLiteSuffix)"
, tryResult1202.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15233, mozilla::dom::quota::Severity::Error); return tryResult1202
.propagateErr(); } const auto& dbFile = tryResult1202.inspect
();
15233 CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kSQLiteSuffix))auto tryResult1202 = (CloneFileAndAppend(*dbDirectory, databaseFilenameBase
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1202.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kSQLiteSuffix)"
, tryResult1202.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15233, mozilla::dom::quota::Severity::Error); return tryResult1202
.propagateErr(); } const auto& dbFile = tryResult1202.inspect
();
;
15234
15235 mTelemetryId = TelemetryIdForFile(dbFile);
15236
15237#ifdef DEBUG1
15238 {
15239 QM_TRY_INSPECT(auto tryResult1203 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(
tryResult1203.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1203.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15241, mozilla::dom::quota::Severity::Error); return tryResult1203
.propagateErr(); } const auto& databaseFilePath = tryResult1203
.inspect();
15240 const auto& databaseFilePath,auto tryResult1203 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(
tryResult1203.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1203.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15241, mozilla::dom::quota::Severity::Error); return tryResult1203
.propagateErr(); } const auto& databaseFilePath = tryResult1203
.inspect();
15241 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, dbFile, GetPath))auto tryResult1203 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(
tryResult1203.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1203.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15241, mozilla::dom::quota::Severity::Error); return tryResult1203
.propagateErr(); } const auto& databaseFilePath = tryResult1203
.inspect();
;
15242
15243 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"
, 15243); AnnotateMozCrashReason("MOZ_ASSERT" "(" "databaseFilePath == mDatabaseFilePath.ref()"
")"); do { *((volatile int*)__null) = 15243; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15244 }
15245#endif
15246
15247 QM_TRY_INSPECT(auto tryResult1204 = (CloneFileAndAppend(*dbDirectory, databaseFilenameBase
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kFileManagerDirectoryNameSuffix)"
, tryResult1204.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15250, mozilla::dom::quota::Severity::Error); return tryResult1204
.propagateErr(); } const auto& fmDirectory = tryResult1204
.inspect();
15248 const auto& fmDirectory,auto tryResult1204 = (CloneFileAndAppend(*dbDirectory, databaseFilenameBase
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kFileManagerDirectoryNameSuffix)"
, tryResult1204.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15250, mozilla::dom::quota::Severity::Error); return tryResult1204
.propagateErr(); } const auto& fmDirectory = tryResult1204
.inspect();
15249 CloneFileAndAppend(*dbDirectory, databaseFilenameBase +auto tryResult1204 = (CloneFileAndAppend(*dbDirectory, databaseFilenameBase
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kFileManagerDirectoryNameSuffix)"
, tryResult1204.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15250, mozilla::dom::quota::Severity::Error); return tryResult1204
.propagateErr(); } const auto& fmDirectory = tryResult1204
.inspect();
15250 kFileManagerDirectoryNameSuffix))auto tryResult1204 = (CloneFileAndAppend(*dbDirectory, databaseFilenameBase
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*dbDirectory, databaseFilenameBase + kFileManagerDirectoryNameSuffix)"
, tryResult1204.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15250, mozilla::dom::quota::Severity::Error); return tryResult1204
.propagateErr(); } const auto& fmDirectory = tryResult1204
.inspect();
;
15251
15252 IndexedDatabaseManager* const idm = IndexedDatabaseManager::Get();
15253 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"
, 15253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "idm" ")");
do { *((volatile int*)__null) = 15253; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
15254
15255 SafeRefPtr<DatabaseFileManager> fileManager = idm->GetFileManager(
15256 persistenceType, mOriginMetadata.mOrigin, databaseName);
15257
15258 if (!fileManager) {
15259 fileManager = MakeSafeRefPtr<DatabaseFileManager>(
15260 persistenceType, mOriginMetadata, databaseName, mDatabaseId.ref(),
15261 mDatabaseFilePath.ref(), mEnforcingQuota, mInPrivateBrowsing);
15262 }
15263
15264 Maybe<const CipherKey> maybeKey =
15265 mInPrivateBrowsing
15266 ? Some(fileManager->MutableCipherKeyManagerRef().Ensure())
15267 : Nothing();
15268
15269 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"
, 15269); AnnotateMozCrashReason("MOZ_RELEASE_ASSERT" "(" "mInPrivateBrowsing == maybeKey.isSome()"
")"); do { *((volatile int*)__null) = 15269; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15270
15271 QM_TRY_UNWRAP(auto tryResult1205 = (CreateStorageConnection(*dbFile, *fmDirectory
, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId
, maybeKey)); if ((__builtin_expect(!!(tryResult1205.isErr())
, 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection(*dbFile, *fmDirectory, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId, maybeKey)"
, tryResult1205.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15275, mozilla::dom::quota::Severity::Error); return tryResult1205
.propagateErr(); } NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1205.unwrap();
15272 NotNull<nsCOMPtr<mozIStorageConnection>> connection,auto tryResult1205 = (CreateStorageConnection(*dbFile, *fmDirectory
, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId
, maybeKey)); if ((__builtin_expect(!!(tryResult1205.isErr())
, 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection(*dbFile, *fmDirectory, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId, maybeKey)"
, tryResult1205.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15275, mozilla::dom::quota::Severity::Error); return tryResult1205
.propagateErr(); } NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1205.unwrap();
15273 CreateStorageConnection(*dbFile, *fmDirectory, databaseName,auto tryResult1205 = (CreateStorageConnection(*dbFile, *fmDirectory
, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId
, maybeKey)); if ((__builtin_expect(!!(tryResult1205.isErr())
, 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection(*dbFile, *fmDirectory, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId, maybeKey)"
, tryResult1205.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15275, mozilla::dom::quota::Severity::Error); return tryResult1205
.propagateErr(); } NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1205.unwrap();
15274 mOriginMetadata.mOrigin, mDirectoryLockId,auto tryResult1205 = (CreateStorageConnection(*dbFile, *fmDirectory
, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId
, maybeKey)); if ((__builtin_expect(!!(tryResult1205.isErr())
, 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection(*dbFile, *fmDirectory, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId, maybeKey)"
, tryResult1205.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15275, mozilla::dom::quota::Severity::Error); return tryResult1205
.propagateErr(); } NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1205.unwrap();
15275 mTelemetryId, maybeKey))auto tryResult1205 = (CreateStorageConnection(*dbFile, *fmDirectory
, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId
, maybeKey)); if ((__builtin_expect(!!(tryResult1205.isErr())
, 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection(*dbFile, *fmDirectory, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId, maybeKey)"
, tryResult1205.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15275, mozilla::dom::quota::Severity::Error); return tryResult1205
.propagateErr(); } NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1205.unwrap();
;
15276
15277 AutoSetProgressHandler asph;
15278 QM_TRY(MOZ_TO_RESULT(asph.Register(*connection, this))){auto tryResult1206 = (ToResult(asph.Register(*connection, this
))); static_assert(std::is_empty_v<typename decltype(tryResult1206
)::ok_type>); if ((__builtin_expect(!!(tryResult1206.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(asph.Register(*connection, this))"
, tryResult1206.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15278, mozilla::dom::quota::Severity::Error); return tryResult1206
.propagateErr(); }}
;
15279
15280 QM_TRY(MOZ_TO_RESULT(LoadDatabaseInformation(*connection))){auto tryResult1207 = (ToResult(LoadDatabaseInformation(*connection
))); static_assert(std::is_empty_v<typename decltype(tryResult1207
)::ok_type>); if ((__builtin_expect(!!(tryResult1207.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(LoadDatabaseInformation(*connection))"
, tryResult1207.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15280, mozilla::dom::quota::Severity::Error); return tryResult1207
.propagateErr(); }}
;
15281
15282 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"
, 15282); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mNextObjectStoreId > mMetadata->mObjectStores.Count()"
")"); do { *((volatile int*)__null) = 15282; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15283 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"
, 15283); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mNextIndexId > 0"
")"); do { *((volatile int*)__null) = 15283; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15284
15285 // See if we need to do a versionchange transaction
15286
15287 // Optional version semantics.
15288 if (!mRequestedVersion) {
15289 // If the requested version was not specified and the database was created,
15290 // treat it as if version 1 were requested.
15291 // Otherwise, treat it as if the current version were requested.
15292 mRequestedVersion = mMetadata->mCommonMetadata.version() == 0
15293 ? 1
15294 : mMetadata->mCommonMetadata.version();
15295 }
15296
15297 QM_TRY(OkIf(mMetadata->mCommonMetadata.version() <= mRequestedVersion),{auto tryResult1208 = (OkIf(mMetadata->mCommonMetadata.version
() <= mRequestedVersion)); static_assert(std::is_empty_v<
typename decltype(tryResult1208)::ok_type>); if ((__builtin_expect
(!!(tryResult1208.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1208.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mMetadata->mCommonMetadata.version() <= mRequestedVersion)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15298, 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); }}
15298 NS_ERROR_DOM_INDEXEDDB_VERSION_ERR){auto tryResult1208 = (OkIf(mMetadata->mCommonMetadata.version
() <= mRequestedVersion)); static_assert(std::is_empty_v<
typename decltype(tryResult1208)::ok_type>); if ((__builtin_expect
(!!(tryResult1208.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1208.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mMetadata->mCommonMetadata.version() <= mRequestedVersion)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15298, 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); }}
;
15299
15300 if (!fileManager->Initialized()) {
15301 QM_TRY(MOZ_TO_RESULT(fileManager->Init(fmDirectory, *connection))){auto tryResult1209 = (ToResult(fileManager->Init(fmDirectory
, *connection))); static_assert(std::is_empty_v<typename decltype
(tryResult1209)::ok_type>); if ((__builtin_expect(!!(tryResult1209
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(fileManager->Init(fmDirectory, *connection))"
, tryResult1209.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15301, mozilla::dom::quota::Severity::Error); return tryResult1209
.propagateErr(); }}
;
15302
15303 idm->AddFileManager(fileManager.clonePtr());
15304 }
15305
15306 mFileManager = std::move(fileManager);
15307
15308 // Must close connection before dispatching otherwise we might race with the
15309 // connection thread which needs to open the same database.
15310 asph.Unregister();
15311
15312 MOZ_ALWAYS_SUCCEEDS(connection->Close())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(connection->Close())), 1)))), 1))) { } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "NS_SUCCEEDED(connection->Close())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15312); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(connection->Close())" ")"); do { *((volatile
int*)__null) = 15312; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); } } while (false)
;
15313
15314 // Must set mState before dispatching otherwise we will race with the owning
15315 // thread.
15316 mState = (mMetadata->mCommonMetadata.version() == mRequestedVersion)
15317 ? State::SendingResults
15318 : State::BeginVersionChange;
15319
15320 QM_TRY(MOZ_TO_RESULT({auto tryResult1210 = (ToResult(DispatchThisAfterProcessingCurrentEvent
(mOwningEventTarget))); static_assert(std::is_empty_v<typename
decltype(tryResult1210)::ok_type>); if ((__builtin_expect
(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, tryResult1210.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15321, mozilla::dom::quota::Severity::Error); return tryResult1210
.propagateErr(); }}
15321 DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))){auto tryResult1210 = (ToResult(DispatchThisAfterProcessingCurrentEvent
(mOwningEventTarget))); static_assert(std::is_empty_v<typename
decltype(tryResult1210)::ok_type>); if ((__builtin_expect
(!!(tryResult1210.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, tryResult1210.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15321, mozilla::dom::quota::Severity::Error); return tryResult1210
.propagateErr(); }}
;
15322
15323 return NS_OK;
15324}
15325
15326nsresult OpenDatabaseOp::LoadDatabaseInformation(
15327 mozIStorageConnection& aConnection) {
15328 AssertIsOnIOThread();
15329 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"
, 15329); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata"
")"); do { *((volatile int*)__null) = 15329; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15330
15331 {
15332 // Load version information.
15333 QM_TRY_INSPECT(auto tryResult1211 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection, "SELECT name, origin, version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"SELECT name, origin, version FROM database\"_ns)"
, tryResult1211.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15337, mozilla::dom::quota::Severity::Error); return tryResult1211
.propagateErr(); } const auto& stmt = tryResult1211.inspect
();
15334 const auto& stmt,auto tryResult1211 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection, "SELECT name, origin, version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"SELECT name, origin, version FROM database\"_ns)"
, tryResult1211.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15337, mozilla::dom::quota::Severity::Error); return tryResult1211
.propagateErr(); } const auto& stmt = tryResult1211.inspect
();
15335 CreateAndExecuteSingleStepStatement<auto tryResult1211 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection, "SELECT name, origin, version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"SELECT name, origin, version FROM database\"_ns)"
, tryResult1211.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15337, mozilla::dom::quota::Severity::Error); return tryResult1211
.propagateErr(); } const auto& stmt = tryResult1211.inspect
();
15336 SingleStepResult::ReturnNullIfNoResult>(auto tryResult1211 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection, "SELECT name, origin, version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"SELECT name, origin, version FROM database\"_ns)"
, tryResult1211.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15337, mozilla::dom::quota::Severity::Error); return tryResult1211
.propagateErr(); } const auto& stmt = tryResult1211.inspect
();
15337 aConnection, "SELECT name, origin, version FROM database"_ns))auto tryResult1211 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection, "SELECT name, origin, version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"SELECT name, origin, version FROM database\"_ns)"
, tryResult1211.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15337, mozilla::dom::quota::Severity::Error); return tryResult1211
.propagateErr(); } const auto& stmt = tryResult1211.inspect
();
;
15338
15339 QM_TRY(OkIf(stmt), NS_ERROR_FILE_CORRUPTED){auto tryResult1212 = (OkIf(stmt)); 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(stmt)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15339, 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); }}
;
15340
15341 QM_TRY_INSPECT(const auto& databaseName, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1213 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(stmt)>::GetString), (stmt), 0)); if ((__builtin_expect(!!
(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetString), (stmt), 0)"
, tryResult1213.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15342, mozilla::dom::quota::Severity::Error); return tryResult1213
.propagateErr(); } const auto& databaseName = tryResult1213
.inspect();
15342 nsString, stmt, GetString, 0))auto tryResult1213 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(stmt)>::GetString), (stmt), 0)); if ((__builtin_expect(!!
(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetString), (stmt), 0)"
, tryResult1213.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15342, mozilla::dom::quota::Severity::Error); return tryResult1213
.propagateErr(); } const auto& databaseName = tryResult1213
.inspect();
;
15343
15344 QM_TRY(OkIf(mCommonParams.metadata().name() == databaseName),{auto tryResult1214 = (OkIf(mCommonParams.metadata().name() ==
databaseName)); 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(mCommonParams.metadata().name() == databaseName)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15345, 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); }}
15345 NS_ERROR_FILE_CORRUPTED){auto tryResult1214 = (OkIf(mCommonParams.metadata().name() ==
databaseName)); 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(mCommonParams.metadata().name() == databaseName)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15345, 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); }}
;
15346
15347 QM_TRY_INSPECT(const auto& origin, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1215 = (::mozilla::ToResultInvoke< nsCString
>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(stmt)>::GetUTF8String), (stmt), 1)); if ((__builtin_expect
(!!(tryResult1215.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetUTF8String), (stmt), 1)"
, tryResult1215.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15348, mozilla::dom::quota::Severity::Error); return tryResult1215
.propagateErr(); } const auto& origin = tryResult1215.inspect
();
15348 nsCString, stmt, GetUTF8String, 1))auto tryResult1215 = (::mozilla::ToResultInvoke< nsCString
>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(stmt)>::GetUTF8String), (stmt), 1)); if ((__builtin_expect
(!!(tryResult1215.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetUTF8String), (stmt), 1)"
, tryResult1215.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15348, mozilla::dom::quota::Severity::Error); return tryResult1215
.propagateErr(); } const auto& origin = tryResult1215.inspect
();
;
15349
15350 // We can't just compare these strings directly. See bug 1339081 comment 69.
15351 QM_TRY(OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin,{auto tryResult1216 = (OkIf(QuotaManager::AreOriginsEqualOnDisk
(mOriginMetadata.mOrigin, origin))); static_assert(std::is_empty_v
<typename decltype(tryResult1216)::ok_type>); if ((__builtin_expect
(!!(tryResult1216.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1216.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin, origin))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15353, 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); }}
15352 origin)),{auto tryResult1216 = (OkIf(QuotaManager::AreOriginsEqualOnDisk
(mOriginMetadata.mOrigin, origin))); static_assert(std::is_empty_v
<typename decltype(tryResult1216)::ok_type>); if ((__builtin_expect
(!!(tryResult1216.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1216.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin, origin))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15353, 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); }}
15353 NS_ERROR_FILE_CORRUPTED){auto tryResult1216 = (OkIf(QuotaManager::AreOriginsEqualOnDisk
(mOriginMetadata.mOrigin, origin))); static_assert(std::is_empty_v
<typename decltype(tryResult1216)::ok_type>); if ((__builtin_expect
(!!(tryResult1216.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1216.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin, origin))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15353, 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); }}
;
15354
15355 QM_TRY_INSPECT(const int64_t& version,auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt)
, &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 2)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 2)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15356, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const int64_t& version = tryResult1217
.inspect();
15356 MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt64, 2))auto tryResult1217 = (::mozilla::ToResultInvokeMember( (stmt)
, &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 2)); if ((__builtin_expect(!!(tryResult1217.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 2)"
, tryResult1217.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15356, mozilla::dom::quota::Severity::Error); return tryResult1217
.propagateErr(); } const int64_t& version = tryResult1217
.inspect();
;
15357
15358 mMetadata->mCommonMetadata.version() = uint64_t(version);
15359 }
15360
15361 ObjectStoreTable& objectStores = mMetadata->mObjectStores;
15362
15363 QM_TRY_INSPECT(auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15364 const auto& lastObjectStoreId,auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15365 ([&aConnection,auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15366 &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> {auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15367 // Load object store names and ids.auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15368 QM_TRY_INSPECT(auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15369 const auto& stmt,auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15370 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15371 nsCOMPtr<mozIStorageStatement>, aConnection, CreateStatement,auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15372 "SELECT id, auto_increment, name, key_path "auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15373 "FROM object_store"_ns));auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15374
15375 IndexOrObjectStoreId lastObjectStoreId = 0;auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15376
15377 QM_TRY(CollectWhileHasResult(auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15378 *stmt,auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15379 [&lastObjectStoreId, &objectStores,auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15380 usedIds = Maybe<nsTHashSet<uint64_t>>{},auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15381 usedNames = Maybe<nsTHashSet<nsString>>{}](auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15382 auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15383 QM_TRY_INSPECT(const IndexOrObjectStoreId& objectStoreId,auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15384 MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt64, 0));auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15385
15386 if (!usedIds) {auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15387 usedIds.emplace();auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15388 }auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15389
15390 QM_TRY(OkIf(objectStoreId > 0), Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15391 QM_TRY(OkIf(!usedIds.ref().Contains(objectStoreId)),auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15392 Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15393
15394 QM_TRY(OkIf(usedIds.ref().Insert(objectStoreId, fallible)),auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15395 Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15396
15397 nsString name;auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15398 QM_TRY(MOZ_TO_RESULT(stmt.GetString(2, name)));auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15399
15400 if (!usedNames) {auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15401 usedNames.emplace();auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15402 }auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15403
15404 QM_TRY(OkIf(!usedNames.ref().Contains(name)),auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15405 Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15406
15407 QM_TRY(OkIf(usedNames.ref().Insert(name, fallible)),auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15408 Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15409
15410 ObjectStoreMetadata commonMetadata;auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15411 commonMetadata.id() = objectStoreId;auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15412 commonMetadata.name() = std::move(name);auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15413
15414 QM_TRY_INSPECT(auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15415 const int32_t& columnType,auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15416 MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetTypeOfIndex, 3));auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15417
15418 if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) {auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15419 commonMetadata.keyPath() = KeyPath(0);auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15420 } else {auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15421 MOZ_ASSERT(columnType == mozIStorageStatement::VALUE_TYPE_TEXT);auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15422
15423 nsString keyPathSerialization;auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15424 QM_TRY(MOZ_TO_RESULT(stmt.GetString(3, keyPathSerialization)));auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15425
15426 commonMetadata.keyPath() =auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15427 KeyPath::DeserializeFromString(keyPathSerialization);auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15428 QM_TRY(OkIf(commonMetadata.keyPath().IsValid()),auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15429 Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15430 }auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15431
15432 QM_TRY_INSPECT(const int64_t& nextAutoIncrementId,auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15433 MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt64, 1));auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15434
15435 commonMetadata.autoIncrement() = !!nextAutoIncrementId;auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15436
15437 QM_TRY(OkIf(objectStores.InsertOrUpdate(auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15438 objectStoreId,auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15439 MakeSafeRefPtr<FullObjectStoreMetadata>(auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15440 std::move(commonMetadata),auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15441 FullObjectStoreMetadata::AutoIncrementIds{auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15442 nextAutoIncrementId, nextAutoIncrementId}),auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15443 fallible)),auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15444 Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15445
15446 lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId);auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15447
15448 return Ok{};auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15449 }));auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15450
15451 return lastObjectStoreId;auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
15452 }()))auto tryResult1232 = (([&aConnection, &objectStores](
) -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT id, auto_increment, name, key_path "
"FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1218
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)"
, tryResult1218.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15373, mozilla::dom::quota::Severity::Error); return tryResult1218
.propagateErr(); } const auto& stmt = tryResult1218.inspect
();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231
= (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &
objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>
{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt
), &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)"
, tryResult1219.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15384, mozilla::dom::quota::Severity::Error); return tryResult1219
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(
); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert
(std::is_empty_v<typename decltype(tryResult1220)::ok_type
>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1220
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15390, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221
= (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1221)::ok_type
>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1221
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15392, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222
= (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1222)::ok_type
>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1222
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15395, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1223)::ok_type
>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1223.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15398, mozilla::dom::quota::Severity::Error); return tryResult1223
.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); }
{auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))
); static_assert(std::is_empty_v<typename decltype(tryResult1224
)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15405, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225
= (OkIf(usedNames.ref().Insert(name, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1225)::ok_type
>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1225
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15408, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata
commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata
.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)"
, tryResult1226.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15416, mozilla::dom::quota::Severity::Error); return tryResult1226
.propagateErr(); } const int32_t& columnType = tryResult1226
.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL
) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(columnType
== mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement
::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 15421; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); nsString
keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString
(3, keyPathSerialization))); static_assert(std::is_empty_v<
typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect
(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1227
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15424, mozilla::dom::quota::Severity::Error); return tryResult1227
.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString
(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata
.keyPath().IsValid())); static_assert(std::is_empty_v<typename
decltype(tryResult1228)::ok_type>); if ((__builtin_expect
(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(commonMetadata.keyPath().IsValid())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15429, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229
= (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::
detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if (
(__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::
dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1229.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15433, mozilla::dom::quota::Severity::Error); return tryResult1229
.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229
.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId
; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId
, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata
), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId
, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v
<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect
(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15444, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId
= std::max(lastObjectStoreId, objectStoreId); return Ok{}; }
)); static_assert(std::is_empty_v<typename decltype(tryResult1231
)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })"
, tryResult1231.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15449, mozilla::dom::quota::Severity::Error); return tryResult1231
.propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect
(!!(tryResult1232.isErr()), 0))) { mozilla::dom::quota::HandleError
("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1218 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1218.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15373, mozilla::dom::quota::Severity::Error); return tryResult1218.propagateErr(); } const auto& stmt = tryResult1218.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1231 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\", tryResult1219.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1223.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\", tryResult1226.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15421); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1227.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1229.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1231)::ok_type>); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1219 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)); if ((__builtin_expect(!!(tryResult1219.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 0)\\\", tryResult1219.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15384, mozilla::dom::quota::Severity::Error); return tryResult1219.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1219.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1220 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1220)::ok_type>); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1220.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15390, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1221 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1221)::ok_type>); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1221.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15392, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1222 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1222)::ok_type>); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1222.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15395, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1223 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1223.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15398, mozilla::dom::quota::Severity::Error); return tryResult1223.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1224 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1224)::ok_type>); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1224.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15405, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1225 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1225)::ok_type>); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1225.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15408, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1226 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex, 3)\\\", tryResult1226.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15416, mozilla::dom::quota::Severity::Error); return tryResult1226.propagateErr(); } const int32_t& columnType = tryResult1226.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15421); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { *((volatile int*)__null) = 15421; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1227 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1227)::ok_type>); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1227.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15424, mozilla::dom::quota::Severity::Error); return tryResult1227.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1228 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1228)::ok_type>); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1228.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15429, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1229 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1229.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15433, mozilla::dom::quota::Severity::Error); return tryResult1229.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1229.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1230 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1230)::ok_type>); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1230.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15444, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1231.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15449, mozilla::dom::quota::Severity::Error); return tryResult1231.propagateErr(); }}; return lastObjectStoreId; }())"
, tryResult1232.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15452, mozilla::dom::quota::Severity::Error); return tryResult1232
.propagateErr(); } const auto& lastObjectStoreId = tryResult1232
.inspect();
;
15453
15454 QM_TRY_INSPECT(auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15455 const auto& lastIndexId,auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15456 ([this, &aConnection,auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15457 &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> {auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15458 // Load index informationauto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15459 QM_TRY_INSPECT(auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15460 const auto& stmt,auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15461 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15462 nsCOMPtr<mozIStorageStatement>, aConnection, CreateStatement,auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15463 "SELECT "auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15464 "id, object_store_id, name, key_path, "auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15465 "unique_index, multientry, "auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15466 "locale, is_auto_locale "auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15467 "FROM object_store_index"_ns));auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15468
15469 IndexOrObjectStoreId lastIndexId = 0;auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15470
15471 QM_TRY(CollectWhileHasResult(auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15472 *stmt,auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15473 [this, &lastIndexId, &objectStores, &aConnection,auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15474 usedIds = Maybe<nsTHashSet<uint64_t>>{},auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15475 usedNames = Maybe<nsTHashSet<nsString>>{}](auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15476 auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15477 QM_TRY_INSPECT(const IndexOrObjectStoreId& objectStoreId,auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15478 MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt64, 1));auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15479
15480 // XXX Why does this return NS_ERROR_OUT_OF_MEMORY if we don'tauto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15481 // know the object store id?auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15482
15483 auto objectStoreMetadata = objectStores.Lookup(objectStoreId);auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15484 QM_TRY(OkIf(static_cast<bool>(objectStoreMetadata)),auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15485 Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15486
15487 MOZ_ASSERT((*objectStoreMetadata)->mCommonMetadata.id() ==auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15488 objectStoreId);auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15489
15490 IndexOrObjectStoreId indexId;auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15491 QM_TRY(MOZ_TO_RESULT(stmt.GetInt64(0, &indexId)));auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15492
15493 if (!usedIds) {auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15494 usedIds.emplace();auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15495 }auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15496
15497 QM_TRY(OkIf(indexId > 0), Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15498 QM_TRY(OkIf(!usedIds.ref().Contains(indexId)),auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15499 Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15500
15501 QM_TRY(OkIf(usedIds.ref().Insert(indexId, fallible)),auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15502 Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15503
15504 nsString name;auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15505 QM_TRY(MOZ_TO_RESULT(stmt.GetString(2, name)));auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15506
15507 const nsAutoString hashName =auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15508 IntToString(indexId) + u":"_ns + name;auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15509
15510 if (!usedNames) {auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15511 usedNames.emplace();auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15512 }auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15513
15514 QM_TRY(OkIf(!usedNames.ref().Contains(hashName)),auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15515 Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15516
15517 QM_TRY(OkIf(usedNames.ref().Insert(hashName, fallible)),auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15518 Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15519
15520 auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>();auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15521 indexMetadata->mCommonMetadata.id() = indexId;auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15522 indexMetadata->mCommonMetadata.name() = name;auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15523
15524#ifdef DEBUGauto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15525 {auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15526 int32_t columnType;auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15527 nsresult rv = stmt.GetTypeOfIndex(3, &columnType);auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15528 MOZ_ASSERT(NS_SUCCEEDED(rv));auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15529 MOZ_ASSERT(columnType != mozIStorageStatement::VALUE_TYPE_NULL);auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15530 }auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15531#endifauto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15532
15533 nsString keyPathSerialization;auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15534 QM_TRY(MOZ_TO_RESULT(stmt.GetString(3, keyPathSerialization)));auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15535
15536 indexMetadata->mCommonMetadata.keyPath() =auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15537 KeyPath::DeserializeFromString(keyPathSerialization);auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15538 QM_TRY(OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid()),auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15539 Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15540
15541 int32_t scratch;auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15542 QM_TRY(MOZ_TO_RESULT(stmt.GetInt32(4, &scratch)));auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15543
15544 indexMetadata->mCommonMetadata.unique() = !!scratch;auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15545
15546 QM_TRY(MOZ_TO_RESULT(stmt.GetInt32(5, &scratch)));auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15547
15548 indexMetadata->mCommonMetadata.multiEntry() = !!scratch;auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15549
15550 const bool localeAware = !stmt.IsNull(6);auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15551 if (localeAware) {auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15552 QM_TRY(MOZ_TO_RESULT(stmt.GetUTF8String(auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15553 6, indexMetadata->mCommonMetadata.locale())));auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15554
15555 QM_TRY(MOZ_TO_RESULT(stmt.GetInt32(7, &scratch)));auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15556
15557 indexMetadata->mCommonMetadata.autoLocale() = !!scratch;auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15558
15559 // Update locale-aware indexes if necessaryauto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15560 const nsCString& indexedLocale =auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15561 indexMetadata->mCommonMetadata.locale();auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15562 const bool& isAutoLocale =auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15563 indexMetadata->mCommonMetadata.autoLocale();auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15564 const nsCString& systemLocale = mFactory->GetSystemLocale();auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15565 if (!systemLocale.IsEmpty() && isAutoLocale &&auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15566 !indexedLocale.Equals(systemLocale)) {auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15567 QM_TRY(MOZ_TO_RESULT(UpdateLocaleAwareIndex(auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15568 aConnection, indexMetadata->mCommonMetadata,auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15569 systemLocale)));auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15570 }auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15571 }auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15572
15573 QM_TRY(OkIf((*objectStoreMetadata)auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15574 ->mIndexes.InsertOrUpdate(auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15575 indexId, std::move(indexMetadata), fallible)),auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15576 Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15577
15578 lastIndexId = std::max(lastIndexId, indexId);auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15579
15580 return Ok{};auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15581 }));auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15582
15583 return lastIndexId;auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
15584 }()))auto tryResult1252 = (([this, &aConnection, &objectStores
]() -> mozilla::Result<IndexOrObjectStoreId, nsresult>
{ auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr
<mozIStorageStatement> >( ::std::mem_fn( &::mozilla
::detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), "SELECT " "id, object_store_id, name, key_path, "
"unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns
)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla
::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)"
, tryResult1233.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15467, mozilla::dom::quota::Severity::Error); return tryResult1233
.propagateErr(); } const auto& stmt = tryResult1233.inspect
();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251
= (CollectWhileHasResult( *stmt, [this, &lastIndexId, &
objectStores, &aConnection, usedIds = Maybe<nsTHashSet
<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString
>>{}]( auto& stmt) mutable -> mozilla::Result<
Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember
( (stmt), &::mozilla::detail::DerefedType<decltype(stmt
)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.
isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1234.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15478, mozilla::dom::quota::Severity::Error); return tryResult1234
.propagateErr(); } const IndexOrObjectStoreId& objectStoreId
= tryResult1234.inspect();; auto objectStoreMetadata = objectStores
.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast
<bool>(objectStoreMetadata))); static_assert(std::is_empty_v
<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect
(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15485, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert
( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata
)->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata
.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId"
")"); do { *((volatile int*)__null) = 15488; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId
indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &
indexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))"
, tryResult1236.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15491, mozilla::dom::quota::Severity::Error); return tryResult1236
.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto
tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v
<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect
(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexId > 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15497, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238
= (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1238)::ok_type>
); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15499, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239
= (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1239)::ok_type
>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1239
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15502, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name
; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert
(std::is_empty_v<typename decltype(tryResult1240)::ok_type
>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))"
, tryResult1240.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15505, mozilla::dom::quota::Severity::Error); return tryResult1240
.propagateErr(); }}; const nsAutoString hashName = IntToString
(indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace
(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName
))); static_assert(std::is_empty_v<typename decltype(tryResult1241
)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr
()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15515, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242
= (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert
(std::is_empty_v<typename decltype(tryResult1242)::ok_type
>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1242
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15518, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata
= MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->
mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata
.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt
.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla
::detail::AssertionConditionType<decltype(((bool)(__builtin_expect
(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(
!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15528); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))"
")"); do { *((volatile int*)__null) = 15528; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); do {
static_assert( mozilla::detail::AssertionConditionType<decltype
(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0)
)) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL"
")"); do { *((volatile int*)__null) = 15529; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); }endif
nsString keyPathSerialization; {auto tryResult1243 = (ToResult
(stmt.GetString(3, keyPathSerialization))); static_assert(std
::is_empty_v<typename decltype(tryResult1243)::ok_type>
); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))"
, tryResult1243.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15534, mozilla::dom::quota::Severity::Error); return tryResult1243
.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath
() = KeyPath::DeserializeFromString(keyPathSerialization); {auto
tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath
().IsValid())); static_assert(std::is_empty_v<typename decltype
(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15539, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())"
, tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch
; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch
))); static_assert(std::is_empty_v<typename decltype(tryResult1245
)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))"
, tryResult1245.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15542, mozilla::dom::quota::Severity::Error); return tryResult1245
.propagateErr(); }}; indexMetadata->mCommonMetadata.unique
() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32
(5, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1246)::ok_type>); if ((__builtin_expect
(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(5, &scratch))", tryResult1246.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15546, mozilla::dom::quota::Severity::Error); return tryResult1246
.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry
() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (
localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String
( 6, indexMetadata->mCommonMetadata.locale()))); static_assert
(std::is_empty_v<typename decltype(tryResult1247)::ok_type
>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))"
, tryResult1247.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15553, mozilla::dom::quota::Severity::Error); return tryResult1247
.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32
(7, &scratch))); static_assert(std::is_empty_v<typename
decltype(tryResult1248)::ok_type>); if ((__builtin_expect
(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.GetInt32(7, &scratch))", tryResult1248.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15555, mozilla::dom::quota::Severity::Error); return tryResult1248
.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale
() = !!scratch; const nsCString& indexedLocale = indexMetadata
->mCommonMetadata.locale(); const bool& isAutoLocale =
indexMetadata->mCommonMetadata.autoLocale(); const nsCString
& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale
.IsEmpty() && isAutoLocale && !indexedLocale.
Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex
( aConnection, indexMetadata->mCommonMetadata, systemLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1249
)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))"
, tryResult1249.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15569, mozilla::dom::quota::Severity::Error); return tryResult1249
.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata
) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata
), fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15576, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))"
, tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId
= std::max(lastIndexId, indexId); return Ok{}; })); static_assert
(std::is_empty_v<typename decltype(tryResult1251)::ok_type
>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) {
mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })"
, tryResult1251.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15581, mozilla::dom::quota::Severity::Error); return tryResult1251
.propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect
(!!(tryResult1252.isErr()), 0))) { mozilla::dom::quota::HandleError
("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1233 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1233.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15467, mozilla::dom::quota::Severity::Error); return tryResult1233.propagateErr(); } const auto& stmt = tryResult1233.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1251 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\", tryResult1234.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15488); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1236.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1240.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15528); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15529); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1243.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1245.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1246.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1247.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1248.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1249.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1251)::ok_type>); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1234 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)\\\", tryResult1234.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15478, mozilla::dom::quota::Severity::Error); return tryResult1234.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1234.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1235 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1235)::ok_type>); if ((__builtin_expect(!!(tryResult1235.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1235.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15485, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15488); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { *((volatile int*)__null) = 15488; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1236 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1236)::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1236.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15491, mozilla::dom::quota::Severity::Error); return tryResult1236.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1237 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1237)::ok_type>); if ((__builtin_expect(!!(tryResult1237.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1237.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15497, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1238 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect(!!(tryResult1238.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1238.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15499, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1239 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1239)::ok_type>); if ((__builtin_expect(!!(tryResult1239.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1239.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15502, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1240 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1240)::ok_type>); if ((__builtin_expect(!!(tryResult1240.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1240.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15505, mozilla::dom::quota::Severity::Error); return tryResult1240.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1241 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1241)::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1241.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15515, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1242 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1242)::ok_type>); if ((__builtin_expect(!!(tryResult1242.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1242.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15518, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15528); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { *((volatile int*)__null) = 15528; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15529); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { *((volatile int*)__null) = 15529; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1243 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1243)::ok_type>); if ((__builtin_expect(!!(tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1243.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15534, mozilla::dom::quota::Severity::Error); return tryResult1243.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1244 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1244)::ok_type>); if ((__builtin_expect(!!(tryResult1244.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1244.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15539, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1245 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1245)::ok_type>); if ((__builtin_expect(!!(tryResult1245.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1245.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15542, mozilla::dom::quota::Severity::Error); return tryResult1245.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1246 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1246)::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1246.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15546, mozilla::dom::quota::Severity::Error); return tryResult1246.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1247 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1247)::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1247.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15553, mozilla::dom::quota::Severity::Error); return tryResult1247.propagateErr(); }}; {auto tryResult1248 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect(!!(tryResult1248.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1248.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15555, mozilla::dom::quota::Severity::Error); return tryResult1248.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1249 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1249)::ok_type>); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1249.inspectErr(), \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15569, mozilla::dom::quota::Severity::Error); return tryResult1249.propagateErr(); }}; } } {auto tryResult1250 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect(!!(tryResult1250.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1250.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\\\", 15576, mozilla::dom::quota::Severity::Error); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1251.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15581, mozilla::dom::quota::Severity::Error); return tryResult1251.propagateErr(); }}; return lastIndexId; }())"
, tryResult1252.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15584, mozilla::dom::quota::Severity::Error); return tryResult1252
.propagateErr(); } const auto& lastIndexId = tryResult1252
.inspect();
;
15585
15586 QM_TRY(OkIf(lastObjectStoreId != INT64_MAX),{auto tryResult1253 = (OkIf(lastObjectStoreId != (9223372036854775807L
))); static_assert(std::is_empty_v<typename decltype(tryResult1253
)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr
()), 0))) { auto tryTempError = tryResult1253.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(lastObjectStoreId != (9223372036854775807L))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15587, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15587, "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); }}
15587 NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1253 = (OkIf(lastObjectStoreId != (9223372036854775807L
))); static_assert(std::is_empty_v<typename decltype(tryResult1253
)::ok_type>); if ((__builtin_expect(!!(tryResult1253.isErr
()), 0))) { auto tryTempError = tryResult1253.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(lastObjectStoreId != (9223372036854775807L))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15587, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15587, "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); }}
;
15588 QM_TRY(OkIf(lastIndexId != INT64_MAX), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult1254 = (OkIf(lastIndexId != (9223372036854775807L
))); static_assert(std::is_empty_v<typename decltype(tryResult1254
)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr
()), 0))) { auto tryTempError = tryResult1254.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(lastIndexId != (9223372036854775807L))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15589, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15589, "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); }}
15589 IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1254 = (OkIf(lastIndexId != (9223372036854775807L
))); static_assert(std::is_empty_v<typename decltype(tryResult1254
)::ok_type>); if ((__builtin_expect(!!(tryResult1254.isErr
()), 0))) { auto tryTempError = tryResult1254.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(lastIndexId != (9223372036854775807L))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15589, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15589, "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); }}
;
15590
15591 mMetadata->mNextObjectStoreId = lastObjectStoreId + 1;
15592 mMetadata->mNextIndexId = lastIndexId + 1;
15593
15594 return NS_OK;
15595}
15596
15597/* static */
15598nsresult OpenDatabaseOp::UpdateLocaleAwareIndex(
15599 mozIStorageConnection& aConnection, const IndexMetadata& aIndexMetadata,
15600 const nsCString& aLocale) {
15601 const auto indexTable =
15602 aIndexMetadata.unique() ? "unique_index_data"_ns : "index_data"_ns;
15603
15604 // The parameter names are not used, parameters are bound by index only
15605 // locally in the same function.
15606 const nsCString readQuery = "SELECT value, object_data_key FROM "_ns +
15607 indexTable + " WHERE index_id = :index_id"_ns;
15608
15609 QM_TRY_INSPECT(const auto& readStmt,auto tryResult1255 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), readQuery)); if ((__builtin_expect(!!(tryResult1255
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), readQuery)"
, tryResult1255.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); return tryResult1255
.propagateErr(); } const auto& readStmt = tryResult1255.inspect
();
15610 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1255 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), readQuery)); if ((__builtin_expect(!!(tryResult1255
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), readQuery)"
, tryResult1255.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); return tryResult1255
.propagateErr(); } const auto& readStmt = tryResult1255.inspect
();
15611 nsCOMPtr<mozIStorageStatement>, aConnection,auto tryResult1255 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), readQuery)); if ((__builtin_expect(!!(tryResult1255
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), readQuery)"
, tryResult1255.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); return tryResult1255
.propagateErr(); } const auto& readStmt = tryResult1255.inspect
();
15612 CreateStatement, readQuery))auto tryResult1255 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), readQuery)); if ((__builtin_expect(!!(tryResult1255
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), readQuery)"
, tryResult1255.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15612, mozilla::dom::quota::Severity::Error); return tryResult1255
.propagateErr(); } const auto& readStmt = tryResult1255.inspect
();
;
15613
15614 QM_TRY(MOZ_TO_RESULT(readStmt->BindInt64ByIndex(0, aIndexMetadata.id()))){auto tryResult1256 = (ToResult(readStmt->BindInt64ByIndex
(0, aIndexMetadata.id()))); static_assert(std::is_empty_v<
typename decltype(tryResult1256)::ok_type>); if ((__builtin_expect
(!!(tryResult1256.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(readStmt->BindInt64ByIndex(0, aIndexMetadata.id()))"
, tryResult1256.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15614, mozilla::dom::quota::Severity::Error); return tryResult1256
.propagateErr(); }}
;
15615
15616 QM_TRY(CollectWhileHasResult({auto tryResult1266 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1257 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (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(!!(tryResult1257.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)"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1258
)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15635, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1259)::ok_type
>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15638, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect
(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); } const auto& newSortKey = tryResult1261
.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1262)::ok_type>);
if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15646, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect
(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15648, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1264)::ok_type
>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15650, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1265.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15652, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect
(!!(tryResult1266.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 tryResult1257 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1257.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)\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15635, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1259)::ok_type>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15638, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const auto& newSortKey = tryResult1261.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15646, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15648, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1264.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15650, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1265.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15652, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; return Ok{}; })"
, tryResult1266.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15655, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}
15617 *readStmt,{auto tryResult1266 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1257 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (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(!!(tryResult1257.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)"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1258
)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15635, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1259)::ok_type
>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15638, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect
(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); } const auto& newSortKey = tryResult1261
.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1262)::ok_type>);
if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15646, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect
(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15648, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1264)::ok_type
>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15650, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1265.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15652, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect
(!!(tryResult1266.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 tryResult1257 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1257.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)\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15635, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1259)::ok_type>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15638, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const auto& newSortKey = tryResult1261.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15646, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15648, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1264.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15650, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1265.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15652, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; return Ok{}; })"
, tryResult1266.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15655, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}
15618 [&aConnection, &indexTable, &aIndexMetadata, &aLocale,{auto tryResult1266 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1257 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (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(!!(tryResult1257.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)"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1258
)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15635, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1259)::ok_type
>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15638, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect
(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); } const auto& newSortKey = tryResult1261
.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1262)::ok_type>);
if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15646, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect
(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15648, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1264)::ok_type
>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15650, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1265.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15652, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect
(!!(tryResult1266.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 tryResult1257 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1257.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)\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15635, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1259)::ok_type>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15638, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const auto& newSortKey = tryResult1261.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15646, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15648, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1264.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15650, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1265.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15652, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; return Ok{}; })"
, tryResult1266.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15655, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}
15619 writeStmt = nsCOMPtr<mozIStorageStatement>{}]({auto tryResult1266 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1257 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (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(!!(tryResult1257.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)"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1258
)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15635, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1259)::ok_type
>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15638, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect
(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); } const auto& newSortKey = tryResult1261
.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1262)::ok_type>);
if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15646, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect
(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15648, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1264)::ok_type
>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15650, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1265.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15652, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect
(!!(tryResult1266.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 tryResult1257 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1257.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)\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15635, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1259)::ok_type>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15638, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const auto& newSortKey = tryResult1261.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15646, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15648, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1264.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15650, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1265.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15652, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; return Ok{}; })"
, tryResult1266.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15655, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}
15620 auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> {{auto tryResult1266 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1257 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (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(!!(tryResult1257.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)"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1258
)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15635, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1259)::ok_type
>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15638, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect
(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); } const auto& newSortKey = tryResult1261
.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1262)::ok_type>);
if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15646, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect
(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15648, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1264)::ok_type
>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15650, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1265.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15652, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect
(!!(tryResult1266.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 tryResult1257 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1257.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)\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15635, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1259)::ok_type>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15638, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const auto& newSortKey = tryResult1261.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15646, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15648, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1264.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15650, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1265.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15652, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; return Ok{}; })"
, tryResult1266.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15655, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}
15621 if (!writeStmt) {{auto tryResult1266 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1257 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (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(!!(tryResult1257.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)"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1258
)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15635, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1259)::ok_type
>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15638, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect
(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); } const auto& newSortKey = tryResult1261
.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1262)::ok_type>);
if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15646, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect
(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15648, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1264)::ok_type
>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15650, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1265.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15652, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect
(!!(tryResult1266.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 tryResult1257 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1257.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)\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15635, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1259)::ok_type>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15638, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const auto& newSortKey = tryResult1261.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15646, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15648, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1264.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15650, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1265.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15652, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; return Ok{}; })"
, tryResult1266.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15655, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}
15622 QM_TRY_UNWRAP({auto tryResult1266 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1257 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (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(!!(tryResult1257.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)"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1258
)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15635, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1259)::ok_type
>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15638, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect
(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); } const auto& newSortKey = tryResult1261
.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1262)::ok_type>);
if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15646, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect
(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15648, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1264)::ok_type
>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15650, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1265.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15652, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect
(!!(tryResult1266.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 tryResult1257 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1257.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)\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15635, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1259)::ok_type>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15638, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const auto& newSortKey = tryResult1261.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15646, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15648, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1264.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15650, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1265.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15652, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; return Ok{}; })"
, tryResult1266.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15655, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}
15623 writeStmt,{auto tryResult1266 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1257 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (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(!!(tryResult1257.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)"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1258
)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15635, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1259)::ok_type
>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15638, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect
(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); } const auto& newSortKey = tryResult1261
.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1262)::ok_type>);
if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15646, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect
(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15648, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1264)::ok_type
>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15650, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1265.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15652, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect
(!!(tryResult1266.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 tryResult1257 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1257.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)\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15635, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1259)::ok_type>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15638, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const auto& newSortKey = tryResult1261.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15646, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15648, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1264.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15650, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1265.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15652, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; return Ok{}; })"
, tryResult1266.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15655, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}
15624 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED({auto tryResult1266 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1257 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (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(!!(tryResult1257.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)"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1258
)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15635, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1259)::ok_type
>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15638, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect
(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); } const auto& newSortKey = tryResult1261
.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1262)::ok_type>);
if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15646, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect
(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15648, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1264)::ok_type
>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15650, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1265.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15652, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect
(!!(tryResult1266.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 tryResult1257 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1257.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)\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15635, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1259)::ok_type>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15638, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const auto& newSortKey = tryResult1261.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15646, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15648, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1264.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15650, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1265.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15652, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; return Ok{}; })"
, tryResult1266.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15655, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}
15625 nsCOMPtr<mozIStorageStatement>, aConnection, CreateStatement,{auto tryResult1266 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1257 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (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(!!(tryResult1257.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)"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1258
)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15635, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1259)::ok_type
>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15638, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect
(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); } const auto& newSortKey = tryResult1261
.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1262)::ok_type>);
if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15646, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect
(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15648, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1264)::ok_type
>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15650, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1265.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15652, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect
(!!(tryResult1266.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 tryResult1257 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1257.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)\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15635, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1259)::ok_type>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15638, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const auto& newSortKey = tryResult1261.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15646, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15648, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1264.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15650, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1265.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15652, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; return Ok{}; })"
, tryResult1266.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15655, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}
15626 "UPDATE "_ns + indexTable + "SET value_locale = :"_ns +{auto tryResult1266 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1257 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (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(!!(tryResult1257.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)"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1258
)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15635, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1259)::ok_type
>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15638, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect
(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); } const auto& newSortKey = tryResult1261
.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1262)::ok_type>);
if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15646, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect
(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15648, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1264)::ok_type
>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15650, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1265.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15652, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect
(!!(tryResult1266.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 tryResult1257 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1257.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)\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15635, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1259)::ok_type>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15638, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const auto& newSortKey = tryResult1261.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15646, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15648, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1264.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15650, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1265.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15652, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; return Ok{}; })"
, tryResult1266.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15655, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}
15627 kStmtParamNameValueLocale + " WHERE index_id = :"_ns +{auto tryResult1266 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1257 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (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(!!(tryResult1257.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)"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1258
)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15635, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1259)::ok_type
>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15638, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect
(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); } const auto& newSortKey = tryResult1261
.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1262)::ok_type>);
if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15646, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect
(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15648, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1264)::ok_type
>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15650, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1265.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15652, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect
(!!(tryResult1266.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 tryResult1257 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1257.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)\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15635, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1259)::ok_type>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15638, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const auto& newSortKey = tryResult1261.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15646, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15648, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1264.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15650, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1265.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15652, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; return Ok{}; })"
, tryResult1266.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15655, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}
15628 kStmtParamNameIndexId + " AND value = :"_ns +{auto tryResult1266 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1257 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (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(!!(tryResult1257.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)"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1258
)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15635, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1259)::ok_type
>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15638, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect
(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); } const auto& newSortKey = tryResult1261
.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1262)::ok_type>);
if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15646, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect
(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15648, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1264)::ok_type
>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15650, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1265.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15652, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect
(!!(tryResult1266.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 tryResult1257 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1257.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)\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15635, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1259)::ok_type>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15638, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const auto& newSortKey = tryResult1261.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15646, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15648, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1264.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15650, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1265.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15652, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; return Ok{}; })"
, tryResult1266.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15655, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}
15629 kStmtParamNameValue + " AND object_data_key = :"_ns +{auto tryResult1266 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1257 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (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(!!(tryResult1257.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)"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1258
)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15635, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1259)::ok_type
>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15638, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect
(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); } const auto& newSortKey = tryResult1261
.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1262)::ok_type>);
if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15646, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect
(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15648, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1264)::ok_type
>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15650, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1265.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15652, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect
(!!(tryResult1266.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 tryResult1257 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1257.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)\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15635, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1259)::ok_type>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15638, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const auto& newSortKey = tryResult1261.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15646, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15648, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1264.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15650, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1265.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15652, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; return Ok{}; })"
, tryResult1266.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15655, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}
15630 kStmtParamNameObjectDataKey));{auto tryResult1266 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1257 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (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(!!(tryResult1257.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)"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1258
)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15635, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1259)::ok_type
>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15638, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect
(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); } const auto& newSortKey = tryResult1261
.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1262)::ok_type>);
if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15646, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect
(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15648, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1264)::ok_type
>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15650, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1265.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15652, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect
(!!(tryResult1266.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 tryResult1257 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1257.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)\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15635, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1259)::ok_type>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15638, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const auto& newSortKey = tryResult1261.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15646, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15648, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1264.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15650, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1265.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15652, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; return Ok{}; })"
, tryResult1266.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15655, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}
15631 }{auto tryResult1266 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1257 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (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(!!(tryResult1257.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)"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1258
)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15635, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1259)::ok_type
>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15638, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect
(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); } const auto& newSortKey = tryResult1261
.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1262)::ok_type>);
if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15646, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect
(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15648, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1264)::ok_type
>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15650, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1265.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15652, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect
(!!(tryResult1266.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 tryResult1257 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1257.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)\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15635, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1259)::ok_type>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15638, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const auto& newSortKey = tryResult1261.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15646, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15648, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1264.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15650, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1265.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15652, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; return Ok{}; })"
, tryResult1266.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15655, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}
15632
15633 mozStorageStatementScoper scoper(writeStmt);{auto tryResult1266 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1257 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (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(!!(tryResult1257.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)"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1258
)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15635, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1259)::ok_type
>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15638, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect
(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); } const auto& newSortKey = tryResult1261
.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1262)::ok_type>);
if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15646, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect
(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15648, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1264)::ok_type
>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15650, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1265.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15652, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect
(!!(tryResult1266.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 tryResult1257 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1257.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)\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15635, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1259)::ok_type>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15638, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const auto& newSortKey = tryResult1261.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15646, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15648, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1264.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15650, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1265.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15652, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; return Ok{}; })"
, tryResult1266.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15655, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}
15634 QM_TRY(MOZ_TO_RESULT(writeStmt->BindInt64ByName(kStmtParamNameIndexId,{auto tryResult1266 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1257 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (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(!!(tryResult1257.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)"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1258
)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15635, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1259)::ok_type
>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15638, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect
(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); } const auto& newSortKey = tryResult1261
.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1262)::ok_type>);
if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15646, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect
(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15648, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1264)::ok_type
>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15650, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1265.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15652, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect
(!!(tryResult1266.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 tryResult1257 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1257.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)\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15635, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1259)::ok_type>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15638, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const auto& newSortKey = tryResult1261.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15646, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15648, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1264.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15650, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1265.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15652, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; return Ok{}; })"
, tryResult1266.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15655, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}
15635 aIndexMetadata.id())));{auto tryResult1266 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1257 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (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(!!(tryResult1257.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)"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1258
)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15635, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1259)::ok_type
>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15638, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect
(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); } const auto& newSortKey = tryResult1261
.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1262)::ok_type>);
if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15646, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect
(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15648, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1264)::ok_type
>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15650, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1265.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15652, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect
(!!(tryResult1266.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 tryResult1257 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1257.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)\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15635, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1259)::ok_type>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15638, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const auto& newSortKey = tryResult1261.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15646, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15648, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1264.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15650, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1265.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15652, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; return Ok{}; })"
, tryResult1266.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15655, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}
15636
15637 Key oldKey, objectStorePosition;{auto tryResult1266 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1257 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (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(!!(tryResult1257.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)"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1258
)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15635, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1259)::ok_type
>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15638, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect
(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); } const auto& newSortKey = tryResult1261
.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1262)::ok_type>);
if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15646, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect
(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15648, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1264)::ok_type
>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15650, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1265.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15652, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect
(!!(tryResult1266.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 tryResult1257 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1257.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)\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15635, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1259)::ok_type>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15638, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const auto& newSortKey = tryResult1261.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15646, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15648, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1264.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15650, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1265.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15652, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; return Ok{}; })"
, tryResult1266.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15655, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}
15638 QM_TRY(MOZ_TO_RESULT(oldKey.SetFromStatement(&readStmt, 0)));{auto tryResult1266 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1257 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (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(!!(tryResult1257.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)"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1258
)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15635, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1259)::ok_type
>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15638, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect
(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); } const auto& newSortKey = tryResult1261
.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1262)::ok_type>);
if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15646, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect
(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15648, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1264)::ok_type
>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15650, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1265.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15652, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect
(!!(tryResult1266.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 tryResult1257 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1257.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)\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15635, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1259)::ok_type>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15638, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const auto& newSortKey = tryResult1261.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15646, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15648, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1264.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15650, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1265.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15652, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; return Ok{}; })"
, tryResult1266.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15655, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}
15639 QM_TRY(MOZ_TO_RESULT({auto tryResult1266 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1257 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (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(!!(tryResult1257.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)"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1258
)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15635, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1259)::ok_type
>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15638, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect
(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); } const auto& newSortKey = tryResult1261
.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1262)::ok_type>);
if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15646, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect
(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15648, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1264)::ok_type
>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15650, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1265.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15652, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect
(!!(tryResult1266.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 tryResult1257 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1257.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)\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15635, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1259)::ok_type>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15638, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const auto& newSortKey = tryResult1261.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15646, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15648, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1264.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15650, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1265.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15652, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; return Ok{}; })"
, tryResult1266.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15655, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}
15640 oldKey.BindToStatement(writeStmt, kStmtParamNameValue)));{auto tryResult1266 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1257 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (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(!!(tryResult1257.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)"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1258
)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15635, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1259)::ok_type
>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15638, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect
(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); } const auto& newSortKey = tryResult1261
.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1262)::ok_type>);
if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15646, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect
(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15648, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1264)::ok_type
>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15650, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1265.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15652, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect
(!!(tryResult1266.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 tryResult1257 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1257.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)\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15635, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1259)::ok_type>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15638, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const auto& newSortKey = tryResult1261.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15646, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15648, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1264.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15650, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1265.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15652, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; return Ok{}; })"
, tryResult1266.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15655, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}
15641
15642 QM_TRY_INSPECT(const auto& newSortKey,{auto tryResult1266 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1257 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (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(!!(tryResult1257.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)"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1258
)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15635, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1259)::ok_type
>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15638, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect
(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); } const auto& newSortKey = tryResult1261
.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1262)::ok_type>);
if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15646, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect
(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15648, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1264)::ok_type
>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15650, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1265.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15652, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect
(!!(tryResult1266.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 tryResult1257 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1257.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)\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15635, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1259)::ok_type>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15638, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const auto& newSortKey = tryResult1261.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15646, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15648, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1264.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15650, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1265.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15652, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; return Ok{}; })"
, tryResult1266.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15655, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}
15643 oldKey.ToLocaleAwareKey(aLocale));{auto tryResult1266 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1257 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (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(!!(tryResult1257.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)"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1258
)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15635, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1259)::ok_type
>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15638, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect
(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); } const auto& newSortKey = tryResult1261
.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1262)::ok_type>);
if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15646, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect
(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15648, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1264)::ok_type
>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15650, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1265.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15652, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect
(!!(tryResult1266.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 tryResult1257 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1257.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)\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15635, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1259)::ok_type>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15638, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const auto& newSortKey = tryResult1261.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15646, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15648, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1264.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15650, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1265.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15652, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; return Ok{}; })"
, tryResult1266.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15655, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}
15644
15645 QM_TRY(MOZ_TO_RESULT({auto tryResult1266 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1257 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (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(!!(tryResult1257.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)"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1258
)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15635, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1259)::ok_type
>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15638, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect
(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); } const auto& newSortKey = tryResult1261
.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1262)::ok_type>);
if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15646, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect
(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15648, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1264)::ok_type
>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15650, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1265.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15652, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect
(!!(tryResult1266.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 tryResult1257 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1257.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)\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15635, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1259)::ok_type>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15638, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const auto& newSortKey = tryResult1261.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15646, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15648, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1264.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15650, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1265.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15652, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; return Ok{}; })"
, tryResult1266.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15655, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}
15646 newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale)));{auto tryResult1266 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1257 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (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(!!(tryResult1257.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)"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1258
)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15635, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1259)::ok_type
>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15638, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect
(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); } const auto& newSortKey = tryResult1261
.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1262)::ok_type>);
if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15646, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect
(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15648, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1264)::ok_type
>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15650, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1265.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15652, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect
(!!(tryResult1266.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 tryResult1257 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1257.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)\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15635, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1259)::ok_type>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15638, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const auto& newSortKey = tryResult1261.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15646, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15648, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1264.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15650, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1265.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15652, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; return Ok{}; })"
, tryResult1266.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15655, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}
15647 QM_TRY({auto tryResult1266 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1257 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (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(!!(tryResult1257.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)"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1258
)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15635, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1259)::ok_type
>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15638, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect
(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); } const auto& newSortKey = tryResult1261
.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1262)::ok_type>);
if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15646, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect
(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15648, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1264)::ok_type
>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15650, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1265.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15652, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect
(!!(tryResult1266.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 tryResult1257 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1257.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)\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15635, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1259)::ok_type>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15638, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const auto& newSortKey = tryResult1261.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15646, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15648, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1264.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15650, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1265.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15652, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; return Ok{}; })"
, tryResult1266.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15655, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}
15648 MOZ_TO_RESULT(objectStorePosition.SetFromStatement(&readStmt, 1)));{auto tryResult1266 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1257 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (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(!!(tryResult1257.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)"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1258
)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15635, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1259)::ok_type
>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15638, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect
(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); } const auto& newSortKey = tryResult1261
.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1262)::ok_type>);
if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15646, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect
(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15648, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1264)::ok_type
>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15650, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1265.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15652, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect
(!!(tryResult1266.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 tryResult1257 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1257.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)\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15635, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1259)::ok_type>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15638, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const auto& newSortKey = tryResult1261.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15646, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15648, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1264.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15650, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1265.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15652, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; return Ok{}; })"
, tryResult1266.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15655, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}
15649 QM_TRY(MOZ_TO_RESULT(objectStorePosition.BindToStatement({auto tryResult1266 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1257 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (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(!!(tryResult1257.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)"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1258
)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15635, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1259)::ok_type
>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15638, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect
(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); } const auto& newSortKey = tryResult1261
.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1262)::ok_type>);
if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15646, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect
(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15648, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1264)::ok_type
>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15650, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1265.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15652, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect
(!!(tryResult1266.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 tryResult1257 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1257.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)\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15635, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1259)::ok_type>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15638, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const auto& newSortKey = tryResult1261.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15646, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15648, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1264.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15650, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1265.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15652, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; return Ok{}; })"
, tryResult1266.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15655, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}
15650 writeStmt, kStmtParamNameObjectDataKey)));{auto tryResult1266 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1257 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (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(!!(tryResult1257.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)"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1258
)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15635, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1259)::ok_type
>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15638, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect
(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); } const auto& newSortKey = tryResult1261
.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1262)::ok_type>);
if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15646, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect
(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15648, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1264)::ok_type
>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15650, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1265.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15652, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect
(!!(tryResult1266.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 tryResult1257 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1257.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)\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15635, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1259)::ok_type>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15638, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const auto& newSortKey = tryResult1261.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15646, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15648, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1264.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15650, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1265.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15652, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; return Ok{}; })"
, tryResult1266.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15655, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}
15651
15652 QM_TRY(MOZ_TO_RESULT(writeStmt->Execute()));{auto tryResult1266 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1257 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (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(!!(tryResult1257.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)"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1258
)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15635, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1259)::ok_type
>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15638, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect
(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); } const auto& newSortKey = tryResult1261
.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1262)::ok_type>);
if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15646, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect
(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15648, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1264)::ok_type
>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15650, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1265.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15652, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect
(!!(tryResult1266.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 tryResult1257 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1257.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)\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15635, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1259)::ok_type>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15638, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const auto& newSortKey = tryResult1261.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15646, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15648, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1264.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15650, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1265.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15652, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; return Ok{}; })"
, tryResult1266.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15655, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}
15653
15654 return Ok{};{auto tryResult1266 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1257 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (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(!!(tryResult1257.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)"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1258
)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15635, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1259)::ok_type
>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15638, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect
(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); } const auto& newSortKey = tryResult1261
.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1262)::ok_type>);
if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15646, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect
(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15648, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1264)::ok_type
>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15650, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1265.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15652, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect
(!!(tryResult1266.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 tryResult1257 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1257.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)\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15635, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1259)::ok_type>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15638, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const auto& newSortKey = tryResult1261.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15646, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15648, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1264.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15650, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1265.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15652, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; return Ok{}; })"
, tryResult1266.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15655, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}
15655 })){auto tryResult1266 = (CollectWhileHasResult( *readStmt, [&
aConnection, &indexTable, &aIndexMetadata, &aLocale
, writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto&
readStmt) mutable -> mozilla::Result<Ok, nsresult> {
if (!writeStmt) { auto tryResult1257 = (::mozilla::ToResultInvoke
< nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn
( &::mozilla::detail::DerefedType<decltype(aConnection
)>::CreateStatement), (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(!!(tryResult1257.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)"
, tryResult1257.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15630, mozilla::dom::quota::Severity::Error); return tryResult1257
.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper
scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt
->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id
()))); static_assert(std::is_empty_v<typename decltype(tryResult1258
)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))"
, tryResult1258.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15635, mozilla::dom::quota::Severity::Error); return tryResult1258
.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259
= (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1259)::ok_type
>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))"
, tryResult1259.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15638, mozilla::dom::quota::Severity::Error); return tryResult1259
.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement
(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v
<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect
(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))"
, tryResult1260.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15640, mozilla::dom::quota::Severity::Error); return tryResult1260
.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey
(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0
))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)"
, tryResult1261.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15643, mozilla::dom::quota::Severity::Error); return tryResult1261
.propagateErr(); } const auto& newSortKey = tryResult1261
.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement
(writeStmt, kStmtParamNameValueLocale))); static_assert(std::
is_empty_v<typename decltype(tryResult1262)::ok_type>);
if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))"
, tryResult1262.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15646, mozilla::dom::quota::Severity::Error); return tryResult1262
.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition
.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v
<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect
(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))"
, tryResult1263.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15648, mozilla::dom::quota::Severity::Error); return tryResult1263
.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition
.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1264)::ok_type
>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))"
, tryResult1264.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15650, mozilla::dom::quota::Severity::Error); return tryResult1264
.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())"
, tryResult1265.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15652, mozilla::dom::quota::Severity::Error); return tryResult1265
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1266)::ok_type>); if ((__builtin_expect
(!!(tryResult1266.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 tryResult1257 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (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(!!(tryResult1257.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)\", tryResult1257.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15630, mozilla::dom::quota::Severity::Error); return tryResult1257.propagateErr(); } writeStmt = tryResult1257.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1258 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1258)::ok_type>); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1258.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15635, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1259 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1259)::ok_type>); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1259.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15638, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); }}; {auto tryResult1260 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1260.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15640, mozilla::dom::quota::Severity::Error); return tryResult1260.propagateErr(); }}; auto tryResult1261 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1261.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15643, mozilla::dom::quota::Severity::Error); return tryResult1261.propagateErr(); } const auto& newSortKey = tryResult1261.inspect();; {auto tryResult1262 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1262.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15646, mozilla::dom::quota::Severity::Error); return tryResult1262.propagateErr(); }}; {auto tryResult1263 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1263.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15648, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; {auto tryResult1264 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1264.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15650, mozilla::dom::quota::Severity::Error); return tryResult1264.propagateErr(); }}; {auto tryResult1265 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1265.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 15652, mozilla::dom::quota::Severity::Error); return tryResult1265.propagateErr(); }}; return Ok{}; })"
, tryResult1266.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15655, mozilla::dom::quota::Severity::Error); return tryResult1266
.propagateErr(); }}
;
15656
15657 // The parameter names are not used, parameters are bound by index only
15658 // locally in the same function.
15659 static constexpr auto metaQuery =
15660 "UPDATE object_store_index SET "
15661 "locale = :locale WHERE id = :id"_ns;
15662
15663 QM_TRY_INSPECT(const auto& metaStmt,auto tryResult1267 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), metaQuery)); if ((__builtin_expect(!!(tryResult1267
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), metaQuery)"
, tryResult1267.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15666, mozilla::dom::quota::Severity::Error); return tryResult1267
.propagateErr(); } const auto& metaStmt = tryResult1267.inspect
();
15664 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1267 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), metaQuery)); if ((__builtin_expect(!!(tryResult1267
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), metaQuery)"
, tryResult1267.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15666, mozilla::dom::quota::Severity::Error); return tryResult1267
.propagateErr(); } const auto& metaStmt = tryResult1267.inspect
();
15665 nsCOMPtr<mozIStorageStatement>, aConnection,auto tryResult1267 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), metaQuery)); if ((__builtin_expect(!!(tryResult1267
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), metaQuery)"
, tryResult1267.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15666, mozilla::dom::quota::Severity::Error); return tryResult1267
.propagateErr(); } const auto& metaStmt = tryResult1267.inspect
();
15666 CreateStatement, metaQuery))auto tryResult1267 = (::mozilla::ToResultInvoke< nsCOMPtr<
mozIStorageStatement> >( ::std::mem_fn( &::mozilla::
detail::DerefedType<decltype(aConnection)>::CreateStatement
), (aConnection), metaQuery)); if ((__builtin_expect(!!(tryResult1267
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), metaQuery)"
, tryResult1267.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15666, mozilla::dom::quota::Severity::Error); return tryResult1267
.propagateErr(); } const auto& metaStmt = tryResult1267.inspect
();
;
15667
15668 QM_TRY(MOZ_TO_RESULT({auto tryResult1268 = (ToResult(metaStmt->BindStringByIndex
(0, NS_ConvertASCIItoUTF16(aLocale)))); static_assert(std::is_empty_v
<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect
(!!(tryResult1268.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metaStmt->BindStringByIndex(0, NS_ConvertASCIItoUTF16(aLocale)))"
, tryResult1268.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15669, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); }}
15669 metaStmt->BindStringByIndex(0, NS_ConvertASCIItoUTF16(aLocale)))){auto tryResult1268 = (ToResult(metaStmt->BindStringByIndex
(0, NS_ConvertASCIItoUTF16(aLocale)))); static_assert(std::is_empty_v
<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect
(!!(tryResult1268.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metaStmt->BindStringByIndex(0, NS_ConvertASCIItoUTF16(aLocale)))"
, tryResult1268.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15669, mozilla::dom::quota::Severity::Error); return tryResult1268
.propagateErr(); }}
;
15670
15671 QM_TRY(MOZ_TO_RESULT(metaStmt->BindInt64ByIndex(1, aIndexMetadata.id()))){auto tryResult1269 = (ToResult(metaStmt->BindInt64ByIndex
(1, aIndexMetadata.id()))); static_assert(std::is_empty_v<
typename decltype(tryResult1269)::ok_type>); if ((__builtin_expect
(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metaStmt->BindInt64ByIndex(1, aIndexMetadata.id()))"
, tryResult1269.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15671, mozilla::dom::quota::Severity::Error); return tryResult1269
.propagateErr(); }}
;
15672
15673 QM_TRY(MOZ_TO_RESULT(metaStmt->Execute())){auto tryResult1270 = (ToResult(metaStmt->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult1270)::ok_type
>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(metaStmt->Execute())"
, tryResult1270.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15673, mozilla::dom::quota::Severity::Error); return tryResult1270
.propagateErr(); }}
;
15674
15675 return NS_OK;
15676}
15677
15678nsresult OpenDatabaseOp::BeginVersionChange() {
15679 AssertIsOnOwningThread();
15680 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"
, 15680); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange"
")"); do { *((volatile int*)__null) = 15680; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15681 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"
, 15681); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()"
")"); do { *((volatile int*)__null) = 15681; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15682 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"
, 15682); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mCommonMetadata.version() <= mRequestedVersion"
")"); do { *((volatile int*)__null) = 15682; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15683 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"
, 15683); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabase"
")"); do { *((volatile int*)__null) = 15683; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15684 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"
, 15684); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mVersionChangeTransaction"
")"); do { *((volatile int*)__null) = 15684; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15685
15686 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"
, 15686)
||
15687 IsActorDestroyed()) {
15688 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15688, "UnknownErr")
;
15689 QM_TRY(MOZ_TO_RESULT(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)){auto tryResult1271 = (ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
)); static_assert(std::is_empty_v<typename decltype(tryResult1271
)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)"
, tryResult1271.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15689, mozilla::dom::quota::Severity::Error); return tryResult1271
.propagateErr(); }}
;
15690 }
15691
15692 EnsureDatabaseActor();
15693
15694 if (mDatabase->IsInvalidated()) {
15695 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15695, "UnknownErr")
;
15696 QM_TRY(MOZ_TO_RESULT(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)){auto tryResult1272 = (ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
)); static_assert(std::is_empty_v<typename decltype(tryResult1272
)::ok_type>); if ((__builtin_expect(!!(tryResult1272.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)"
, tryResult1272.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15696, mozilla::dom::quota::Severity::Error); return tryResult1272
.propagateErr(); }}
;
15697 }
15698
15699 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"
, 15699); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabase->IsClosed()"
")"); do { *((volatile int*)__null) = 15699; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15700
15701 DatabaseActorInfo* info;
15702 MOZ_ALWAYS_TRUE(gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info))do { if ((__builtin_expect(!!(gLiveDatabaseHashtable->Get(
mDatabaseId.ref(), &info)), 1))) { } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15702); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)"
")"); do { *((volatile int*)__null) = 15702; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
15703
15704 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"
, 15704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mLiveDatabases.Contains(mDatabase.unsafeGetRawPtr())"
")"); do { *((volatile int*)__null) = 15704; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15705 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"
, 15705); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp"
")"); do { *((volatile int*)__null) = 15705; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15706 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"
, 15706); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mMetadata == mMetadata"
")"); do { *((volatile int*)__null) = 15706; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15707
15708 auto transaction = MakeSafeRefPtr<VersionChangeTransaction>(this);
15709
15710 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"
, 15710)
) {
15711 return NS_ERROR_OUT_OF_MEMORY;
15712 }
15713
15714 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"
, 15714); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mMetadata != mMetadata"
")"); do { *((volatile int*)__null) = 15714; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15715 mMetadata = info->mMetadata.clonePtr();
15716
15717 const Maybe<uint64_t> newVersion = Some(mRequestedVersion);
15718
15719 QM_TRY(MOZ_TO_RESULT(SendVersionChangeMessages({auto tryResult1273 = (ToResult(SendVersionChangeMessages( info
, mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version
(), newVersion))); static_assert(std::is_empty_v<typename decltype
(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(SendVersionChangeMessages( info, mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version(), newVersion))"
, tryResult1273.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15721, mozilla::dom::quota::Severity::Error); return tryResult1273
.propagateErr(); }}
15720 info, mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version(),{auto tryResult1273 = (ToResult(SendVersionChangeMessages( info
, mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version
(), newVersion))); static_assert(std::is_empty_v<typename decltype
(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(SendVersionChangeMessages( info, mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version(), newVersion))"
, tryResult1273.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15721, mozilla::dom::quota::Severity::Error); return tryResult1273
.propagateErr(); }}
15721 newVersion))){auto tryResult1273 = (ToResult(SendVersionChangeMessages( info
, mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version
(), newVersion))); static_assert(std::is_empty_v<typename decltype
(tryResult1273)::ok_type>); if ((__builtin_expect(!!(tryResult1273
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(SendVersionChangeMessages( info, mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version(), newVersion))"
, tryResult1273.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15721, mozilla::dom::quota::Severity::Error); return tryResult1273
.propagateErr(); }}
;
15722
15723 mVersionChangeTransaction = std::move(transaction);
15724
15725 if (mMaybeBlockedDatabases.IsEmpty()) {
15726 // We don't need to wait on any databases, just jump to the transaction
15727 // pool.
15728 WaitForTransactions();
15729 return NS_OK;
15730 }
15731
15732 // If the actor gets destroyed, mWaitingFactoryOp will hold the last strong
15733 // reference to us.
15734 info->mWaitingFactoryOp = this;
15735
15736 mState = State::WaitingForOtherDatabasesToClose;
15737 return NS_OK;
15738}
15739
15740bool OpenDatabaseOp::AreActorsAlive() {
15741 AssertIsOnOwningThread();
15742 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"
, 15742); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase"
")"); do { *((volatile int*)__null) = 15742; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15743
15744 return !(IsActorDestroyed() || mDatabase->IsActorDestroyed());
15745}
15746
15747void OpenDatabaseOp::SendBlockedNotification() {
15748 AssertIsOnOwningThread();
15749 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"
, 15749); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForOtherDatabasesToClose"
")"); do { *((volatile int*)__null) = 15749; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15750
15751 if (!IsActorDestroyed()) {
15752 Unused << SendBlocked(mMetadata->mCommonMetadata.version());
15753 }
15754}
15755
15756nsresult OpenDatabaseOp::DispatchToWorkThread() {
15757 AssertIsOnOwningThread();
15758 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"
, 15758); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForTransactionsToComplete"
")"); do { *((volatile int*)__null) = 15758; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15759 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"
, 15759); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mVersionChangeTransaction"
")"); do { *((volatile int*)__null) = 15759; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15760 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"
, 15761); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mVersionChangeTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 15761; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
15761 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"
, 15761); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mVersionChangeTransaction->GetMode() == IDBTransaction::Mode::VersionChange"
")"); do { *((volatile int*)__null) = 15761; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15762 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"
, 15762); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()"
")"); do { *((volatile int*)__null) = 15762; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15763
15764 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"
, 15764)
||
15765 IsActorDestroyed() || mDatabase->IsInvalidated()) {
15766 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15766, "UnknownErr")
;
15767 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
15768 }
15769
15770 mState = State::DatabaseWorkVersionChange;
15771
15772 // Intentionally empty.
15773 nsTArray<nsString> objectStoreNames;
15774
15775 const int64_t loggingSerialNumber =
15776 mVersionChangeTransaction->LoggingSerialNumber();
15777 const nsID& backgroundChildLoggingId =
15778 mVersionChangeTransaction->GetLoggingInfo()->Id();
15779
15780 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"
, 15780)
) {
15781 return NS_ERROR_OUT_OF_MEMORY;
15782 }
15783
15784 if (!gConnectionPool) {
15785 gConnectionPool = new ConnectionPool();
15786 }
15787
15788 RefPtr<VersionChangeOp> versionChangeOp = new VersionChangeOp(this);
15789
15790 uint64_t transactionId = versionChangeOp->StartOnConnectionPool(
15791 backgroundChildLoggingId, mVersionChangeTransaction->DatabaseId(),
15792 loggingSerialNumber, objectStoreNames,
15793 /* aIsWriteTransaction */ true);
15794
15795 mVersionChangeOp = versionChangeOp;
15796
15797 mVersionChangeTransaction->NoteActiveRequest();
15798 mVersionChangeTransaction->Init(transactionId);
15799
15800 return NS_OK;
15801}
15802
15803nsresult OpenDatabaseOp::SendUpgradeNeeded() {
15804 AssertIsOnOwningThread();
15805 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"
, 15805); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkVersionChange"
")"); do { *((volatile int*)__null) = 15805; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15806 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"
, 15806); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mVersionChangeTransaction"
")"); do { *((volatile int*)__null) = 15806; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15807 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"
, 15807); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()"
")"); do { *((volatile int*)__null) = 15807; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15808 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"
, 15808); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!HasFailed()"
")"); do { *((volatile int*)__null) = 15808; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15809 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"
, 15809); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase"
")"); do { *((volatile int*)__null) = 15809; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
15810
15811 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"
, 15811)
||
15812 IsActorDestroyed()) {
15813 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15813, "UnknownErr")
;
15814 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
15815 }
15816
15817 const SafeRefPtr<VersionChangeTransaction> transaction =
15818 std::move(mVersionChangeTransaction);
15819
15820 nsresult rv = EnsureDatabaseActorIsAlive();
15821 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"
, 15821)
) {
15822 return rv;
15823 }
15824
15825 // Transfer ownership to IPDL.
15826 transaction->SetActorAlive();
15827
15828 if (!mDatabase->SendPBackgroundIDBVersionChangeTransactionConstructor(
15829 transaction.unsafeGetRawPtr(), mMetadata->mCommonMetadata.version(),
15830 mRequestedVersion, mMetadata->mNextObjectStoreId,
15831 mMetadata->mNextIndexId)) {
15832 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 15832, "UnknownErr")
;
15833 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
15834 }
15835
15836 return NS_OK;
15837}
15838
15839void OpenDatabaseOp::SendResults() {
15840 AssertIsOnOwningThread();
15841 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"
, 15841); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::SendingResults"
")"); do { *((volatile int*)__null) = 15841; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15842 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"
, 15842); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()"
")"); do { *((volatile int*)__null) = 15842; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15843 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"
, 15843); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mVersionChangeTransaction"
")"); do { *((volatile int*)__null) = 15843; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
15844
15845 DebugOnly<DatabaseActorInfo*> info = nullptr;
15846 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"
, 15848); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp"
")"); do { *((volatile int*)__null) = 15848; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
15847 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"
, 15848); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp"
")"); do { *((volatile int*)__null) = 15848; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
15848 !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"
, 15848); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp"
")"); do { *((volatile int*)__null) = 15848; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
15849
15850 if (mVersionChangeTransaction) {
15851 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"
, 15851); AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasFailed()"
")"); do { *((volatile int*)__null) = 15851; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15852
15853 mVersionChangeTransaction->Abort(ResultCode(), /* aForce */ true);
15854 mVersionChangeTransaction = nullptr;
15855 }
15856
15857 if (IsActorDestroyed()) {
15858 SetFailureCodeIfUnset(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR);
15859 } else {
15860 FactoryRequestResponse response;
15861
15862 if (!HasFailed()) {
15863 // If we just successfully completed a versionchange operation then we
15864 // need to update the version in our metadata.
15865 mMetadata->mCommonMetadata.version() = mRequestedVersion;
15866
15867 mFileManager->UpdateDatabaseVersion(mRequestedVersion);
15868
15869 nsresult rv = EnsureDatabaseActorIsAlive();
15870 if (NS_SUCCEEDED(rv)((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) {
15871 // We successfully opened a database so use its actor as the success
15872 // result for this request.
15873
15874 // XXX OpenDatabaseRequestResponse stores a raw pointer, can this be
15875 // avoided?
15876 response = OpenDatabaseRequestResponse{
15877 WrapNotNull(mDatabase.unsafeGetRawPtr())};
15878 } else {
15879 response = ClampResultCode(rv);
15880#ifdef DEBUG1
15881 SetFailureCode(response.get_nsresult());
15882#endif
15883 }
15884 } else {
15885#ifdef DEBUG1
15886 // If something failed then our metadata pointer is now bad. No one should
15887 // ever touch it again though so just null it out in DEBUG builds to make
15888 // sure we find such cases.
15889 mMetadata = nullptr;
15890#endif
15891 response = ClampResultCode(ResultCode());
15892 }
15893
15894 Unused << PBackgroundIDBFactoryRequestParent::Send__delete__(this,
15895 response);
15896 }
15897
15898 if (mDatabase) {
15899 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"
, 15899); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLock"
")"); do { *((volatile int*)__null) = 15899; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15900
15901 if (HasFailed()) {
15902 mDatabase->Invalidate();
15903 }
15904
15905 // Make sure to release the database on this thread.
15906 mDatabase = nullptr;
15907
15908 CleanupMetadata();
15909 } else if (mDirectoryLock) {
15910 // ConnectionClosedCallback will call CleanupMetadata().
15911 nsCOMPtr<nsIRunnable> callback = NewRunnableMethod(
15912 "dom::indexedDB::OpenDatabaseOp::ConnectionClosedCallback", this,
15913 &OpenDatabaseOp::ConnectionClosedCallback);
15914
15915 RefPtr<WaitForTransactionsHelper> helper =
15916 new WaitForTransactionsHelper(mDatabaseId.ref(), callback);
15917 helper->WaitForTransactions();
15918 } else {
15919 CleanupMetadata();
15920 }
15921
15922 FinishSendResults();
15923}
15924
15925void OpenDatabaseOp::ConnectionClosedCallback() {
15926 AssertIsOnOwningThread();
15927 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"
, 15927); AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasFailed()"
")"); do { *((volatile int*)__null) = 15927; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15928 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"
, 15928); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock"
")"); do { *((volatile int*)__null) = 15928; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15929
15930 DropDirectoryLock(mDirectoryLock);
15931
15932 CleanupMetadata();
15933}
15934
15935void OpenDatabaseOp::EnsureDatabaseActor() {
15936 AssertIsOnOwningThread();
15937 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"
, 15939); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange || mState == State::DatabaseWorkVersionChange || mState == State::SendingResults"
")"); do { *((volatile int*)__null) = 15939; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
15938 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"
, 15939); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange || mState == State::DatabaseWorkVersionChange || mState == State::SendingResults"
")"); do { *((volatile int*)__null) = 15939; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
15939 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"
, 15939); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange || mState == State::DatabaseWorkVersionChange || mState == State::SendingResults"
")"); do { *((volatile int*)__null) = 15939; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15940 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"
, 15940); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!HasFailed()"
")"); do { *((volatile int*)__null) = 15940; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15941 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"
, 15941); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseFilePath.isSome()"
")"); do { *((volatile int*)__null) = 15941; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15942 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"
, 15942); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()"
")"); do { *((volatile int*)__null) = 15942; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15943
15944 if (mDatabase) {
15945 return;
15946 }
15947
15948 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"
, 15948); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mDatabaseId.IsEmpty()"
")"); do { *((volatile int*)__null) = 15948; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15949 mMetadata->mDatabaseId = mDatabaseId.ref();
15950
15951 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"
, 15951); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mFilePath.IsEmpty()"
")"); do { *((volatile int*)__null) = 15951; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15952 mMetadata->mFilePath = mDatabaseFilePath.ref();
15953
15954 DatabaseActorInfo* info;
15955 if (gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)) {
15956 AssertMetadataConsistency(*info->mMetadata);
15957 mMetadata = info->mMetadata.clonePtr();
15958 }
15959
15960 Maybe<const CipherKey> maybeKey =
15961 mInPrivateBrowsing ? mFileManager->MutableCipherKeyManagerRef().Get()
15962 : Nothing();
15963
15964 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"
, 15964); AnnotateMozCrashReason("MOZ_RELEASE_ASSERT" "(" "mInPrivateBrowsing == maybeKey.isSome()"
")"); do { *((volatile int*)__null) = 15964; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15965
15966 // XXX Shouldn't Manager() return already_AddRefed when
15967 // PBackgroundIDBFactoryParent is declared refcounted?
15968 mDatabase = MakeSafeRefPtr<Database>(
15969 SafeRefPtr{static_cast<Factory*>(Manager()),
15970 AcquireStrongRefFromRawPtr{}},
15971 mCommonParams.principalInfo(), mContentParentId, mOriginMetadata,
15972 mTelemetryId, mMetadata.clonePtr(), mFileManager.clonePtr(),
15973 std::move(mDirectoryLock), mInPrivateBrowsing, maybeKey);
15974
15975 if (info) {
15976 info->mLiveDatabases.AppendElement(
15977 WrapNotNullUnchecked(mDatabase.unsafeGetRawPtr()));
15978 } else {
15979 // XXX Maybe use LookupOrInsertWith above, to avoid a second lookup here?
15980 info = gLiveDatabaseHashtable
15981 ->InsertOrUpdate(
15982 mDatabaseId.ref(),
15983 MakeUnique<DatabaseActorInfo>(
15984 mMetadata.clonePtr(),
15985 WrapNotNullUnchecked(mDatabase.unsafeGetRawPtr())))
15986 .get();
15987 }
15988
15989 // Balanced in Database::CleanupMetadata().
15990 IncreaseBusyCount();
15991}
15992
15993nsresult OpenDatabaseOp::EnsureDatabaseActorIsAlive() {
15994 AssertIsOnOwningThread();
15995 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"
, 15996); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkVersionChange || mState == State::SendingResults"
")"); do { *((volatile int*)__null) = 15996; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
15996 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"
, 15996); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkVersionChange || mState == State::SendingResults"
")"); do { *((volatile int*)__null) = 15996; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15997 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"
, 15997); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!HasFailed()"
")"); do { *((volatile int*)__null) = 15997; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15998 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"
, 15998); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()"
")"); do { *((volatile int*)__null) = 15998; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
15999
16000 EnsureDatabaseActor();
16001
16002 if (mDatabase->IsActorAlive()) {
16003 return NS_OK;
16004 }
16005
16006 auto* const factory = static_cast<Factory*>(Manager());
16007
16008 QM_TRY_INSPECT(const auto& spec, MetadataToSpec())auto tryResult1274 = (MetadataToSpec()); if ((__builtin_expect
(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError
("MetadataToSpec()", tryResult1274.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16008, mozilla::dom::quota::Severity::Error); return tryResult1274
.propagateErr(); } const auto& spec = tryResult1274.inspect
();
;
16009
16010 mDatabase->SetActorAlive();
16011
16012 if (!factory->SendPBackgroundIDBDatabaseConstructor(
16013 mDatabase.unsafeGetRawPtr(), spec, WrapNotNull(this))) {
16014 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16014, "UnknownErr")
;
16015 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
16016 }
16017
16018 return NS_OK;
16019}
16020
16021Result<DatabaseSpec, nsresult> OpenDatabaseOp::MetadataToSpec() const {
16022 AssertIsOnOwningThread();
16023 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"
, 16023); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata"
")"); do { *((volatile int*)__null) = 16023; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16024
16025 DatabaseSpec spec;
16026 spec.metadata() = mMetadata->mCommonMetadata;
16027
16028 QM_TRY_UNWRAP(spec.objectStores(),auto tryResult1276 = (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"
, 16035); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16035; __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"
, 16036); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16036; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1275 = (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"
, 16047); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16047; __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"
, 16048); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16048; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1275.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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16052, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1276.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\", 16035); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16035; __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\", 16036); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16036; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1275 = (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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1275.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\\\", 16047); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16047; __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\\\", 16048); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1275.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16052, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1276.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16058, mozilla::dom::quota::Severity::Error); return tryResult1276
.propagateErr(); } spec.objectStores() = tryResult1276.unwrap
();
16029 TransformIntoNewArrayAbortOnErr(auto tryResult1276 = (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"
, 16035); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16035; __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"
, 16036); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16036; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1275 = (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"
, 16047); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16047; __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"
, 16048); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16048; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1275.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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16052, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1276.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\", 16035); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16035; __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\", 16036); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16036; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1275 = (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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1275.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\\\", 16047); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16047; __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\\\", 16048); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1275.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16052, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1276.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16058, mozilla::dom::quota::Severity::Error); return tryResult1276
.propagateErr(); } spec.objectStores() = tryResult1276.unwrap
();
16030 mMetadata->mObjectStores,auto tryResult1276 = (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"
, 16035); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16035; __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"
, 16036); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16036; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1275 = (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"
, 16047); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16047; __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"
, 16048); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16048; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1275.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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16052, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1276.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\", 16035); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16035; __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\", 16036); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16036; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1275 = (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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1275.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\\\", 16047); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16047; __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\\\", 16048); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1275.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16052, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1276.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16058, mozilla::dom::quota::Severity::Error); return tryResult1276
.propagateErr(); } spec.objectStores() = tryResult1276.unwrap
();
16031 [](const auto& objectStoreEntry)auto tryResult1276 = (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"
, 16035); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16035; __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"
, 16036); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16036; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1275 = (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"
, 16047); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16047; __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"
, 16048); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16048; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1275.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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16052, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1276.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\", 16035); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16035; __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\", 16036); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16036; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1275 = (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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1275.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\\\", 16047); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16047; __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\\\", 16048); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1275.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16052, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1276.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16058, mozilla::dom::quota::Severity::Error); return tryResult1276
.propagateErr(); } spec.objectStores() = tryResult1276.unwrap
();
16032 -> mozilla::Result<ObjectStoreSpec, nsresult> {auto tryResult1276 = (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"
, 16035); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16035; __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"
, 16036); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16036; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1275 = (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"
, 16047); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16047; __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"
, 16048); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16048; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1275.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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16052, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1276.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\", 16035); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16035; __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\", 16036); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16036; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1275 = (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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1275.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\\\", 16047); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16047; __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\\\", 16048); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1275.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16052, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1276.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16058, mozilla::dom::quota::Severity::Error); return tryResult1276
.propagateErr(); } spec.objectStores() = tryResult1276.unwrap
();
16033 FullObjectStoreMetadata* metadata =auto tryResult1276 = (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"
, 16035); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16035; __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"
, 16036); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16036; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1275 = (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"
, 16047); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16047; __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"
, 16048); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16048; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1275.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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16052, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1276.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\", 16035); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16035; __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\", 16036); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16036; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1275 = (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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1275.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\\\", 16047); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16047; __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\\\", 16048); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1275.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16052, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1276.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16058, mozilla::dom::quota::Severity::Error); return tryResult1276
.propagateErr(); } spec.objectStores() = tryResult1276.unwrap
();
16034 objectStoreEntry.GetWeak();auto tryResult1276 = (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"
, 16035); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16035; __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"
, 16036); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16036; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1275 = (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"
, 16047); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16047; __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"
, 16048); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16048; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1275.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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16052, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1276.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\", 16035); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16035; __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\", 16036); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16036; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1275 = (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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1275.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\\\", 16047); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16047; __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\\\", 16048); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1275.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16052, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1276.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16058, mozilla::dom::quota::Severity::Error); return tryResult1276
.propagateErr(); } spec.objectStores() = tryResult1276.unwrap
();
16035 MOZ_ASSERT(objectStoreEntry.GetKey());auto tryResult1276 = (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"
, 16035); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16035; __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"
, 16036); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16036; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1275 = (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"
, 16047); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16047; __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"
, 16048); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16048; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1275.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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16052, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1276.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\", 16035); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16035; __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\", 16036); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16036; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1275 = (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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1275.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\\\", 16047); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16047; __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\\\", 16048); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1275.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16052, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1276.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16058, mozilla::dom::quota::Severity::Error); return tryResult1276
.propagateErr(); } spec.objectStores() = tryResult1276.unwrap
();
16036 MOZ_ASSERT(metadata);auto tryResult1276 = (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"
, 16035); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16035; __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"
, 16036); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16036; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1275 = (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"
, 16047); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16047; __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"
, 16048); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16048; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1275.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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16052, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1276.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\", 16035); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16035; __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\", 16036); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16036; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1275 = (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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1275.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\\\", 16047); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16047; __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\\\", 16048); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1275.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16052, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1276.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16058, mozilla::dom::quota::Severity::Error); return tryResult1276
.propagateErr(); } spec.objectStores() = tryResult1276.unwrap
();
16037
16038 ObjectStoreSpec objectStoreSpec;auto tryResult1276 = (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"
, 16035); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16035; __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"
, 16036); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16036; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1275 = (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"
, 16047); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16047; __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"
, 16048); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16048; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1275.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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16052, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1276.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\", 16035); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16035; __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\", 16036); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16036; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1275 = (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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1275.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\\\", 16047); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16047; __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\\\", 16048); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1275.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16052, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1276.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16058, mozilla::dom::quota::Severity::Error); return tryResult1276
.propagateErr(); } spec.objectStores() = tryResult1276.unwrap
();
16039 objectStoreSpec.metadata() = metadata->mCommonMetadata;auto tryResult1276 = (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"
, 16035); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16035; __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"
, 16036); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16036; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1275 = (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"
, 16047); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16047; __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"
, 16048); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16048; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1275.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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16052, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1276.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\", 16035); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16035; __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\", 16036); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16036; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1275 = (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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1275.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\\\", 16047); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16047; __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\\\", 16048); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1275.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16052, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1276.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16058, mozilla::dom::quota::Severity::Error); return tryResult1276
.propagateErr(); } spec.objectStores() = tryResult1276.unwrap
();
16040
16041 QM_TRY_UNWRAP(auto indexes,auto tryResult1276 = (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"
, 16035); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16035; __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"
, 16036); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16036; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1275 = (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"
, 16047); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16047; __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"
, 16048); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16048; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1275.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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16052, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1276.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\", 16035); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16035; __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\", 16036); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16036; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1275 = (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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1275.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\\\", 16047); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16047; __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\\\", 16048); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1275.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16052, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1276.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16058, mozilla::dom::quota::Severity::Error); return tryResult1276
.propagateErr(); } spec.objectStores() = tryResult1276.unwrap
();
16042 TransformIntoNewArray(auto tryResult1276 = (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"
, 16035); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16035; __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"
, 16036); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16036; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1275 = (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"
, 16047); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16047; __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"
, 16048); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16048; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1275.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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16052, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1276.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\", 16035); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16035; __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\", 16036); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16036; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1275 = (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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1275.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\\\", 16047); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16047; __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\\\", 16048); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1275.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16052, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1276.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16058, mozilla::dom::quota::Severity::Error); return tryResult1276
.propagateErr(); } spec.objectStores() = tryResult1276.unwrap
();
16043 metadata->mIndexes,auto tryResult1276 = (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"
, 16035); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16035; __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"
, 16036); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16036; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1275 = (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"
, 16047); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16047; __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"
, 16048); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16048; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1275.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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16052, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1276.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\", 16035); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16035; __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\", 16036); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16036; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1275 = (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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1275.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\\\", 16047); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16047; __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\\\", 16048); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1275.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16052, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1276.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16058, mozilla::dom::quota::Severity::Error); return tryResult1276
.propagateErr(); } spec.objectStores() = tryResult1276.unwrap
();
16044 [](const auto& indexEntry) {auto tryResult1276 = (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"
, 16035); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16035; __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"
, 16036); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16036; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1275 = (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"
, 16047); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16047; __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"
, 16048); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16048; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1275.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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16052, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1276.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\", 16035); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16035; __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\", 16036); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16036; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1275 = (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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1275.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\\\", 16047); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16047; __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\\\", 16048); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1275.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16052, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1276.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16058, mozilla::dom::quota::Severity::Error); return tryResult1276
.propagateErr(); } spec.objectStores() = tryResult1276.unwrap
();
16045 FullIndexMetadata* indexMetadata =auto tryResult1276 = (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"
, 16035); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16035; __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"
, 16036); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16036; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1275 = (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"
, 16047); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16047; __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"
, 16048); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16048; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1275.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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16052, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1276.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\", 16035); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16035; __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\", 16036); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16036; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1275 = (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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1275.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\\\", 16047); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16047; __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\\\", 16048); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1275.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16052, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1276.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16058, mozilla::dom::quota::Severity::Error); return tryResult1276
.propagateErr(); } spec.objectStores() = tryResult1276.unwrap
();
16046 indexEntry.GetWeak();auto tryResult1276 = (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"
, 16035); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16035; __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"
, 16036); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16036; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1275 = (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"
, 16047); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16047; __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"
, 16048); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16048; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1275.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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16052, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1276.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\", 16035); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16035; __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\", 16036); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16036; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1275 = (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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1275.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\\\", 16047); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16047; __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\\\", 16048); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1275.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16052, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1276.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16058, mozilla::dom::quota::Severity::Error); return tryResult1276
.propagateErr(); } spec.objectStores() = tryResult1276.unwrap
();
16047 MOZ_ASSERT(indexEntry.GetKey());auto tryResult1276 = (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"
, 16035); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16035; __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"
, 16036); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16036; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1275 = (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"
, 16047); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16047; __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"
, 16048); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16048; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1275.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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16052, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1276.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\", 16035); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16035; __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\", 16036); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16036; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1275 = (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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1275.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\\\", 16047); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16047; __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\\\", 16048); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1275.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16052, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1276.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16058, mozilla::dom::quota::Severity::Error); return tryResult1276
.propagateErr(); } spec.objectStores() = tryResult1276.unwrap
();
16048 MOZ_ASSERT(indexMetadata);auto tryResult1276 = (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"
, 16035); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16035; __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"
, 16036); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16036; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1275 = (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"
, 16047); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16047; __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"
, 16048); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16048; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1275.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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16052, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1276.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\", 16035); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16035; __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\", 16036); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16036; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1275 = (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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1275.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\\\", 16047); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16047; __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\\\", 16048); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1275.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16052, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1276.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16058, mozilla::dom::quota::Severity::Error); return tryResult1276
.propagateErr(); } spec.objectStores() = tryResult1276.unwrap
();
16049
16050 return indexMetadata->mCommonMetadata;auto tryResult1276 = (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"
, 16035); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16035; __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"
, 16036); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16036; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1275 = (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"
, 16047); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16047; __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"
, 16048); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16048; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1275.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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16052, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1276.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\", 16035); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16035; __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\", 16036); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16036; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1275 = (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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1275.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\\\", 16047); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16047; __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\\\", 16048); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1275.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16052, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1276.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16058, mozilla::dom::quota::Severity::Error); return tryResult1276
.propagateErr(); } spec.objectStores() = tryResult1276.unwrap
();
16051 },auto tryResult1276 = (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"
, 16035); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16035; __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"
, 16036); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16036; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1275 = (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"
, 16047); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16047; __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"
, 16048); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16048; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1275.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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16052, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1276.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\", 16035); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16035; __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\", 16036); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16036; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1275 = (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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1275.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\\\", 16047); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16047; __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\\\", 16048); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1275.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16052, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1276.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16058, mozilla::dom::quota::Severity::Error); return tryResult1276
.propagateErr(); } spec.objectStores() = tryResult1276.unwrap
();
16052 fallible));auto tryResult1276 = (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"
, 16035); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16035; __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"
, 16036); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16036; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1275 = (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"
, 16047); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16047; __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"
, 16048); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16048; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1275.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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16052, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1276.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\", 16035); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16035; __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\", 16036); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16036; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1275 = (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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1275.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\\\", 16047); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16047; __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\\\", 16048); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1275.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16052, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1276.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16058, mozilla::dom::quota::Severity::Error); return tryResult1276
.propagateErr(); } spec.objectStores() = tryResult1276.unwrap
();
16053
16054 objectStoreSpec.indexes() = std::move(indexes);auto tryResult1276 = (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"
, 16035); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16035; __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"
, 16036); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16036; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1275 = (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"
, 16047); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16047; __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"
, 16048); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16048; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1275.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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16052, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1276.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\", 16035); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16035; __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\", 16036); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16036; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1275 = (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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1275.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\\\", 16047); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16047; __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\\\", 16048); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1275.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16052, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1276.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16058, mozilla::dom::quota::Severity::Error); return tryResult1276
.propagateErr(); } spec.objectStores() = tryResult1276.unwrap
();
16055
16056 return objectStoreSpec;auto tryResult1276 = (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"
, 16035); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16035; __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"
, 16036); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16036; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1275 = (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"
, 16047); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16047; __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"
, 16048); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16048; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1275.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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16052, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1276.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\", 16035); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16035; __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\", 16036); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16036; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1275 = (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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1275.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\\\", 16047); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16047; __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\\\", 16048); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1275.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16052, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1276.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16058, mozilla::dom::quota::Severity::Error); return tryResult1276
.propagateErr(); } spec.objectStores() = tryResult1276.unwrap
();
16057 },auto tryResult1276 = (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"
, 16035); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16035; __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"
, 16036); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16036; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1275 = (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"
, 16047); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16047; __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"
, 16048); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16048; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1275.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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16052, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1276.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\", 16035); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16035; __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\", 16036); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16036; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1275 = (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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1275.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\\\", 16047); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16047; __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\\\", 16048); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1275.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16052, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1276.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16058, mozilla::dom::quota::Severity::Error); return tryResult1276
.propagateErr(); } spec.objectStores() = tryResult1276.unwrap
();
16058 fallible))auto tryResult1276 = (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"
, 16035); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16035; __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"
, 16036); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 16036; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); ObjectStoreSpec
objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata
; auto tryResult1275 = (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"
, 16047); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()"
")"); do { *((volatile int*)__null) = 16047; __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"
, 16048); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 16048; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); return
indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect
(!!(tryResult1275.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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)"
, tryResult1275.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16052, mozilla::dom::quota::Severity::Error); return tryResult1275
.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec
.indexes() = std::move(indexes); return objectStoreSpec; }, fallible
)); if ((__builtin_expect(!!(tryResult1276.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\", 16035); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16035; __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\", 16036); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { *((volatile int*)__null) = 16036; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1275 = (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\", 16047); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { *((volatile int*)__null) = 16047; __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\", 16048); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1275.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\\\", 16047); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { *((volatile int*)__null) = 16047; __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\\\", 16048); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { *((volatile int*)__null) = 16048; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1275.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16052, mozilla::dom::quota::Severity::Error); return tryResult1275.propagateErr(); } auto indexes = tryResult1275.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)"
, tryResult1276.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16058, mozilla::dom::quota::Severity::Error); return tryResult1276
.propagateErr(); } spec.objectStores() = tryResult1276.unwrap
();
;
16059
16060 return spec;
16061}
16062
16063#ifdef DEBUG1
16064
16065void OpenDatabaseOp::AssertMetadataConsistency(
16066 const FullDatabaseMetadata& aMetadata) {
16067 AssertIsOnBackgroundThread();
16068
16069 const FullDatabaseMetadata& thisDB = *mMetadata;
16070 const FullDatabaseMetadata& otherDB = aMetadata;
16071
16072 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"
, 16072); AnnotateMozCrashReason("MOZ_ASSERT" "(" "&thisDB != &otherDB"
")"); do { *((volatile int*)__null) = 16072; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16073
16074 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"
, 16074); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mCommonMetadata.name() == otherDB.mCommonMetadata.name()"
")"); do { *((volatile int*)__null) = 16074; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16075 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"
, 16076); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mCommonMetadata.version() == otherDB.mCommonMetadata.version()"
")"); do { *((volatile int*)__null) = 16076; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16076 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"
, 16076); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mCommonMetadata.version() == otherDB.mCommonMetadata.version()"
")"); do { *((volatile int*)__null) = 16076; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16077 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"
, 16078); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mCommonMetadata.persistenceType() == otherDB.mCommonMetadata.persistenceType()"
")"); do { *((volatile int*)__null) = 16078; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16078 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"
, 16078); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mCommonMetadata.persistenceType() == otherDB.mCommonMetadata.persistenceType()"
")"); do { *((volatile int*)__null) = 16078; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16079 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"
, 16079); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mDatabaseId == otherDB.mDatabaseId"
")"); do { *((volatile int*)__null) = 16079; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16080 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"
, 16080); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mFilePath == otherDB.mFilePath"
")"); do { *((volatile int*)__null) = 16080; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16081
16082 // |thisDB| reflects the latest objectStore and index ids that have committed
16083 // to disk. The in-memory metadata |otherDB| keeps track of objectStores and
16084 // indexes that were created and then removed as well, so the next ids for
16085 // |otherDB| may be higher than for |thisDB|.
16086 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"
, 16086); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mNextObjectStoreId <= otherDB.mNextObjectStoreId"
")"); do { *((volatile int*)__null) = 16086; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16087 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"
, 16087); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mNextIndexId <= otherDB.mNextIndexId"
")"); do { *((volatile int*)__null) = 16087; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16088
16089 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"
, 16089); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mObjectStores.Count() == otherDB.mObjectStores.Count()"
")"); do { *((volatile int*)__null) = 16089; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16090
16091 for (const auto& thisObjectStore : thisDB.mObjectStores.Values()) {
16092 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"
, 16092); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore"
")"); do { *((volatile int*)__null) = 16092; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16093 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"
, 16093); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!thisObjectStore->mDeleted"
")"); do { *((volatile int*)__null) = 16093; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16094
16095 auto otherObjectStore = MatchMetadataNameOrId(
16096 otherDB.mObjectStores, thisObjectStore->mCommonMetadata.id());
16097 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"
, 16097); AnnotateMozCrashReason("MOZ_ASSERT" "(" "otherObjectStore"
")"); do { *((volatile int*)__null) = 16097; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16098
16099 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"
, 16099); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore != &otherObjectStore.ref()"
")"); do { *((volatile int*)__null) = 16099; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16100
16101 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"
, 16102); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.id() == otherObjectStore->mCommonMetadata.id()"
")"); do { *((volatile int*)__null) = 16102; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16102 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"
, 16102); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.id() == otherObjectStore->mCommonMetadata.id()"
")"); do { *((volatile int*)__null) = 16102; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16103 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"
, 16104); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.name() == otherObjectStore->mCommonMetadata.name()"
")"); do { *((volatile int*)__null) = 16104; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16104 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"
, 16104); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.name() == otherObjectStore->mCommonMetadata.name()"
")"); do { *((volatile int*)__null) = 16104; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16105 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"
, 16106); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.autoIncrement() == otherObjectStore->mCommonMetadata.autoIncrement()"
")"); do { *((volatile int*)__null) = 16106; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16106 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"
, 16106); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.autoIncrement() == otherObjectStore->mCommonMetadata.autoIncrement()"
")"); do { *((volatile int*)__null) = 16106; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16107 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"
, 16108); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.keyPath() == otherObjectStore->mCommonMetadata.keyPath()"
")"); do { *((volatile int*)__null) = 16108; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16108 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"
, 16108); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.keyPath() == otherObjectStore->mCommonMetadata.keyPath()"
")"); do { *((volatile int*)__null) = 16108; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16109 // mNextAutoIncrementId and mCommittedAutoIncrementId may be modified
16110 // concurrently with this OpenOp, so it is not possible to assert equality
16111 // here. It's also possible that we've written the new ids to disk but not
16112 // yet updated the in-memory count.
16113 // TODO The first part of the comment should probably be rephrased. I think
16114 // it still applies but it sounds as if this were thread-unsafe like it was
16115 // before, which isn't true anymore.
16116 {
16117 const auto&& thisAutoIncrementIds =
16118 thisObjectStore->mAutoIncrementIds.Lock();
16119 const auto&& otherAutoIncrementIds =
16120 otherObjectStore->mAutoIncrementIds.Lock();
16121
16122 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"
, 16122); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisAutoIncrementIds->next <= otherAutoIncrementIds->next"
")"); do { *((volatile int*)__null) = 16122; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16123 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"
, 16125); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds->next"
")"); do { *((volatile int*)__null) = 16125; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16124 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"
, 16125); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds->next"
")"); do { *((volatile int*)__null) = 16125; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16125 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"
, 16125); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds->next"
")"); do { *((volatile int*)__null) = 16125; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16126 }
16127 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"
, 16127); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!otherObjectStore->mDeleted"
")"); do { *((volatile int*)__null) = 16127; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16128
16129 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"
, 16130); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mIndexes.Count() == otherObjectStore->mIndexes.Count()"
")"); do { *((volatile int*)__null) = 16130; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16130 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"
, 16130); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mIndexes.Count() == otherObjectStore->mIndexes.Count()"
")"); do { *((volatile int*)__null) = 16130; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16131
16132 for (const auto& thisIndex : thisObjectStore->mIndexes.Values()) {
16133 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"
, 16133); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex"
")"); do { *((volatile int*)__null) = 16133; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16134 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"
, 16134); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!thisIndex->mDeleted"
")"); do { *((volatile int*)__null) = 16134; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16135
16136 auto otherIndex = MatchMetadataNameOrId(otherObjectStore->mIndexes,
16137 thisIndex->mCommonMetadata.id());
16138 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"
, 16138); AnnotateMozCrashReason("MOZ_ASSERT" "(" "otherIndex"
")"); do { *((volatile int*)__null) = 16138; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16139
16140 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"
, 16140); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex != &otherIndex.ref()"
")"); do { *((volatile int*)__null) = 16140; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16141
16142 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"
, 16143); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.id() == otherIndex->mCommonMetadata.id()"
")"); do { *((volatile int*)__null) = 16143; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16143 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"
, 16143); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.id() == otherIndex->mCommonMetadata.id()"
")"); do { *((volatile int*)__null) = 16143; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16144 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"
, 16145); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.name() == otherIndex->mCommonMetadata.name()"
")"); do { *((volatile int*)__null) = 16145; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16145 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"
, 16145); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.name() == otherIndex->mCommonMetadata.name()"
")"); do { *((volatile int*)__null) = 16145; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16146 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"
, 16147); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.keyPath() == otherIndex->mCommonMetadata.keyPath()"
")"); do { *((volatile int*)__null) = 16147; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16147 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"
, 16147); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.keyPath() == otherIndex->mCommonMetadata.keyPath()"
")"); do { *((volatile int*)__null) = 16147; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16148 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"
, 16149); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.unique() == otherIndex->mCommonMetadata.unique()"
")"); do { *((volatile int*)__null) = 16149; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16149 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"
, 16149); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.unique() == otherIndex->mCommonMetadata.unique()"
")"); do { *((volatile int*)__null) = 16149; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16150 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"
, 16151); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.multiEntry() == otherIndex->mCommonMetadata.multiEntry()"
")"); do { *((volatile int*)__null) = 16151; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16151 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"
, 16151); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.multiEntry() == otherIndex->mCommonMetadata.multiEntry()"
")"); do { *((volatile int*)__null) = 16151; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16152 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"
, 16152); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!otherIndex->mDeleted"
")"); do { *((volatile int*)__null) = 16152; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16153 }
16154 }
16155}
16156
16157#endif // DEBUG
16158
16159nsresult OpenDatabaseOp::VersionChangeOp::DoDatabaseWork(
16160 DatabaseConnection* aConnection) {
16161 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"
, 16161); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 16161; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16162 aConnection->AssertIsOnConnectionThread();
16163 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"
, 16163); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp"
")"); do { *((volatile int*)__null) = 16163; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16164 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"
, 16164); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange"
")"); do { *((volatile int*)__null) = 16164; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16165
16166 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"
, 16166)
||
16167 !OperationMayProceed()) {
16168 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16168, "UnknownErr")
;
16169 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
16170 }
16171
16172 AUTO_PROFILER_LABEL("OpenDatabaseOp::VersionChangeOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject16172( "OpenDatabaseOp::VersionChangeOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
16173
16174 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)
16175 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)
16176 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)
;
16177
16178 Transaction().SetActiveOnConnectionThread();
16179
16180 QM_TRY(MOZ_TO_RESULT({auto tryResult1277 = (ToResult(aConnection->BeginWriteTransaction
(Transaction().GetDurability()))); static_assert(std::is_empty_v
<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect
(!!(tryResult1277.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->BeginWriteTransaction(Transaction().GetDurability()))"
, tryResult1277.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16181, mozilla::dom::quota::Severity::Error); return tryResult1277
.propagateErr(); }}
16181 aConnection->BeginWriteTransaction(Transaction().GetDurability()))){auto tryResult1277 = (ToResult(aConnection->BeginWriteTransaction
(Transaction().GetDurability()))); static_assert(std::is_empty_v
<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect
(!!(tryResult1277.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->BeginWriteTransaction(Transaction().GetDurability()))"
, tryResult1277.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16181, mozilla::dom::quota::Severity::Error); return tryResult1277
.propagateErr(); }}
;
16182
16183 // The parameter names are not used, parameters are bound by index only
16184 // locally in the same function.
16185 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1279 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE database SET version = :version;"_ns, ([&self =
*this]( mozIStorageStatement& updateStmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1278 = (ToResult(
updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion
)))); static_assert(std::is_empty_v<typename decltype(tryResult1278
)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))"
, tryResult1278.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16190, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v
<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect
(!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1278 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1278.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16190, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return Ok{}; })))"
, tryResult1279.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16193, mozilla::dom::quota::Severity::Error); return tryResult1279
.propagateErr(); }}
16186 "UPDATE database SET version = :version;"_ns,{auto tryResult1279 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE database SET version = :version;"_ns, ([&self =
*this]( mozIStorageStatement& updateStmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1278 = (ToResult(
updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion
)))); static_assert(std::is_empty_v<typename decltype(tryResult1278
)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))"
, tryResult1278.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16190, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v
<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect
(!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1278 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1278.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16190, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return Ok{}; })))"
, tryResult1279.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16193, mozilla::dom::quota::Severity::Error); return tryResult1279
.propagateErr(); }}
16187 ([&self = *this]({auto tryResult1279 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE database SET version = :version;"_ns, ([&self =
*this]( mozIStorageStatement& updateStmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1278 = (ToResult(
updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion
)))); static_assert(std::is_empty_v<typename decltype(tryResult1278
)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))"
, tryResult1278.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16190, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v
<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect
(!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1278 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1278.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16190, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return Ok{}; })))"
, tryResult1279.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16193, mozilla::dom::quota::Severity::Error); return tryResult1279
.propagateErr(); }}
16188 mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> {{auto tryResult1279 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE database SET version = :version;"_ns, ([&self =
*this]( mozIStorageStatement& updateStmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1278 = (ToResult(
updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion
)))); static_assert(std::is_empty_v<typename decltype(tryResult1278
)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))"
, tryResult1278.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16190, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v
<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect
(!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1278 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1278.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16190, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return Ok{}; })))"
, tryResult1279.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16193, mozilla::dom::quota::Severity::Error); return tryResult1279
.propagateErr(); }}
16189 QM_TRY(MOZ_TO_RESULT({auto tryResult1279 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE database SET version = :version;"_ns, ([&self =
*this]( mozIStorageStatement& updateStmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1278 = (ToResult(
updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion
)))); static_assert(std::is_empty_v<typename decltype(tryResult1278
)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))"
, tryResult1278.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16190, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v
<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect
(!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1278 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1278.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16190, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return Ok{}; })))"
, tryResult1279.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16193, mozilla::dom::quota::Severity::Error); return tryResult1279
.propagateErr(); }}
16190 updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion))));{auto tryResult1279 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE database SET version = :version;"_ns, ([&self =
*this]( mozIStorageStatement& updateStmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1278 = (ToResult(
updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion
)))); static_assert(std::is_empty_v<typename decltype(tryResult1278
)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))"
, tryResult1278.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16190, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v
<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect
(!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1278 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1278.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16190, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return Ok{}; })))"
, tryResult1279.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16193, mozilla::dom::quota::Severity::Error); return tryResult1279
.propagateErr(); }}
16191
16192 return Ok{};{auto tryResult1279 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE database SET version = :version;"_ns, ([&self =
*this]( mozIStorageStatement& updateStmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1278 = (ToResult(
updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion
)))); static_assert(std::is_empty_v<typename decltype(tryResult1278
)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))"
, tryResult1278.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16190, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v
<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect
(!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1278 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1278.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16190, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return Ok{}; })))"
, tryResult1279.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16193, mozilla::dom::quota::Severity::Error); return tryResult1279
.propagateErr(); }}
16193 })))){auto tryResult1279 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE database SET version = :version;"_ns, ([&self =
*this]( mozIStorageStatement& updateStmt) -> mozilla::
Result<Ok, nsresult> { {auto tryResult1278 = (ToResult(
updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion
)))); static_assert(std::is_empty_v<typename decltype(tryResult1278
)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))"
, tryResult1278.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16190, mozilla::dom::quota::Severity::Error); return tryResult1278
.propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v
<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect
(!!(tryResult1279.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1278 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1278.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16190, mozilla::dom::quota::Severity::Error); return tryResult1278.propagateErr(); }}; return Ok{}; })))"
, tryResult1279.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16193, mozilla::dom::quota::Severity::Error); return tryResult1279
.propagateErr(); }}
;
16194
16195 return NS_OK;
16196}
16197
16198nsresult OpenDatabaseOp::VersionChangeOp::SendSuccessResult() {
16199 AssertIsOnOwningThread();
16200 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"
, 16200); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp"
")"); do { *((volatile int*)__null) = 16200; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16201 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"
, 16201); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange"
")"); do { *((volatile int*)__null) = 16201; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16202 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"
, 16202); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mVersionChangeOp == this"
")"); do { *((volatile int*)__null) = 16202; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16203
16204 nsresult rv = mOpenDatabaseOp->SendUpgradeNeeded();
16205 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"
, 16205)
) {
16206 return rv;
16207 }
16208
16209 return NS_OK;
16210}
16211
16212bool OpenDatabaseOp::VersionChangeOp::SendFailureResult(nsresult aResultCode) {
16213 AssertIsOnOwningThread();
16214 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"
, 16214); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp"
")"); do { *((volatile int*)__null) = 16214; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16215 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"
, 16215); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange"
")"); do { *((volatile int*)__null) = 16215; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16216 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"
, 16216); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mVersionChangeOp == this"
")"); do { *((volatile int*)__null) = 16216; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16217
16218 mOpenDatabaseOp->SetFailureCode(aResultCode);
16219 mOpenDatabaseOp->mState = State::SendingResults;
16220
16221 MOZ_ALWAYS_SUCCEEDS(mOpenDatabaseOp->Run())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(mOpenDatabaseOp->Run())), 1)))), 1))) { } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "NS_SUCCEEDED(mOpenDatabaseOp->Run())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16221); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(mOpenDatabaseOp->Run())" ")"); do { *
((volatile int*)__null) = 16221; __attribute__((nomerge)) ::abort
(); } while (false); } } while (false); } } while (false)
;
16222
16223 return false;
16224}
16225
16226void OpenDatabaseOp::VersionChangeOp::Cleanup() {
16227 AssertIsOnOwningThread();
16228 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"
, 16228); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp"
")"); do { *((volatile int*)__null) = 16228; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16229 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"
, 16229); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mVersionChangeOp == this"
")"); do { *((volatile int*)__null) = 16229; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16230
16231 mOpenDatabaseOp->mVersionChangeOp = nullptr;
16232 mOpenDatabaseOp = nullptr;
16233
16234#ifdef DEBUG1
16235 // A bit hacky but the VersionChangeOp is not generated in response to a
16236 // child request like most other database operations. Do this to make our
16237 // assertions happy.
16238 //
16239 // XXX: Depending on timing, in most cases, NoteActorDestroyed will not have
16240 // been destroyed before, but in some cases it has. This should be reworked in
16241 // a way this hack is not necessary. There are also several similar cases in
16242 // other *Op classes.
16243 if (!IsActorDestroyed()) {
16244 NoteActorDestroyed();
16245 }
16246#endif
16247
16248 TransactionDatabaseOperationBase::Cleanup();
16249}
16250
16251void DeleteDatabaseOp::LoadPreviousVersion(nsIFile& aDatabaseFile) {
16252 AssertIsOnIOThread();
16253 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"
, 16253); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkOpen"
")"); do { *((volatile int*)__null) = 16253; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16254 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"
, 16254); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mPreviousVersion"
")"); do { *((volatile int*)__null) = 16254; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16255
16256 AUTO_PROFILER_LABEL("DeleteDatabaseOp::LoadPreviousVersion", DOM)mozilla::AutoProfilerLabel raiiObject16256( "DeleteDatabaseOp::LoadPreviousVersion"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
16257
16258 nsresult rv;
16259
16260 nsCOMPtr<mozIStorageService> ss =
16261 do_GetService(MOZ_STORAGE_SERVICE_CONTRACTID"@mozilla.org/storage" "/service;1", &rv);
16262 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"
, 16262)
) {
16263 return;
16264 }
16265
16266 IndexedDatabaseManager* const idm = IndexedDatabaseManager::Get();
16267 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"
, 16267); AnnotateMozCrashReason("MOZ_ASSERT" "(" "idm" ")");
do { *((volatile int*)__null) = 16267; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
16268
16269 const PersistenceType persistenceType =
16270 mCommonParams.metadata().persistenceType();
16271 const nsAString& databaseName = mCommonParams.metadata().name();
16272
16273 SafeRefPtr<DatabaseFileManager> fileManager = idm->GetFileManager(
16274 persistenceType, mOriginMetadata.mOrigin, databaseName);
16275
16276 if (!fileManager) {
16277 fileManager = MakeSafeRefPtr<DatabaseFileManager>(
16278 persistenceType, mOriginMetadata, databaseName, mDatabaseId.ref(),
16279 mDatabaseFilePath.ref(), mEnforcingQuota, mInPrivateBrowsing);
16280 }
16281
16282 const auto maybeKey =
16283 mInPrivateBrowsing
16284 ? Some(fileManager->MutableCipherKeyManagerRef().Ensure())
16285 : Nothing();
16286
16287 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"
, 16287); AnnotateMozCrashReason("MOZ_RELEASE_ASSERT" "(" "mInPrivateBrowsing == maybeKey.isSome()"
")"); do { *((volatile int*)__null) = 16287; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16288
16289 // Pass -1 as the directoryLockId to disable quota checking, since we might
16290 // temporarily exceed quota before deleting the database.
16291 QM_TRY_INSPECT(const auto& dbFileUrl,auto tryResult1280 = (GetDatabaseFileURL(aDatabaseFile, -1, maybeKey
)); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1280.unwrapErr
(); mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDatabaseFile, -1, maybeKey)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16292, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const auto& dbFileUrl = tryResult1280.inspect();
16292 GetDatabaseFileURL(aDatabaseFile, -1, maybeKey), QM_VOID)auto tryResult1280 = (GetDatabaseFileURL(aDatabaseFile, -1, maybeKey
)); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1280.unwrapErr
(); mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDatabaseFile, -1, maybeKey)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16292, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const auto& dbFileUrl = tryResult1280.inspect();
;
16293
16294 QM_TRY_UNWRAP(const NotNull<nsCOMPtr<mozIStorageConnection>> connection,auto tryResult1281 = (OpenDatabaseAndHandleBusy(*ss, *dbFileUrl
)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1281.unwrapErr
(); mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy(*ss, *dbFileUrl)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16295, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const NotNull<nsCOMPtr<mozIStorageConnection>>
connection = tryResult1281.unwrap();
16295 OpenDatabaseAndHandleBusy(*ss, *dbFileUrl), QM_VOID)auto tryResult1281 = (OpenDatabaseAndHandleBusy(*ss, *dbFileUrl
)); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1281.unwrapErr
(); mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy(*ss, *dbFileUrl)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16295, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const NotNull<nsCOMPtr<mozIStorageConnection>>
connection = tryResult1281.unwrap();
;
16296
16297#ifdef DEBUG1
16298 {
16299 QM_TRY_INSPECT(const auto& stmt,auto tryResult1282 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1282.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"
, 16303, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const auto& stmt = tryResult1282.inspect();
16300 CreateAndExecuteSingleStepStatement<auto tryResult1282 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1282.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"
, 16303, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const auto& stmt = tryResult1282.inspect();
16301 SingleStepResult::ReturnNullIfNoResult>(auto tryResult1282 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1282.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"
, 16303, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const auto& stmt = tryResult1282.inspect();
16302 *connection, "SELECT name FROM database"_ns),auto tryResult1282 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1282.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"
, 16303, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const auto& stmt = tryResult1282.inspect();
16303 QM_VOID)auto tryResult1282 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1282.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"
, 16303, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const auto& stmt = tryResult1282.inspect();
;
16304
16305 QM_TRY(OkIf(stmt), QM_VOID){auto tryResult1283 = (OkIf(stmt)); static_assert(std::is_empty_v
<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect
(!!(tryResult1283.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1283.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(stmt)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16305, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}
;
16306
16307 nsString databaseName;
16308 rv = stmt->GetString(0, databaseName);
16309 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"
, 16309)
) {
16310 return;
16311 }
16312
16313 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"
, 16313); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCommonParams.metadata().name() == databaseName"
")"); do { *((volatile int*)__null) = 16313; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16314 }
16315#endif
16316
16317 QM_TRY_INSPECT(const auto& stmt,auto tryResult1284 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1284.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"
, 16321, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const auto& stmt = tryResult1284.inspect();
16318 CreateAndExecuteSingleStepStatement<auto tryResult1284 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1284.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"
, 16321, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const auto& stmt = tryResult1284.inspect();
16319 SingleStepResult::ReturnNullIfNoResult>(auto tryResult1284 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1284.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"
, 16321, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const auto& stmt = tryResult1284.inspect();
16320 *connection, "SELECT version FROM database"_ns),auto tryResult1284 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1284.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"
, 16321, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const auto& stmt = tryResult1284.inspect();
16321 QM_VOID)auto tryResult1284 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1284.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"
, 16321, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } const auto& stmt = tryResult1284.inspect();
;
16322
16323 QM_TRY(OkIf(stmt), QM_VOID){auto tryResult1285 = (OkIf(stmt)); static_assert(std::is_empty_v
<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect
(!!(tryResult1285.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1285.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(stmt)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16323, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; }}
;
16324
16325 int64_t version;
16326 rv = stmt->GetInt64(0, &version);
16327 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"
, 16327)
) {
16328 return;
16329 }
16330
16331 mPreviousVersion = uint64_t(version);
16332}
16333
16334nsresult DeleteDatabaseOp::DatabaseOpen() {
16335 AssertIsOnOwningThread();
16336 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"
, 16336); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseOpenPending"
")"); do { *((volatile int*)__null) = 16336; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16337
16338 nsresult rv = SendToIOThread();
16339 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"
, 16339)
) {
16340 return rv;
16341 }
16342
16343 return NS_OK;
16344}
16345
16346nsresult DeleteDatabaseOp::DoDatabaseWork() {
16347 AssertIsOnIOThread();
16348 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"
, 16348); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkOpen"
")"); do { *((volatile int*)__null) = 16348; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16349 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"
, 16350); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOriginMetadata.mPersistenceType == mCommonParams.metadata().persistenceType()"
")"); do { *((volatile int*)__null) = 16350; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
16350 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"
, 16350); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOriginMetadata.mPersistenceType == mCommonParams.metadata().persistenceType()"
")"); do { *((volatile int*)__null) = 16350; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16351
16352 AUTO_PROFILER_LABEL("DeleteDatabaseOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject16352( "DeleteDatabaseOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
16353
16354 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"
, 16354)
||
16355 !OperationMayProceed()) {
16356 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16356, "UnknownErr")
;
16357 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
16358 }
16359
16360 const nsAString& databaseName = mCommonParams.metadata().name();
16361
16362 QuotaManager* const quotaManager = QuotaManager::Get();
16363 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"
, 16363); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { *((volatile int*)__null) = 16363; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16364
16365 QM_TRY_UNWRAP(auto directory,auto tryResult1286 = (quotaManager->GetOriginDirectory(mOriginMetadata
)); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)"
, tryResult1286.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16366, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); } auto directory = tryResult1286.unwrap();
16366 quotaManager->GetOriginDirectory(mOriginMetadata))auto tryResult1286 = (quotaManager->GetOriginDirectory(mOriginMetadata
)); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla
::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)"
, tryResult1286.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16366, mozilla::dom::quota::Severity::Error); return tryResult1286
.propagateErr(); } auto directory = tryResult1286.unwrap();
;
16367
16368 QM_TRY(MOZ_TO_RESULT({auto tryResult1287 = (ToResult(directory->Append(static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(directory->Append(static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1287.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16369, mozilla::dom::quota::Severity::Error); return tryResult1287
.propagateErr(); }}
16369 directory->Append(NS_LITERAL_STRING_FROM_CSTRING(IDB_DIRECTORY_NAME)))){auto tryResult1287 = (ToResult(directory->Append(static_cast
<const nsLiteralString&>( nsLiteralString(u"" "idb"
))))); static_assert(std::is_empty_v<typename decltype(tryResult1287
)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(directory->Append(static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))"
, tryResult1287.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16369, mozilla::dom::quota::Severity::Error); return tryResult1287
.propagateErr(); }}
;
16370
16371 QM_TRY_UNWRAP(mDatabaseDirectoryPath, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1288 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(directory)>::GetPath), (directory))); if ((__builtin_expect
(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(directory)>::GetPath), (directory))"
, tryResult1288.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16372, mozilla::dom::quota::Severity::Error); return tryResult1288
.propagateErr(); } mDatabaseDirectoryPath = tryResult1288.unwrap
();
16372 nsString, directory, GetPath))auto tryResult1288 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(directory)>::GetPath), (directory))); if ((__builtin_expect
(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(directory)>::GetPath), (directory))"
, tryResult1288.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16372, mozilla::dom::quota::Severity::Error); return tryResult1288
.propagateErr(); } mDatabaseDirectoryPath = tryResult1288.unwrap
();
;
16373
16374 mDatabaseFilenameBase =
16375 GetDatabaseFilenameBase(databaseName, mOriginMetadata.mIsPrivate);
16376
16377 QM_TRY_INSPECT(auto tryResult1289 = (CloneFileAndAppend(*directory, mDatabaseFilenameBase
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1289.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, mDatabaseFilenameBase + kSQLiteSuffix)"
, tryResult1289.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16379, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const auto& dbFile = tryResult1289.inspect
();
16378 const auto& dbFile,auto tryResult1289 = (CloneFileAndAppend(*directory, mDatabaseFilenameBase
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1289.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, mDatabaseFilenameBase + kSQLiteSuffix)"
, tryResult1289.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16379, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const auto& dbFile = tryResult1289.inspect
();
16379 CloneFileAndAppend(*directory, mDatabaseFilenameBase + kSQLiteSuffix))auto tryResult1289 = (CloneFileAndAppend(*directory, mDatabaseFilenameBase
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1289.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, mDatabaseFilenameBase + kSQLiteSuffix)"
, tryResult1289.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16379, mozilla::dom::quota::Severity::Error); return tryResult1289
.propagateErr(); } const auto& dbFile = tryResult1289.inspect
();
;
16380
16381#ifdef DEBUG1
16382 {
16383 QM_TRY_INSPECT(auto tryResult1290 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(
tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1290.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16385, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); } const auto& databaseFilePath = tryResult1290
.inspect();
16384 const auto& databaseFilePath,auto tryResult1290 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(
tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1290.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16385, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); } const auto& databaseFilePath = tryResult1290
.inspect();
16385 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, dbFile, GetPath))auto tryResult1290 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(dbFile)>::GetPath), (dbFile))); if ((__builtin_expect(!!(
tryResult1290.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile))"
, tryResult1290.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16385, mozilla::dom::quota::Severity::Error); return tryResult1290
.propagateErr(); } const auto& databaseFilePath = tryResult1290
.inspect();
;
16386
16387 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"
, 16387); AnnotateMozCrashReason("MOZ_ASSERT" "(" "databaseFilePath == mDatabaseFilePath.ref()"
")"); do { *((volatile int*)__null) = 16387; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16388 }
16389#endif
16390
16391 QM_TRY_INSPECT(const bool& exists,auto tryResult1291 = (::mozilla::ToResultInvokeMember( (dbFile
), &::mozilla::detail::DerefedType<decltype(dbFile)>
::Exists)); if ((__builtin_expect(!!(tryResult1291.isErr()), 0
))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (dbFile), &::mozilla::detail::DerefedType<decltype(dbFile)>::Exists)"
, tryResult1291.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16392, mozilla::dom::quota::Severity::Error); return tryResult1291
.propagateErr(); } const bool& exists = tryResult1291.inspect
();
16392 MOZ_TO_RESULT_INVOKE_MEMBER(dbFile, Exists))auto tryResult1291 = (::mozilla::ToResultInvokeMember( (dbFile
), &::mozilla::detail::DerefedType<decltype(dbFile)>
::Exists)); if ((__builtin_expect(!!(tryResult1291.isErr()), 0
))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (dbFile), &::mozilla::detail::DerefedType<decltype(dbFile)>::Exists)"
, tryResult1291.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16392, mozilla::dom::quota::Severity::Error); return tryResult1291
.propagateErr(); } const bool& exists = tryResult1291.inspect
();
;
16393
16394 if (exists) {
16395 // Parts of this function may fail but that shouldn't prevent us from
16396 // deleting the file eventually.
16397 LoadPreviousVersion(*dbFile);
16398
16399 mState = State::BeginVersionChange;
16400 } else {
16401 mState = State::SendingResults;
16402 }
16403
16404 QM_TRY(MOZ_TO_RESULT({auto tryResult1292 = (ToResult(DispatchThisAfterProcessingCurrentEvent
(mOwningEventTarget))); static_assert(std::is_empty_v<typename
decltype(tryResult1292)::ok_type>); if ((__builtin_expect
(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, tryResult1292.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16405, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); }}
16405 DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))){auto tryResult1292 = (ToResult(DispatchThisAfterProcessingCurrentEvent
(mOwningEventTarget))); static_assert(std::is_empty_v<typename
decltype(tryResult1292)::ok_type>); if ((__builtin_expect
(!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, tryResult1292.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16405, mozilla::dom::quota::Severity::Error); return tryResult1292
.propagateErr(); }}
;
16406
16407 return NS_OK;
16408}
16409
16410nsresult DeleteDatabaseOp::BeginVersionChange() {
16411 AssertIsOnOwningThread();
16412 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"
, 16412); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange"
")"); do { *((volatile int*)__null) = 16412; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16413 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"
, 16413); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()"
")"); do { *((volatile int*)__null) = 16413; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16414
16415 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"
, 16415)
||
16416 IsActorDestroyed()) {
16417 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16417, "UnknownErr")
;
16418 QM_TRY(MOZ_TO_RESULT(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)){auto tryResult1293 = (ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
)); static_assert(std::is_empty_v<typename decltype(tryResult1293
)::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)"
, tryResult1293.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16418, mozilla::dom::quota::Severity::Error); return tryResult1293
.propagateErr(); }}
;
16419 }
16420
16421 DatabaseActorInfo* info;
16422 if (gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)) {
16423 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"
, 16423); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp"
")"); do { *((volatile int*)__null) = 16423; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16424
16425 nsresult rv =
16426 SendVersionChangeMessages(info, Nothing(), mPreviousVersion, Nothing());
16427 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"
, 16427)
) {
16428 return rv;
16429 }
16430
16431 if (!mMaybeBlockedDatabases.IsEmpty()) {
16432 // If the actor gets destroyed, mWaitingFactoryOp will hold the last
16433 // strong reference to us.
16434 info->mWaitingFactoryOp = this;
16435
16436 mState = State::WaitingForOtherDatabasesToClose;
16437 return NS_OK;
16438 }
16439 }
16440
16441 // No other databases need to be notified, just make sure that all
16442 // transactions are complete.
16443 WaitForTransactions();
16444 return NS_OK;
16445}
16446
16447bool DeleteDatabaseOp::AreActorsAlive() {
16448 AssertIsOnOwningThread();
16449
16450 return !IsActorDestroyed();
16451}
16452
16453nsresult DeleteDatabaseOp::DispatchToWorkThread() {
16454 AssertIsOnOwningThread();
16455 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"
, 16455); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForTransactionsToComplete"
")"); do { *((volatile int*)__null) = 16455; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16456 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"
, 16456); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()"
")"); do { *((volatile int*)__null) = 16456; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16457
16458 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"
, 16458)
||
16459 IsActorDestroyed()) {
16460 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16460, "UnknownErr")
;
16461 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
16462 }
16463
16464 mState = State::DatabaseWorkVersionChange;
16465
16466 RefPtr<VersionChangeOp> versionChangeOp = new VersionChangeOp(this);
16467
16468 QuotaManager* const quotaManager = QuotaManager::Get();
16469 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"
, 16469); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { *((volatile int*)__null) = 16469; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16470
16471 nsresult rv = quotaManager->IOThread()->Dispatch(versionChangeOp.forget(),
16472 NS_DISPATCH_NORMALnsIEventTarget::DISPATCH_NORMAL);
16473 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"
, 16473)
) {
16474 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16474, "UnknownErr")
;
16475 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
16476 }
16477
16478 return NS_OK;
16479}
16480
16481void DeleteDatabaseOp::SendBlockedNotification() {
16482 AssertIsOnOwningThread();
16483 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"
, 16483); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForOtherDatabasesToClose"
")"); do { *((volatile int*)__null) = 16483; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16484
16485 if (!IsActorDestroyed()) {
16486 Unused << SendBlocked(mPreviousVersion);
16487 }
16488}
16489
16490void DeleteDatabaseOp::SendResults() {
16491 AssertIsOnOwningThread();
16492 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"
, 16492); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::SendingResults"
")"); do { *((volatile int*)__null) = 16492; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16493 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"
, 16493); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()"
")"); do { *((volatile int*)__null) = 16493; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16494
16495 DebugOnly<DatabaseActorInfo*> info = nullptr;
16496 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"
, 16498); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp"
")"); do { *((volatile int*)__null) = 16498; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
16497 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"
, 16498); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp"
")"); do { *((volatile int*)__null) = 16498; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
16498 !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"
, 16498); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp"
")"); do { *((volatile int*)__null) = 16498; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
16499
16500 if (!IsActorDestroyed()) {
16501 FactoryRequestResponse response;
16502
16503 if (!HasFailed()) {
16504 response = DeleteDatabaseRequestResponse(mPreviousVersion);
16505 } else {
16506 response = ClampResultCode(ResultCode());
16507 }
16508
16509 Unused << PBackgroundIDBFactoryRequestParent::Send__delete__(this,
16510 response);
16511 }
16512
16513 SafeDropDirectoryLock(mDirectoryLock);
16514
16515 CleanupMetadata();
16516
16517 FinishSendResults();
16518}
16519
16520nsresult DeleteDatabaseOp::VersionChangeOp::RunOnIOThread() {
16521 AssertIsOnIOThread();
16522 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"
, 16522); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange"
")"); do { *((volatile int*)__null) = 16522; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16523
16524 AUTO_PROFILER_LABEL("DeleteDatabaseOp::VersionChangeOp::RunOnIOThread", DOM)mozilla::AutoProfilerLabel raiiObject16524( "DeleteDatabaseOp::VersionChangeOp::RunOnIOThread"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
16525
16526 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"
, 16526)
||
16527 !OperationMayProceed()) {
16528 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16528, "UnknownErr")
;
16529 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
16530 }
16531
16532 const PersistenceType& persistenceType =
16533 mDeleteDatabaseOp->mCommonParams.metadata().persistenceType();
16534
16535 QuotaManager* quotaManager =
16536 mDeleteDatabaseOp->mEnforcingQuota ? QuotaManager::Get() : nullptr;
16537
16538 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"
, 16538); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { *((volatile int*)__null) = 16538; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
16539
16540 nsCOMPtr<nsIFile> directory =
16541 GetFileForPath(mDeleteDatabaseOp->mDatabaseDirectoryPath);
16542 if (NS_WARN_IF(!directory)NS_warn_if_impl(!directory, "!directory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16542)
) {
16543 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16543, "UnknownErr")
;
16544 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
16545 }
16546
16547 nsresult rv = RemoveDatabaseFilesAndDirectory(
16548 *directory, mDeleteDatabaseOp->mDatabaseFilenameBase, quotaManager,
16549 persistenceType, mDeleteDatabaseOp->mOriginMetadata,
16550 mDeleteDatabaseOp->mCommonParams.metadata().name());
16551 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"
, 16551)
) {
16552 return rv;
16553 }
16554
16555 rv = mOwningEventTarget->Dispatch(this, NS_DISPATCH_NORMALnsIEventTarget::DISPATCH_NORMAL);
16556 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"
, 16556)
) {
16557 return rv;
16558 }
16559
16560 return NS_OK;
16561}
16562
16563void DeleteDatabaseOp::VersionChangeOp::RunOnOwningThread() {
16564 AssertIsOnOwningThread();
16565 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"
, 16565); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange"
")"); do { *((volatile int*)__null) = 16565; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16566
16567 const RefPtr<DeleteDatabaseOp> deleteOp = std::move(mDeleteDatabaseOp);
16568
16569 if (deleteOp->IsActorDestroyed()) {
16570 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16570, "UnknownErr")
;
16571 deleteOp->SetFailureCode(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR);
16572 } else if (HasFailed()) {
16573 deleteOp->SetFailureCodeIfUnset(ResultCode());
16574 } else {
16575 DatabaseActorInfo* info;
16576
16577 // Inform all the other databases that they are now invalidated. That
16578 // should remove the previous metadata from our table.
16579 if (gLiveDatabaseHashtable->Get(deleteOp->mDatabaseId.ref(), &info)) {
16580 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"
, 16580); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mLiveDatabases.IsEmpty()"
")"); do { *((volatile int*)__null) = 16580; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16581 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"
, 16581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp"
")"); do { *((volatile int*)__null) = 16581; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16582
16583 nsTArray<SafeRefPtr<Database>> liveDatabases;
16584 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"
, 16585)
16585 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"
, 16585)
) {
16586 deleteOp->SetFailureCode(NS_ERROR_OUT_OF_MEMORY);
16587 } else {
16588 std::transform(info->mLiveDatabases.cbegin(),
16589 info->mLiveDatabases.cend(),
16590 MakeBackInserter(liveDatabases),
16591 [](const auto& aDatabase) -> SafeRefPtr<Database> {
16592 return {aDatabase.get(), AcquireStrongRefFromRawPtr{}};
16593 });
16594
16595#ifdef DEBUG1
16596 // The code below should result in the deletion of |info|. Set to null
16597 // here to make sure we find invalid uses later.
16598 info = nullptr;
16599#endif
16600
16601 for (const auto& database : liveDatabases) {
16602 database->Invalidate();
16603 }
16604
16605 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"
, 16605); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gLiveDatabaseHashtable->Get(deleteOp->mDatabaseId.ref())"
")"); do { *((volatile int*)__null) = 16605; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16606 }
16607 }
16608 }
16609
16610 // We hold a strong ref to the deleteOp, so it's safe to call Run() directly.
16611
16612 deleteOp->mState = State::SendingResults;
16613 MOZ_ALWAYS_SUCCEEDS(deleteOp->Run())do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(deleteOp->Run())), 1)))), 1))) { } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "NS_SUCCEEDED(deleteOp->Run())" ")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16613); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(deleteOp->Run())" ")"); do { *((volatile
int*)__null) = 16613; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); } } while (false)
;
16614
16615#ifdef DEBUG1
16616 // A bit hacky but the DeleteDatabaseOp::VersionChangeOp is not really a
16617 // normal database operation that is tied to an actor. Do this to make our
16618 // assertions happy.
16619 NoteActorDestroyed();
16620#endif
16621}
16622
16623nsresult DeleteDatabaseOp::VersionChangeOp::Run() {
16624 nsresult rv;
16625
16626 if (IsOnIOThread()) {
16627 rv = RunOnIOThread();
16628 } else {
16629 RunOnOwningThread();
16630 rv = NS_OK;
16631 }
16632
16633 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"
, 16633)
) {
16634 SetFailureCodeIfUnset(rv);
16635
16636 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 { static_assert( mozilla::detail
::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16636); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { *((volatile int*)__null) = 16636; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
16637 }
16638
16639 return NS_OK;
16640}
16641
16642nsresult GetDatabasesOp::DatabasesNotAvailable() {
16643 AssertIsOnIOThread();
16644 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"
, 16644); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkOpen"
")"); do { *((volatile int*)__null) = 16644; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16645
16646 mState = State::SendingResults;
16647
16648 QM_TRY(MOZ_TO_RESULT({auto tryResult1294 = (ToResult(DispatchThisAfterProcessingCurrentEvent
(mOwningEventTarget))); static_assert(std::is_empty_v<typename
decltype(tryResult1294)::ok_type>); if ((__builtin_expect
(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, tryResult1294.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16649, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}
16649 DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))){auto tryResult1294 = (ToResult(DispatchThisAfterProcessingCurrentEvent
(mOwningEventTarget))); static_assert(std::is_empty_v<typename
decltype(tryResult1294)::ok_type>); if ((__builtin_expect
(!!(tryResult1294.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, tryResult1294.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16649, mozilla::dom::quota::Severity::Error); return tryResult1294
.propagateErr(); }}
;
16650
16651 return NS_OK;
16652}
16653
16654nsresult GetDatabasesOp::DoDirectoryWork() {
16655 AssertIsOnIOThread();
16656 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"
, 16656); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryWorkOpen"
")"); do { *((volatile int*)__null) = 16656; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16657
16658 // This state (DirectoryWorkOpen) runs immediately on the I/O thread, before
16659 // waiting for existing factory operations to complete (at which point
16660 // DoDatabaseWork will be invoked). To match the spec, we must snapshot the
16661 // current state of any databases that are being created (version = 0) or
16662 // upgraded (version >= 1) now. If we only sampled these values in
16663 // DoDatabaseWork, we would only see their post-creation/post-upgrade
16664 // versions, which would be incorrect.
16665
16666 IndexedDatabaseManager* const idm = IndexedDatabaseManager::Get();
16667 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"
, 16667); AnnotateMozCrashReason("MOZ_ASSERT" "(" "idm" ")");
do { *((volatile int*)__null) = 16667; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
16668
16669 const auto& fileManagers =
16670 idm->GetFileManagers(mPersistenceType, mOriginMetadata.mOrigin);
16671
16672 for (const auto& fileManager : fileManagers) {
16673 auto& metadata =
16674 mDatabaseMetadataTable.LookupOrInsert(fileManager->DatabaseFilePath());
16675 metadata.name() = fileManager->DatabaseName();
16676 metadata.version() = fileManager->DatabaseVersion();
16677 }
16678
16679 // Must set this before dispatching otherwise we will race with the IO thread.
16680 mState = State::DirectoryWorkDone;
16681
16682 QM_TRY(MOZ_TO_RESULT(mOwningEventTarget->Dispatch(this, NS_DISPATCH_NORMAL))){auto tryResult1295 = (ToResult(mOwningEventTarget->Dispatch
(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert(std::
is_empty_v<typename decltype(tryResult1295)::ok_type>);
if ((__builtin_expect(!!(tryResult1295.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
, tryResult1295.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16682, mozilla::dom::quota::Severity::Error); return tryResult1295
.propagateErr(); }}
;
16683
16684 return NS_OK;
16685}
16686
16687nsresult GetDatabasesOp::DatabaseOpen() {
16688 AssertIsOnOwningThread();
16689 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"
, 16689); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseOpenPending"
")"); do { *((volatile int*)__null) = 16689; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16690
16691 nsresult rv = SendToIOThread();
16692 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"
, 16692)
) {
16693 return rv;
16694 }
16695
16696 return NS_OK;
16697}
16698
16699nsresult GetDatabasesOp::DoDatabaseWork() {
16700 AssertIsOnIOThread();
16701 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"
, 16701); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkOpen"
")"); do { *((volatile int*)__null) = 16701; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16702
16703 AUTO_PROFILER_LABEL("GetDatabasesOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject16703( "GetDatabasesOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
16704
16705 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"
, 16705)
||
16706 !OperationMayProceed()) {
16707 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16707, "UnknownErr")
;
16708 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
16709 }
16710
16711 QuotaManager* const quotaManager = QuotaManager::Get();
16712 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"
, 16712); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager"
")"); do { *((volatile int*)__null) = 16712; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16713
16714 if (mPersistenceType != PERSISTENCE_TYPE_PERSISTENT) {
16715 QM_TRY(MOZ_TO_RESULT({auto tryResult1296 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal
())); static_assert(std::is_empty_v<typename decltype(tryResult1296
)::ok_type>); if ((__builtin_expect(!!(tryResult1296.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())"
, tryResult1296.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16716, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); }}
16716 quotaManager->EnsureTemporaryStorageIsInitializedInternal())){auto tryResult1296 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal
())); static_assert(std::is_empty_v<typename decltype(tryResult1296
)::ok_type>); if ((__builtin_expect(!!(tryResult1296.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(quotaManager->EnsureTemporaryStorageIsInitializedInternal())"
, tryResult1296.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16716, mozilla::dom::quota::Severity::Error); return tryResult1296
.propagateErr(); }}
;
16717 }
16718
16719 {
16720 QM_TRY_INSPECT(const bool& exists,auto tryResult1297 = (quotaManager->DoesOriginDirectoryExist
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1297.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->DoesOriginDirectoryExist(mOriginMetadata)"
, tryResult1297.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16721, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const bool& exists = tryResult1297.inspect
();
16721 quotaManager->DoesOriginDirectoryExist(mOriginMetadata))auto tryResult1297 = (quotaManager->DoesOriginDirectoryExist
(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1297.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->DoesOriginDirectoryExist(mOriginMetadata)"
, tryResult1297.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16721, mozilla::dom::quota::Severity::Error); return tryResult1297
.propagateErr(); } const bool& exists = tryResult1297.inspect
();
;
16722 if (!exists) {
16723 return DatabasesNotAvailable();
16724 }
16725 }
16726
16727 QM_TRY(([&quotaManager, this](){auto tryResult1300 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1298 = (quotaManager->EnsurePersistentOriginIsInitializedInternal
( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1298.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1298.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16731, mozilla::dom::quota::Severity::Error); } return tryResult1298
;}; } {auto tryResult1299 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal
( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1299.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1299.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16735, mozilla::dom::quota::Severity::Error); } return tryResult1299
;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1300)::ok_type
>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) {
mozilla::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1298 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult1298.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16731, mozilla::dom::quota::Severity::Error); } return tryResult1298;}; } {auto tryResult1299 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult1299.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16735, mozilla::dom::quota::Severity::Error); } return tryResult1299;}; }() .map([](const auto& res) { return Ok{}; }))"
, tryResult1300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16737, mozilla::dom::quota::Severity::Error); return tryResult1300
.propagateErr(); }}
16728 -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> {{auto tryResult1300 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1298 = (quotaManager->EnsurePersistentOriginIsInitializedInternal
( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1298.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1298.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16731, mozilla::dom::quota::Severity::Error); } return tryResult1298
;}; } {auto tryResult1299 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal
( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1299.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1299.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16735, mozilla::dom::quota::Severity::Error); } return tryResult1299
;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1300)::ok_type
>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) {
mozilla::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1298 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult1298.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16731, mozilla::dom::quota::Severity::Error); } return tryResult1298;}; } {auto tryResult1299 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult1299.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16735, mozilla::dom::quota::Severity::Error); } return tryResult1299;}; }() .map([](const auto& res) { return Ok{}; }))"
, tryResult1300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16737, mozilla::dom::quota::Severity::Error); return tryResult1300
.propagateErr(); }}
16729 if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {{auto tryResult1300 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1298 = (quotaManager->EnsurePersistentOriginIsInitializedInternal
( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1298.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1298.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16731, mozilla::dom::quota::Severity::Error); } return tryResult1298
;}; } {auto tryResult1299 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal
( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1299.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1299.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16735, mozilla::dom::quota::Severity::Error); } return tryResult1299
;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1300)::ok_type
>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) {
mozilla::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1298 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult1298.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16731, mozilla::dom::quota::Severity::Error); } return tryResult1298;}; } {auto tryResult1299 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult1299.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16735, mozilla::dom::quota::Severity::Error); } return tryResult1299;}; }() .map([](const auto& res) { return Ok{}; }))"
, tryResult1300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16737, mozilla::dom::quota::Severity::Error); return tryResult1300
.propagateErr(); }}
16730 QM_TRY_RETURN(quotaManager->EnsurePersistentOriginIsInitializedInternal({auto tryResult1300 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1298 = (quotaManager->EnsurePersistentOriginIsInitializedInternal
( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1298.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1298.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16731, mozilla::dom::quota::Severity::Error); } return tryResult1298
;}; } {auto tryResult1299 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal
( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1299.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1299.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16735, mozilla::dom::quota::Severity::Error); } return tryResult1299
;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1300)::ok_type
>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) {
mozilla::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1298 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult1298.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16731, mozilla::dom::quota::Severity::Error); } return tryResult1298;}; } {auto tryResult1299 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult1299.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16735, mozilla::dom::quota::Severity::Error); } return tryResult1299;}; }() .map([](const auto& res) { return Ok{}; }))"
, tryResult1300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16737, mozilla::dom::quota::Severity::Error); return tryResult1300
.propagateErr(); }}
16731 mOriginMetadata));{auto tryResult1300 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1298 = (quotaManager->EnsurePersistentOriginIsInitializedInternal
( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1298.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1298.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16731, mozilla::dom::quota::Severity::Error); } return tryResult1298
;}; } {auto tryResult1299 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal
( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1299.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1299.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16735, mozilla::dom::quota::Severity::Error); } return tryResult1299
;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1300)::ok_type
>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) {
mozilla::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1298 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult1298.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16731, mozilla::dom::quota::Severity::Error); } return tryResult1298;}; } {auto tryResult1299 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult1299.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16735, mozilla::dom::quota::Severity::Error); } return tryResult1299;}; }() .map([](const auto& res) { return Ok{}; }))"
, tryResult1300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16737, mozilla::dom::quota::Severity::Error); return tryResult1300
.propagateErr(); }}
16732 }{auto tryResult1300 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1298 = (quotaManager->EnsurePersistentOriginIsInitializedInternal
( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1298.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1298.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16731, mozilla::dom::quota::Severity::Error); } return tryResult1298
;}; } {auto tryResult1299 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal
( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1299.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1299.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16735, mozilla::dom::quota::Severity::Error); } return tryResult1299
;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1300)::ok_type
>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) {
mozilla::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1298 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult1298.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16731, mozilla::dom::quota::Severity::Error); } return tryResult1298;}; } {auto tryResult1299 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult1299.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16735, mozilla::dom::quota::Severity::Error); } return tryResult1299;}; }() .map([](const auto& res) { return Ok{}; }))"
, tryResult1300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16737, mozilla::dom::quota::Severity::Error); return tryResult1300
.propagateErr(); }}
16733
16734 QM_TRY_RETURN(quotaManager->EnsureTemporaryOriginIsInitializedInternal({auto tryResult1300 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1298 = (quotaManager->EnsurePersistentOriginIsInitializedInternal
( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1298.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1298.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16731, mozilla::dom::quota::Severity::Error); } return tryResult1298
;}; } {auto tryResult1299 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal
( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1299.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1299.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16735, mozilla::dom::quota::Severity::Error); } return tryResult1299
;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1300)::ok_type
>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) {
mozilla::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1298 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult1298.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16731, mozilla::dom::quota::Severity::Error); } return tryResult1298;}; } {auto tryResult1299 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult1299.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16735, mozilla::dom::quota::Severity::Error); } return tryResult1299;}; }() .map([](const auto& res) { return Ok{}; }))"
, tryResult1300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16737, mozilla::dom::quota::Severity::Error); return tryResult1300
.propagateErr(); }}
16735 mOriginMetadata));{auto tryResult1300 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1298 = (quotaManager->EnsurePersistentOriginIsInitializedInternal
( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1298.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1298.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16731, mozilla::dom::quota::Severity::Error); } return tryResult1298
;}; } {auto tryResult1299 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal
( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1299.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1299.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16735, mozilla::dom::quota::Severity::Error); } return tryResult1299
;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1300)::ok_type
>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) {
mozilla::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1298 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult1298.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16731, mozilla::dom::quota::Severity::Error); } return tryResult1298;}; } {auto tryResult1299 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult1299.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16735, mozilla::dom::quota::Severity::Error); } return tryResult1299;}; }() .map([](const auto& res) { return Ok{}; }))"
, tryResult1300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16737, mozilla::dom::quota::Severity::Error); return tryResult1300
.propagateErr(); }}
16736 }(){auto tryResult1300 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1298 = (quotaManager->EnsurePersistentOriginIsInitializedInternal
( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1298.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1298.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16731, mozilla::dom::quota::Severity::Error); } return tryResult1298
;}; } {auto tryResult1299 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal
( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1299.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1299.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16735, mozilla::dom::quota::Severity::Error); } return tryResult1299
;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1300)::ok_type
>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) {
mozilla::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1298 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult1298.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16731, mozilla::dom::quota::Severity::Error); } return tryResult1298;}; } {auto tryResult1299 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult1299.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16735, mozilla::dom::quota::Severity::Error); } return tryResult1299;}; }() .map([](const auto& res) { return Ok{}; }))"
, tryResult1300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16737, mozilla::dom::quota::Severity::Error); return tryResult1300
.propagateErr(); }}
16737 .map([](const auto& res) { return Ok{}; }))){auto tryResult1300 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1298 = (quotaManager->EnsurePersistentOriginIsInitializedInternal
( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1298.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1298.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16731, mozilla::dom::quota::Severity::Error); } return tryResult1298
;}; } {auto tryResult1299 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal
( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1299.isErr
()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)"
, tryResult1299.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16735, mozilla::dom::quota::Severity::Error); } return tryResult1299
;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert
(std::is_empty_v<typename decltype(tryResult1300)::ok_type
>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) {
mozilla::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1298 = (quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentOriginIsInitializedInternal( mOriginMetadata)\", tryResult1298.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16731, mozilla::dom::quota::Severity::Error); } return tryResult1298;}; } {auto tryResult1299 = (quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryOriginIsInitializedInternal( mOriginMetadata)\", tryResult1299.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16735, mozilla::dom::quota::Severity::Error); } return tryResult1299;}; }() .map([](const auto& res) { return Ok{}; }))"
, tryResult1300.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16737, mozilla::dom::quota::Severity::Error); return tryResult1300
.propagateErr(); }}
;
16738
16739 {
16740 QM_TRY_INSPECT(const bool& exists,auto tryResult1301 = (quotaManager->DoesClientDirectoryExist
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->DoesClientDirectoryExist( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16742, mozilla::dom::quota::Severity::Error); return tryResult1301
.propagateErr(); } const bool& exists = tryResult1301.inspect
();
16741 quotaManager->DoesClientDirectoryExist(auto tryResult1301 = (quotaManager->DoesClientDirectoryExist
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->DoesClientDirectoryExist( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16742, mozilla::dom::quota::Severity::Error); return tryResult1301
.propagateErr(); } const bool& exists = tryResult1301.inspect
();
16742 ClientMetadata{mOriginMetadata, Client::IDB}))auto tryResult1301 = (quotaManager->DoesClientDirectoryExist
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->DoesClientDirectoryExist( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1301.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16742, mozilla::dom::quota::Severity::Error); return tryResult1301
.propagateErr(); } const bool& exists = tryResult1301.inspect
();
;
16743 if (!exists) {
16744 return DatabasesNotAvailable();
16745 }
16746 }
16747
16748 QM_TRY_INSPECT(auto tryResult1304 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1302 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1302.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16754, mozilla::dom::quota::Severity::Error); } return tryResult1302
;}; } {auto tryResult1303 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1303.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16758, mozilla::dom::quota::Severity::Error); } return tryResult1303
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1302 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1302.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16754, mozilla::dom::quota::Severity::Error); } return tryResult1302;}; } {auto tryResult1303 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1303.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16758, mozilla::dom::quota::Severity::Error); } return tryResult1303;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1304.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16760, mozilla::dom::quota::Severity::Error); return tryResult1304
.propagateErr(); } const auto& clientDirectory = tryResult1304
.inspect();
16749 const auto& clientDirectory,auto tryResult1304 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1302 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1302.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16754, mozilla::dom::quota::Severity::Error); } return tryResult1302
;}; } {auto tryResult1303 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1303.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16758, mozilla::dom::quota::Severity::Error); } return tryResult1303
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1302 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1302.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16754, mozilla::dom::quota::Severity::Error); } return tryResult1302;}; } {auto tryResult1303 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1303.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16758, mozilla::dom::quota::Severity::Error); } return tryResult1303;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1304.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16760, mozilla::dom::quota::Severity::Error); return tryResult1304
.propagateErr(); } const auto& clientDirectory = tryResult1304
.inspect();
16750 ([&quotaManager, this]()auto tryResult1304 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1302 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1302.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16754, mozilla::dom::quota::Severity::Error); } return tryResult1302
;}; } {auto tryResult1303 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1303.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16758, mozilla::dom::quota::Severity::Error); } return tryResult1303
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1302 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1302.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16754, mozilla::dom::quota::Severity::Error); } return tryResult1302;}; } {auto tryResult1303 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1303.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16758, mozilla::dom::quota::Severity::Error); } return tryResult1303;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1304.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16760, mozilla::dom::quota::Severity::Error); return tryResult1304
.propagateErr(); } const auto& clientDirectory = tryResult1304
.inspect();
16751 -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> {auto tryResult1304 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1302 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1302.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16754, mozilla::dom::quota::Severity::Error); } return tryResult1302
;}; } {auto tryResult1303 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1303.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16758, mozilla::dom::quota::Severity::Error); } return tryResult1303
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1302 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1302.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16754, mozilla::dom::quota::Severity::Error); } return tryResult1302;}; } {auto tryResult1303 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1303.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16758, mozilla::dom::quota::Severity::Error); } return tryResult1303;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1304.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16760, mozilla::dom::quota::Severity::Error); return tryResult1304
.propagateErr(); } const auto& clientDirectory = tryResult1304
.inspect();
16752 if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {auto tryResult1304 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1302 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1302.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16754, mozilla::dom::quota::Severity::Error); } return tryResult1302
;}; } {auto tryResult1303 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1303.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16758, mozilla::dom::quota::Severity::Error); } return tryResult1303
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1302 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1302.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16754, mozilla::dom::quota::Severity::Error); } return tryResult1302;}; } {auto tryResult1303 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1303.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16758, mozilla::dom::quota::Severity::Error); } return tryResult1303;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1304.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16760, mozilla::dom::quota::Severity::Error); return tryResult1304
.propagateErr(); } const auto& clientDirectory = tryResult1304
.inspect();
16753 QM_TRY_RETURN(quotaManager->EnsurePersistentClientIsInitialized(auto tryResult1304 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1302 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1302.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16754, mozilla::dom::quota::Severity::Error); } return tryResult1302
;}; } {auto tryResult1303 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1303.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16758, mozilla::dom::quota::Severity::Error); } return tryResult1303
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1302 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1302.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16754, mozilla::dom::quota::Severity::Error); } return tryResult1302;}; } {auto tryResult1303 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1303.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16758, mozilla::dom::quota::Severity::Error); } return tryResult1303;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1304.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16760, mozilla::dom::quota::Severity::Error); return tryResult1304
.propagateErr(); } const auto& clientDirectory = tryResult1304
.inspect();
16754 ClientMetadata{mOriginMetadata, Client::IDB}));auto tryResult1304 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1302 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1302.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16754, mozilla::dom::quota::Severity::Error); } return tryResult1302
;}; } {auto tryResult1303 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1303.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16758, mozilla::dom::quota::Severity::Error); } return tryResult1303
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1302 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1302.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16754, mozilla::dom::quota::Severity::Error); } return tryResult1302;}; } {auto tryResult1303 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1303.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16758, mozilla::dom::quota::Severity::Error); } return tryResult1303;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1304.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16760, mozilla::dom::quota::Severity::Error); return tryResult1304
.propagateErr(); } const auto& clientDirectory = tryResult1304
.inspect();
16755 }auto tryResult1304 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1302 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1302.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16754, mozilla::dom::quota::Severity::Error); } return tryResult1302
;}; } {auto tryResult1303 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1303.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16758, mozilla::dom::quota::Severity::Error); } return tryResult1303
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1302 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1302.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16754, mozilla::dom::quota::Severity::Error); } return tryResult1302;}; } {auto tryResult1303 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1303.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16758, mozilla::dom::quota::Severity::Error); } return tryResult1303;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1304.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16760, mozilla::dom::quota::Severity::Error); return tryResult1304
.propagateErr(); } const auto& clientDirectory = tryResult1304
.inspect();
16756
16757 QM_TRY_RETURN(quotaManager->EnsureTemporaryClientIsInitialized(auto tryResult1304 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1302 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1302.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16754, mozilla::dom::quota::Severity::Error); } return tryResult1302
;}; } {auto tryResult1303 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1303.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16758, mozilla::dom::quota::Severity::Error); } return tryResult1303
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1302 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1302.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16754, mozilla::dom::quota::Severity::Error); } return tryResult1302;}; } {auto tryResult1303 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1303.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16758, mozilla::dom::quota::Severity::Error); } return tryResult1303;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1304.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16760, mozilla::dom::quota::Severity::Error); return tryResult1304
.propagateErr(); } const auto& clientDirectory = tryResult1304
.inspect();
16758 ClientMetadata{mOriginMetadata, Client::IDB}));auto tryResult1304 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1302 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1302.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16754, mozilla::dom::quota::Severity::Error); } return tryResult1302
;}; } {auto tryResult1303 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1303.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16758, mozilla::dom::quota::Severity::Error); } return tryResult1303
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1302 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1302.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16754, mozilla::dom::quota::Severity::Error); } return tryResult1302;}; } {auto tryResult1303 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1303.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16758, mozilla::dom::quota::Severity::Error); } return tryResult1303;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1304.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16760, mozilla::dom::quota::Severity::Error); return tryResult1304
.propagateErr(); } const auto& clientDirectory = tryResult1304
.inspect();
16759 }()auto tryResult1304 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1302 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1302.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16754, mozilla::dom::quota::Severity::Error); } return tryResult1302
;}; } {auto tryResult1303 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1303.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16758, mozilla::dom::quota::Severity::Error); } return tryResult1303
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1302 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1302.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16754, mozilla::dom::quota::Severity::Error); } return tryResult1302;}; } {auto tryResult1303 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1303.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16758, mozilla::dom::quota::Severity::Error); } return tryResult1303;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1304.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16760, mozilla::dom::quota::Severity::Error); return tryResult1304
.propagateErr(); } const auto& clientDirectory = tryResult1304
.inspect();
16760 .map([](const auto& res) { return res.first; })))auto tryResult1304 = (([&quotaManager, this]() -> mozilla
::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult
> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {
{auto tryResult1302 = (quotaManager->EnsurePersistentClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1302.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16754, mozilla::dom::quota::Severity::Error); } return tryResult1302
;}; } {auto tryResult1303 = (quotaManager->EnsureTemporaryClientIsInitialized
( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect
(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError
("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})"
, tryResult1303.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16758, mozilla::dom::quota::Severity::Error); } return tryResult1303
;}; }() .map([](const auto& res) { return res.first; })))
; if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla
::dom::quota::HandleError("([&quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1302 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1302.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16754, mozilla::dom::quota::Severity::Error); } return tryResult1302;}; } {auto tryResult1303 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1303.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 16758, mozilla::dom::quota::Severity::Error); } return tryResult1303;}; }() .map([](const auto& res) { return res.first; }))"
, tryResult1304.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16760, mozilla::dom::quota::Severity::Error); return tryResult1304
.propagateErr(); } const auto& clientDirectory = tryResult1304
.inspect();
;
16761
16762 QM_TRY_INSPECT(auto tryResult1305 = (QuotaClient::GetDatabaseFilenames(*clientDirectory
, Atomic<bool>{false})); if ((__builtin_expect(!!(tryResult1305
.isErr()), 0))) { mozilla::dom::quota::HandleError("QuotaClient::GetDatabaseFilenames(*clientDirectory, Atomic<bool>{false})"
, tryResult1305.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16765, mozilla::dom::quota::Severity::Error); return tryResult1305
.propagateErr(); } const auto& [subdirsToProcess, databaseFilenames
] = tryResult1305.inspect();
16763 (const auto& [subdirsToProcess, databaseFilenames]),auto tryResult1305 = (QuotaClient::GetDatabaseFilenames(*clientDirectory
, Atomic<bool>{false})); if ((__builtin_expect(!!(tryResult1305
.isErr()), 0))) { mozilla::dom::quota::HandleError("QuotaClient::GetDatabaseFilenames(*clientDirectory, Atomic<bool>{false})"
, tryResult1305.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16765, mozilla::dom::quota::Severity::Error); return tryResult1305
.propagateErr(); } const auto& [subdirsToProcess, databaseFilenames
] = tryResult1305.inspect();
16764 QuotaClient::GetDatabaseFilenames(*clientDirectory,auto tryResult1305 = (QuotaClient::GetDatabaseFilenames(*clientDirectory
, Atomic<bool>{false})); if ((__builtin_expect(!!(tryResult1305
.isErr()), 0))) { mozilla::dom::quota::HandleError("QuotaClient::GetDatabaseFilenames(*clientDirectory, Atomic<bool>{false})"
, tryResult1305.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16765, mozilla::dom::quota::Severity::Error); return tryResult1305
.propagateErr(); } const auto& [subdirsToProcess, databaseFilenames
] = tryResult1305.inspect();
16765 /* aCanceled */ Atomic<bool>{false}))auto tryResult1305 = (QuotaClient::GetDatabaseFilenames(*clientDirectory
, Atomic<bool>{false})); if ((__builtin_expect(!!(tryResult1305
.isErr()), 0))) { mozilla::dom::quota::HandleError("QuotaClient::GetDatabaseFilenames(*clientDirectory, Atomic<bool>{false})"
, tryResult1305.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16765, mozilla::dom::quota::Severity::Error); return tryResult1305
.propagateErr(); } const auto& [subdirsToProcess, databaseFilenames
] = tryResult1305.inspect();
;
16766
16767 for (const auto& databaseFilename : databaseFilenames) {
16768 QM_TRY_INSPECT(auto tryResult1306 = (CloneFileAndAppend(*clientDirectory, databaseFilename
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1306.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*clientDirectory, databaseFilename + kSQLiteSuffix)"
, tryResult1306.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16770, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); } const auto& databaseFile = tryResult1306
.inspect();
16769 const auto& databaseFile,auto tryResult1306 = (CloneFileAndAppend(*clientDirectory, databaseFilename
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1306.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*clientDirectory, databaseFilename + kSQLiteSuffix)"
, tryResult1306.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16770, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); } const auto& databaseFile = tryResult1306
.inspect();
16770 CloneFileAndAppend(*clientDirectory, databaseFilename + kSQLiteSuffix))auto tryResult1306 = (CloneFileAndAppend(*clientDirectory, databaseFilename
+ kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1306.isErr
()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*clientDirectory, databaseFilename + kSQLiteSuffix)"
, tryResult1306.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16770, mozilla::dom::quota::Severity::Error); return tryResult1306
.propagateErr(); } const auto& databaseFile = tryResult1306
.inspect();
;
16771
16772 nsString path;
16773 databaseFile->GetPath(path);
16774
16775 // Use the snapshotted values from DoDirectoryWork which correctly
16776 // snapshotted the state of any pending creations/upgrades. This does mean
16777 // that we need to skip reporting databases that had a version of 0 at that
16778 // time because they were still being created. In the event that any other
16779 // creation or upgrade requests are made after our operation is created,
16780 // this operation will block those, so it's not possible for this set of
16781 // data to get out of sync. The snapshotting (using cached database name
16782 // and version in DatabaseFileManager) also guarantees that we are not
16783 // touching the SQLite database here on the QuotaManager I/O thread which
16784 // is already open on the connection thread.
16785
16786 auto metadata = mDatabaseMetadataTable.Lookup(path);
16787 if (metadata) {
16788 if (metadata->version() != 0) {
16789 mDatabaseMetadataArray.AppendElement(DatabaseMetadata(
16790 metadata->name(), metadata->version(), mPersistenceType));
16791 }
16792
16793 continue;
16794 }
16795
16796 // Since the database is not already open (there was no DatabaseFileManager
16797 // for snapshotting in DoDirectoryWork which could provide us with the
16798 // database name and version without needing to open the SQLite database),
16799 // it is safe and necessary for us to open the database on this thread and
16800 // retrieve its name and version. We do not need to worry about racing a
16801 // database open because database opens can only be processed on this
16802 // thread and we are performing the steps below synchronously.
16803
16804 QM_TRY_INSPECT(auto tryResult1307 = (CloneFileAndAppend(*clientDirectory, databaseFilename
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1307.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*clientDirectory, databaseFilename + kFileManagerDirectoryNameSuffix)"
, tryResult1307.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16807, mozilla::dom::quota::Severity::Error); return tryResult1307
.propagateErr(); } const auto& fmDirectory = tryResult1307
.inspect();
16805 const auto& fmDirectory,auto tryResult1307 = (CloneFileAndAppend(*clientDirectory, databaseFilename
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1307.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*clientDirectory, databaseFilename + kFileManagerDirectoryNameSuffix)"
, tryResult1307.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16807, mozilla::dom::quota::Severity::Error); return tryResult1307
.propagateErr(); } const auto& fmDirectory = tryResult1307
.inspect();
16806 CloneFileAndAppend(*clientDirectory,auto tryResult1307 = (CloneFileAndAppend(*clientDirectory, databaseFilename
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1307.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*clientDirectory, databaseFilename + kFileManagerDirectoryNameSuffix)"
, tryResult1307.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16807, mozilla::dom::quota::Severity::Error); return tryResult1307
.propagateErr(); } const auto& fmDirectory = tryResult1307
.inspect();
16807 databaseFilename + kFileManagerDirectoryNameSuffix))auto tryResult1307 = (CloneFileAndAppend(*clientDirectory, databaseFilename
+ kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(!
!(tryResult1307.isErr()), 0))) { mozilla::dom::quota::HandleError
("CloneFileAndAppend(*clientDirectory, databaseFilename + kFileManagerDirectoryNameSuffix)"
, tryResult1307.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16807, mozilla::dom::quota::Severity::Error); return tryResult1307
.propagateErr(); } const auto& fmDirectory = tryResult1307
.inspect();
;
16808
16809 QM_TRY_UNWRAP(auto tryResult1308 = (CreateStorageConnection(*databaseFile, *
fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId
, TelemetryIdForFile(databaseFile), Nothing{})); if ((__builtin_expect
(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId, TelemetryIdForFile(databaseFile), Nothing{})"
, tryResult1308.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16813, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1308.unwrap();
16810 const NotNull<nsCOMPtr<mozIStorageConnection>> connection,auto tryResult1308 = (CreateStorageConnection(*databaseFile, *
fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId
, TelemetryIdForFile(databaseFile), Nothing{})); if ((__builtin_expect
(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId, TelemetryIdForFile(databaseFile), Nothing{})"
, tryResult1308.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16813, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1308.unwrap();
16811 CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(),auto tryResult1308 = (CreateStorageConnection(*databaseFile, *
fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId
, TelemetryIdForFile(databaseFile), Nothing{})); if ((__builtin_expect
(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId, TelemetryIdForFile(databaseFile), Nothing{})"
, tryResult1308.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16813, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1308.unwrap();
16812 mOriginMetadata.mOrigin, mDirectoryLockId,auto tryResult1308 = (CreateStorageConnection(*databaseFile, *
fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId
, TelemetryIdForFile(databaseFile), Nothing{})); if ((__builtin_expect
(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId, TelemetryIdForFile(databaseFile), Nothing{})"
, tryResult1308.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16813, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1308.unwrap();
16813 TelemetryIdForFile(databaseFile), Nothing{}))auto tryResult1308 = (CreateStorageConnection(*databaseFile, *
fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId
, TelemetryIdForFile(databaseFile), Nothing{})); if ((__builtin_expect
(!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError
("CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId, TelemetryIdForFile(databaseFile), Nothing{})"
, tryResult1308.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16813, mozilla::dom::quota::Severity::Error); return tryResult1308
.propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection
>> connection = tryResult1308.unwrap();
;
16814
16815 {
16816 // Load version information.
16817 QM_TRY_INSPECT(const auto& stmt,auto tryResult1309 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name, version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name, version FROM database\"_ns)"
, tryResult1309.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16820, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); } const auto& stmt = tryResult1309.inspect
();
16818 CreateAndExecuteSingleStepStatement<auto tryResult1309 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name, version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name, version FROM database\"_ns)"
, tryResult1309.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16820, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); } const auto& stmt = tryResult1309.inspect
();
16819 SingleStepResult::ReturnNullIfNoResult>(auto tryResult1309 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name, version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name, version FROM database\"_ns)"
, tryResult1309.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16820, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); } const auto& stmt = tryResult1309.inspect
();
16820 *connection, "SELECT name, version FROM database"_ns))auto tryResult1309 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name, version FROM database"_ns
)); if ((__builtin_expect(!!(tryResult1309.isErr()), 0))) { mozilla
::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name, version FROM database\"_ns)"
, tryResult1309.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16820, mozilla::dom::quota::Severity::Error); return tryResult1309
.propagateErr(); } const auto& stmt = tryResult1309.inspect
();
;
16821
16822 QM_TRY(OkIf(stmt), NS_ERROR_FILE_CORRUPTED){auto tryResult1310 = (OkIf(stmt)); static_assert(std::is_empty_v
<typename decltype(tryResult1310)::ok_type>); if ((__builtin_expect
(!!(tryResult1310.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1310.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(stmt)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16822, 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); }}
;
16823
16824 QM_TRY_INSPECT(auto tryResult1311 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(stmt)>::GetString), (stmt), 0)); if ((__builtin_expect(!!
(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetString), (stmt), 0)"
, tryResult1311.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16826, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); } const auto& databaseName = tryResult1311
.inspect();
16825 const auto& databaseName,auto tryResult1311 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(stmt)>::GetString), (stmt), 0)); if ((__builtin_expect(!!
(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetString), (stmt), 0)"
, tryResult1311.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16826, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); } const auto& databaseName = tryResult1311
.inspect();
16826 MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, stmt, GetString, 0))auto tryResult1311 = (::mozilla::ToResultInvoke< nsString>
( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype
(stmt)>::GetString), (stmt), 0)); if ((__builtin_expect(!!
(tryResult1311.isErr()), 0))) { mozilla::dom::quota::HandleError
("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetString), (stmt), 0)"
, tryResult1311.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16826, mozilla::dom::quota::Severity::Error); return tryResult1311
.propagateErr(); } const auto& databaseName = tryResult1311
.inspect();
;
16827
16828 QM_TRY_INSPECT(const int64_t& version,auto tryResult1312 = (::mozilla::ToResultInvokeMember( (stmt)
, &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 1)); if ((__builtin_expect(!!(tryResult1312.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1312.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16829, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); } const int64_t& version = tryResult1312
.inspect();
16829 MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt64, 1))auto tryResult1312 = (::mozilla::ToResultInvokeMember( (stmt)
, &::mozilla::detail::DerefedType<decltype(stmt)>::
GetInt64, 1)); if ((__builtin_expect(!!(tryResult1312.isErr()
), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64, 1)"
, tryResult1312.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16829, mozilla::dom::quota::Severity::Error); return tryResult1312
.propagateErr(); } const int64_t& version = tryResult1312
.inspect();
;
16830
16831 mDatabaseMetadataArray.AppendElement(
16832 DatabaseMetadata(databaseName, version, mPersistenceType));
16833 }
16834 }
16835
16836 mState = State::SendingResults;
16837
16838 QM_TRY(MOZ_TO_RESULT({auto tryResult1313 = (ToResult(DispatchThisAfterProcessingCurrentEvent
(mOwningEventTarget))); static_assert(std::is_empty_v<typename
decltype(tryResult1313)::ok_type>); if ((__builtin_expect
(!!(tryResult1313.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, tryResult1313.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16839, mozilla::dom::quota::Severity::Error); return tryResult1313
.propagateErr(); }}
16839 DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))){auto tryResult1313 = (ToResult(DispatchThisAfterProcessingCurrentEvent
(mOwningEventTarget))); static_assert(std::is_empty_v<typename
decltype(tryResult1313)::ok_type>); if ((__builtin_expect
(!!(tryResult1313.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))"
, tryResult1313.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16839, mozilla::dom::quota::Severity::Error); return tryResult1313
.propagateErr(); }}
;
16840
16841 return NS_OK;
16842}
16843
16844nsresult GetDatabasesOp::BeginVersionChange() {
16845 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"
, 16845); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable."
")"); do { *((volatile int*)__null) = 16845; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
16846}
16847
16848bool GetDatabasesOp::AreActorsAlive() {
16849 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"
, 16849); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable."
")"); do { *((volatile int*)__null) = 16849; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
16850}
16851
16852void GetDatabasesOp::SendBlockedNotification() {
16853 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"
, 16853); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable."
")"); do { *((volatile int*)__null) = 16853; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
16854}
16855
16856nsresult GetDatabasesOp::DispatchToWorkThread() {
16857 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"
, 16857); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable."
")"); do { *((volatile int*)__null) = 16857; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
16858}
16859
16860void GetDatabasesOp::SendResults() {
16861 AssertIsOnOwningThread();
16862 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"
, 16862); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::SendingResults"
")"); do { *((volatile int*)__null) = 16862; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16863
16864#ifdef DEBUG1
16865 NoteActorDestroyed();
16866#endif
16867
16868 mResolver(mDatabaseMetadataArray);
16869
16870 SafeDropDirectoryLock(mDirectoryLock);
16871
16872 CleanupMetadata();
16873
16874 FinishSendResults();
16875}
16876
16877TransactionDatabaseOperationBase::TransactionDatabaseOperationBase(
16878 SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId)
16879 : DatabaseOperationBase(aTransaction->GetLoggingInfo()->Id(),
16880 aTransaction->GetLoggingInfo()->NextRequestSN()),
16881 mTransaction(WrapNotNull(std::move(aTransaction))),
16882 mRequestId(aRequestId),
16883 mTransactionIsAborted((*mTransaction)->IsAborted()),
16884 mTransactionLoggingSerialNumber((*mTransaction)->LoggingSerialNumber()) {
16885 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"
, 16885); AnnotateMozCrashReason("MOZ_ASSERT" "(" "LoggingSerialNumber()"
")"); do { *((volatile int*)__null) = 16885; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16886}
16887
16888TransactionDatabaseOperationBase::TransactionDatabaseOperationBase(
16889 SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId,
16890 uint64_t aLoggingSerialNumber)
16891 : DatabaseOperationBase(aTransaction->GetLoggingInfo()->Id(),
16892 aLoggingSerialNumber),
16893 mTransaction(WrapNotNull(std::move(aTransaction))),
16894 mRequestId(aRequestId),
16895 mTransactionIsAborted((*mTransaction)->IsAborted()),
16896 mTransactionLoggingSerialNumber((*mTransaction)->LoggingSerialNumber()) {}
16897
16898TransactionDatabaseOperationBase::~TransactionDatabaseOperationBase() {
16899 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"
, 16899); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::Completed"
")"); do { *((volatile int*)__null) = 16899; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16900 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"
, 16902); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransaction"
") (" "TransactionDatabaseOperationBase::Cleanup() was not called by a "
"subclass!" ")"); do { *((volatile int*)__null) = 16902; __attribute__
((nomerge)) ::abort(); } while (false); } } while (false)
16901 "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"
, 16902); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransaction"
") (" "TransactionDatabaseOperationBase::Cleanup() was not called by a "
"subclass!" ")"); do { *((volatile int*)__null) = 16902; __attribute__
((nomerge)) ::abort(); } while (false); } } while (false)
16902 "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"
, 16902); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransaction"
") (" "TransactionDatabaseOperationBase::Cleanup() was not called by a "
"subclass!" ")"); do { *((volatile int*)__null) = 16902; __attribute__
((nomerge)) ::abort(); } while (false); } } while (false)
;
16903}
16904
16905#ifdef DEBUG1
16906
16907void TransactionDatabaseOperationBase::AssertIsOnConnectionThread() const {
16908 (*mTransaction)->AssertIsOnConnectionThread();
16909}
16910
16911#endif // DEBUG
16912
16913uint64_t TransactionDatabaseOperationBase::StartOnConnectionPool(
16914 const nsID& aBackgroundChildLoggingId, const nsACString& aDatabaseId,
16915 int64_t aLoggingSerialNumber, const nsTArray<nsString>& aObjectStoreNames,
16916 bool aIsWriteTransaction) {
16917 AssertIsOnOwningThread();
16918 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"
, 16918); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::Initial"
")"); do { *((volatile int*)__null) = 16918; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16919
16920 // Must set mInternalState before dispatching otherwise we will race with the
16921 // connection thread.
16922 mInternalState = InternalState::DatabaseWork;
16923
16924 return gConnectionPool->Start(aBackgroundChildLoggingId, aDatabaseId,
16925 aLoggingSerialNumber, aObjectStoreNames,
16926 aIsWriteTransaction, this);
16927}
16928
16929void TransactionDatabaseOperationBase::DispatchToConnectionPool() {
16930 AssertIsOnOwningThread();
16931 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"
, 16931); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::Initial"
")"); do { *((volatile int*)__null) = 16931; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16932
16933 Unused << this->Run();
16934}
16935
16936void TransactionDatabaseOperationBase::RunOnConnectionThread() {
16937 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"
, 16937); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 16937; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16938 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"
, 16938); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::DatabaseWork"
")"); do { *((volatile int*)__null) = 16938; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16939 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"
, 16939); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!HasFailed()"
")"); do { *((volatile int*)__null) = 16939; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16940
16941 AUTO_PROFILER_LABEL("TransactionDatabaseOperationBase::RunOnConnectionThread",mozilla::AutoProfilerLabel raiiObject16942( "TransactionDatabaseOperationBase::RunOnConnectionThread"
, nullptr, JS::ProfilingCategoryPair::DOM)
16942 DOM)mozilla::AutoProfilerLabel raiiObject16942( "TransactionDatabaseOperationBase::RunOnConnectionThread"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
16943
16944 // There are several cases where we don't actually have to to any work here.
16945
16946 if (mTransactionIsAborted || (*mTransaction)->IsInvalidatedOnAnyThread()) {
16947 // This transaction is already set to be aborted or invalidated.
16948 SetFailureCode(NS_ERROR_DOM_INDEXEDDB_ABORT_ERR);
16949 } else if (!OperationMayProceed()) {
16950 // The operation was canceled in some way, likely because the child process
16951 // has crashed.
16952 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 16952, "UnknownErr")
;
16953 OverrideFailureCode(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR);
16954 } else {
16955 Database& database = (*mTransaction)->GetMutableDatabase();
16956
16957 // Here we're actually going to perform the database operation.
16958 nsresult rv = database.EnsureConnection();
16959 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"
, 16959)
) {
16960 SetFailureCode(rv);
16961 } else {
16962 DatabaseConnection* connection = database.GetConnection();
16963 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"
, 16963); AnnotateMozCrashReason("MOZ_ASSERT" "(" "connection"
")"); do { *((volatile int*)__null) = 16963; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
16964
16965 auto& storageConnection = connection->MutableStorageConnection();
16966
16967 AutoSetProgressHandler autoProgress;
16968 if (mLoggingSerialNumber) {
16969 rv = autoProgress.Register(storageConnection, this);
16970 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"
, 16970)
) {
16971 SetFailureCode(rv);
16972 }
16973 }
16974
16975 if (NS_SUCCEEDED(rv)((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) {
16976 if (mLoggingSerialNumber) {
16977 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
)
16978 "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
)
16979 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
)
16980 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
)
;
16981 }
16982
16983 rv = DoDatabaseWork(connection);
16984
16985 if (mLoggingSerialNumber) {
16986 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)
16987 "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)
16988 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)
16989 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)
;
16990 }
16991
16992 if (NS_FAILED(rv)((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) {
16993 SetFailureCode(rv);
16994 }
16995 }
16996 }
16997 }
16998
16999 // Must set mInternalState before dispatching otherwise we will race with the
17000 // owning thread.
17001 if (HasPreprocessInfo()) {
17002 mInternalState = InternalState::SendingPreprocess;
17003 } else {
17004 mInternalState = InternalState::SendingResults;
17005 }
17006
17007 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 { static_assert( mozilla::detail
::AssertionConditionType<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17007); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))"
")"); do { *((volatile int*)__null) = 17007; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
17008}
17009
17010bool TransactionDatabaseOperationBase::HasPreprocessInfo() { return false; }
17011
17012nsresult TransactionDatabaseOperationBase::SendPreprocessInfo() {
17013 return NS_OK;
17014}
17015
17016void TransactionDatabaseOperationBase::NoteContinueReceived() {
17017 AssertIsOnOwningThread();
17018 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"
, 17018); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::WaitingForContinue"
")"); do { *((volatile int*)__null) = 17018; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17019
17020 mWaitingForContinue = false;
17021
17022 mInternalState = InternalState::SendingResults;
17023
17024 // This TransactionDatabaseOperationBase can only be held alive by the IPDL.
17025 // Run() can end up with clearing that last reference. So we need to add
17026 // a self reference here.
17027 RefPtr<TransactionDatabaseOperationBase> kungFuDeathGrip = this;
17028
17029 Unused << this->Run();
17030}
17031
17032void TransactionDatabaseOperationBase::SendToConnectionPool() {
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 gConnectionPool->Dispatch((*mTransaction)->TransactionId(), this);
17041
17042 (*mTransaction)->NoteActiveRequest();
17043}
17044
17045void TransactionDatabaseOperationBase::SendPreprocess() {
17046 AssertIsOnOwningThread();
17047 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"
, 17047); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::SendingPreprocess"
")"); do { *((volatile int*)__null) = 17047; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17048
17049 SendPreprocessInfoOrResults(/* aSendPreprocessInfo */ true);
17050}
17051
17052void TransactionDatabaseOperationBase::SendResults() {
17053 AssertIsOnOwningThread();
17054 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"
, 17054); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::SendingResults"
")"); do { *((volatile int*)__null) = 17054; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17055
17056 SendPreprocessInfoOrResults(/* aSendPreprocessInfo */ false);
17057}
17058
17059void TransactionDatabaseOperationBase::SendPreprocessInfoOrResults(
17060 bool aSendPreprocessInfo) {
17061 AssertIsOnOwningThread();
17062 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"
, 17063); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::SendingPreprocess || mInternalState == InternalState::SendingResults"
")"); do { *((volatile int*)__null) = 17063; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
17063 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"
, 17063); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::SendingPreprocess || mInternalState == InternalState::SendingResults"
")"); do { *((volatile int*)__null) = 17063; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17064
17065 // The flag is raised only when there is no mUpdateRefcountFunction for the
17066 // executing operation. It assume that is because the previous
17067 // StartTransactionOp was failed to begin a write transaction and it reported
17068 // when this operation has already jumped to the Connection thread.
17069 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"
, 17070); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "(*mTransaction)->IsAborted()"
")"); do { *((volatile int*)__null) = 17070; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
17070 (*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"
, 17070); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "(*mTransaction)->IsAborted()"
")"); do { *((volatile int*)__null) = 17070; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
17071
17072 if (NS_WARN_IF(IsActorDestroyed())NS_warn_if_impl(IsActorDestroyed(), "IsActorDestroyed()", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17072)
) {
17073 // Normally we wouldn't need to send any notifications if the actor was
17074 // already destroyed, but this can be a VersionChangeOp which needs to
17075 // notify its parent operation (OpenDatabaseOp) about the failure.
17076 // So SendFailureResult needs to be called even when the actor was
17077 // destroyed. Normal operations redundantly check if the actor was
17078 // destroyed in SendSuccessResult and SendFailureResult, therefore it's
17079 // ok to call it in all cases here.
17080 if (!HasFailed()) {
17081 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17081, "UnknownErr")
;
17082 SetFailureCode(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR);
17083 }
17084 } else if ((*mTransaction)->IsInvalidated() || (*mTransaction)->IsAborted()) {
17085 // Aborted transactions always see their requests fail with ABORT_ERR,
17086 // even if the request succeeded or failed with another error.
17087 OverrideFailureCode(NS_ERROR_DOM_INDEXEDDB_ABORT_ERR);
17088 }
17089
17090 const nsresult rv = [aSendPreprocessInfo, this] {
17091 if (HasFailed()) {
17092 return ResultCode();
17093 }
17094 if (aSendPreprocessInfo) {
17095 // This should not release the IPDL reference.
17096 return SendPreprocessInfo();
17097 }
17098 // This may release the IPDL reference.
17099 return SendSuccessResult();
17100 }();
17101
17102 if (NS_FAILED(rv)((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) {
17103 SetFailureCodeIfUnset(rv);
17104
17105 // This should definitely release the IPDL reference.
17106 if (!SendFailureResult(rv)) {
17107 // Abort the transaction.
17108 (*mTransaction)->Abort(rv, /* aForce */ false);
17109 }
17110 }
17111
17112 if (aSendPreprocessInfo && !HasFailed()) {
17113 mInternalState = InternalState::WaitingForContinue;
17114
17115 mWaitingForContinue = true;
17116 } else {
17117 if (mLoggingSerialNumber) {
17118 (*mTransaction)->NoteFinishedRequest(mRequestId, ResultCode());
17119 }
17120
17121 Cleanup();
17122
17123 mInternalState = InternalState::Completed;
17124 }
17125}
17126
17127bool TransactionDatabaseOperationBase::Init(TransactionBase& aTransaction) {
17128 AssertIsOnBackgroundThread();
17129 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"
, 17129); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::Initial"
")"); do { *((volatile int*)__null) = 17129; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17130
17131 return true;
17132}
17133
17134void TransactionDatabaseOperationBase::Cleanup() {
17135 AssertIsOnOwningThread();
17136 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"
, 17136); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::SendingResults"
")"); do { *((volatile int*)__null) = 17136; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17137
17138 mTransaction.destroy();
17139}
17140
17141NS_IMETHODIMPnsresult
17142TransactionDatabaseOperationBase::Run() {
17143 switch (mInternalState) {
17144 case InternalState::Initial:
17145 SendToConnectionPool();
17146 return NS_OK;
17147
17148 case InternalState::DatabaseWork:
17149 RunOnConnectionThread();
17150 return NS_OK;
17151
17152 case InternalState::SendingPreprocess:
17153 SendPreprocess();
17154 return NS_OK;
17155
17156 case InternalState::SendingResults:
17157 SendResults();
17158 return NS_OK;
17159
17160 default:
17161 MOZ_CRASH("Bad state!")do { do { } while (false); MOZ_ReportCrash("" "Bad state!", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17161); AnnotateMozCrashReason("MOZ_CRASH(" "Bad state!" ")"
); do { *((volatile int*)__null) = 17161; __attribute__((nomerge
)) ::abort(); } while (false); } while (false)
;
17162 }
17163}
17164
17165TransactionBase::CommitOp::CommitOp(SafeRefPtr<TransactionBase> aTransaction,
17166 nsresult aResultCode)
17167 : DatabaseOperationBase(aTransaction->GetLoggingInfo()->Id(),
17168 aTransaction->GetLoggingInfo()->NextRequestSN()),
17169 mTransaction(std::move(aTransaction)),
17170 mResultCode(aResultCode) {
17171 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"
, 17171); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction"
")"); do { *((volatile int*)__null) = 17171; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17172 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"
, 17172); AnnotateMozCrashReason("MOZ_ASSERT" "(" "LoggingSerialNumber()"
")"); do { *((volatile int*)__null) = 17172; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17173}
17174
17175nsresult TransactionBase::CommitOp::WriteAutoIncrementCounts() {
17176 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"
, 17176); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction"
")"); do { *((volatile int*)__null) = 17176; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17177 mTransaction->AssertIsOnConnectionThread();
17178 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"
, 17181); 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) = 17181; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
17179 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"
, 17181); 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) = 17181; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
17180 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"
, 17181); 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) = 17181; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
17181 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"
, 17181); 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) = 17181; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17182
17183 const nsTArray<SafeRefPtr<FullObjectStoreMetadata>>& metadataArray =
17184 mTransaction->mModifiedAutoIncrementObjectStoreMetadataArray;
17185
17186 if (!metadataArray.IsEmpty()) {
17187 DatabaseConnection* connection =
17188 mTransaction->GetDatabase().GetConnection();
17189 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"
, 17189); AnnotateMozCrashReason("MOZ_ASSERT" "(" "connection"
")"); do { *((volatile int*)__null) = 17189; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17190
17191 // The parameter names are not used, parameters are bound by index only
17192 // locally in the same function.
17193 auto stmt = DatabaseConnection::LazyStatement(
17194 *connection,
17195 "UPDATE object_store "
17196 "SET auto_increment = :auto_increment WHERE id "
17197 "= :object_store_id;"_ns);
17198
17199 for (const auto& metadata : metadataArray) {
17200 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"
, 17200); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!metadata->mDeleted"
")"); do { *((volatile int*)__null) = 17200; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17201
17202 const int64_t nextAutoIncrementId = [&metadata] {
17203 const auto&& lockedAutoIncrementIds =
17204 metadata->mAutoIncrementIds.Lock();
17205 return lockedAutoIncrementIds->next;
17206 }();
17207
17208 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"
, 17208); AnnotateMozCrashReason("MOZ_ASSERT" "(" "nextAutoIncrementId > 1"
")"); do { *((volatile int*)__null) = 17208; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17209
17210 QM_TRY_INSPECT(const auto& borrowedStmt, stmt.Borrow())auto tryResult1314 = (stmt.Borrow()); if ((__builtin_expect(!
!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError
("stmt.Borrow()", tryResult1314.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17210, mozilla::dom::quota::Severity::Error); return tryResult1314
.propagateErr(); } const auto& borrowedStmt = tryResult1314
.inspect();
;
17211
17212 QM_TRY(MOZ_TO_RESULT({auto tryResult1315 = (ToResult(borrowedStmt->BindInt64ByIndex
(1, metadata->mCommonMetadata.id()))); static_assert(std::
is_empty_v<typename decltype(tryResult1315)::ok_type>);
if ((__builtin_expect(!!(tryResult1315.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByIndex(1, metadata->mCommonMetadata.id()))"
, tryResult1315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17213, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); }}
17213 borrowedStmt->BindInt64ByIndex(1, metadata->mCommonMetadata.id()))){auto tryResult1315 = (ToResult(borrowedStmt->BindInt64ByIndex
(1, metadata->mCommonMetadata.id()))); static_assert(std::
is_empty_v<typename decltype(tryResult1315)::ok_type>);
if ((__builtin_expect(!!(tryResult1315.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByIndex(1, metadata->mCommonMetadata.id()))"
, tryResult1315.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17213, mozilla::dom::quota::Severity::Error); return tryResult1315
.propagateErr(); }}
;
17214
17215 QM_TRY(MOZ_TO_RESULT({auto tryResult1316 = (ToResult(borrowedStmt->BindInt64ByIndex
(0, nextAutoIncrementId))); static_assert(std::is_empty_v<
typename decltype(tryResult1316)::ok_type>); if ((__builtin_expect
(!!(tryResult1316.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(borrowedStmt->BindInt64ByIndex(0, nextAutoIncrementId))"
, tryResult1316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17216, mozilla::dom::quota::Severity::Error); return tryResult1316
.propagateErr(); }}
17216 borrowedStmt->BindInt64ByIndex(0, nextAutoIncrementId))){auto tryResult1316 = (ToResult(borrowedStmt->BindInt64ByIndex
(0, nextAutoIncrementId))); static_assert(std::is_empty_v<
typename decltype(tryResult1316)::ok_type>); if ((__builtin_expect
(!!(tryResult1316.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(borrowedStmt->BindInt64ByIndex(0, nextAutoIncrementId))"
, tryResult1316.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17216, mozilla::dom::quota::Severity::Error); return tryResult1316
.propagateErr(); }}
;
17217
17218 QM_TRY(MOZ_TO_RESULT(borrowedStmt->Execute())){auto tryResult1317 = (ToResult(borrowedStmt->Execute()));
static_assert(std::is_empty_v<typename decltype(tryResult1317
)::ok_type>); if ((__builtin_expect(!!(tryResult1317.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedStmt->Execute())"
, tryResult1317.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17218, mozilla::dom::quota::Severity::Error); return tryResult1317
.propagateErr(); }}
;
17219 }
17220 }
17221
17222 return NS_OK;
17223}
17224
17225void TransactionBase::CommitOp::CommitOrRollbackAutoIncrementCounts() {
17226 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"
, 17226); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction"
")"); do { *((volatile int*)__null) = 17226; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17227 mTransaction->AssertIsOnConnectionThread();
17228 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"
, 17231); 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) = 17231; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
17229 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"
, 17231); 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) = 17231; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
17230 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"
, 17231); 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) = 17231; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
17231 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"
, 17231); 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) = 17231; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17232
17233 const auto& metadataArray =
17234 mTransaction->mModifiedAutoIncrementObjectStoreMetadataArray;
17235
17236 if (!metadataArray.IsEmpty()) {
17237 bool committed = NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
;
17238
17239 for (const auto& metadata : metadataArray) {
17240 auto&& lockedAutoIncrementIds = metadata->mAutoIncrementIds.Lock();
17241
17242 if (committed) {
17243 lockedAutoIncrementIds->committed = lockedAutoIncrementIds->next;
17244 } else {
17245 lockedAutoIncrementIds->next = lockedAutoIncrementIds->committed;
17246 }
17247 }
17248 }
17249}
17250
17251#ifdef DEBUG1
17252
17253void TransactionBase::CommitOp::AssertForeignKeyConsistency(
17254 DatabaseConnection* aConnection) {
17255 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"
, 17255); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 17255; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17256 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"
, 17256); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction"
")"); do { *((volatile int*)__null) = 17256; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17257 mTransaction->AssertIsOnConnectionThread();
17258 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"
, 17258); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() != IDBTransaction::Mode::ReadOnly"
")"); do { *((volatile int*)__null) = 17258; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17259
17260 {
17261 QM_TRY_INSPECT(auto tryResult1318 = (CreateAndExecuteSingleStepStatement( aConnection
->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns));
if ((__builtin_expect(!!(tryResult1318.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1318.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17265, 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"
, 17265); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17265; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& pragmaStmt = tryResult1318.inspect();
17262 const auto& pragmaStmt,auto tryResult1318 = (CreateAndExecuteSingleStepStatement( aConnection
->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns));
if ((__builtin_expect(!!(tryResult1318.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1318.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17265, 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"
, 17265); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17265; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& pragmaStmt = tryResult1318.inspect();
17263 CreateAndExecuteSingleStepStatement(auto tryResult1318 = (CreateAndExecuteSingleStepStatement( aConnection
->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns));
if ((__builtin_expect(!!(tryResult1318.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1318.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17265, 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"
, 17265); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17265; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& pragmaStmt = tryResult1318.inspect();
17264 aConnection->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns),auto tryResult1318 = (CreateAndExecuteSingleStepStatement( aConnection
->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns));
if ((__builtin_expect(!!(tryResult1318.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1318.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17265, 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"
, 17265); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17265; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& pragmaStmt = tryResult1318.inspect();
17265 QM_ASSERT_UNREACHABLE_VOID)auto tryResult1318 = (CreateAndExecuteSingleStepStatement( aConnection
->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns));
if ((__builtin_expect(!!(tryResult1318.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1318.unwrapErr
(); mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17265, 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"
, 17265); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17265; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& pragmaStmt = tryResult1318.inspect();
;
17266
17267 int32_t foreignKeysEnabled;
17268 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 { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(pragmaStmt->GetInt32(0, &foreignKeysEnabled))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17268); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(pragmaStmt->GetInt32(0, &foreignKeysEnabled))"
")"); do { *((volatile int*)__null) = 17268; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
17269
17270 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"
, 17271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foreignKeysEnabled"
") (" "Database doesn't have foreign keys enabled!" ")"); do
{ *((volatile int*)__null) = 17271; __attribute__((nomerge))
::abort(); } while (false); } } while (false)
17271 "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"
, 17271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foreignKeysEnabled"
") (" "Database doesn't have foreign keys enabled!" ")"); do
{ *((volatile int*)__null) = 17271; __attribute__((nomerge))
::abort(); } while (false); } } while (false)
;
17272 }
17273
17274 {
17275 QM_TRY_INSPECT(const bool& foreignKeyError,auto tryResult1319 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection->
MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns));
if ((__builtin_expect(!!(tryResult1319.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1319.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"
, 17280, 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"
, 17280); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17280; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& foreignKeyError = tryResult1319.inspect();
17276 CreateAndExecuteSingleStepStatement<auto tryResult1319 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection->
MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns));
if ((__builtin_expect(!!(tryResult1319.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1319.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"
, 17280, 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"
, 17280); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17280; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& foreignKeyError = tryResult1319.inspect();
17277 SingleStepResult::ReturnNullIfNoResult>(auto tryResult1319 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection->
MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns));
if ((__builtin_expect(!!(tryResult1319.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1319.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"
, 17280, 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"
, 17280); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17280; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& foreignKeyError = tryResult1319.inspect();
17278 aConnection->MutableStorageConnection(),auto tryResult1319 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection->
MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns));
if ((__builtin_expect(!!(tryResult1319.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1319.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"
, 17280, 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"
, 17280); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17280; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& foreignKeyError = tryResult1319.inspect();
17279 "PRAGMA foreign_key_check;"_ns),auto tryResult1319 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection->
MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns));
if ((__builtin_expect(!!(tryResult1319.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1319.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"
, 17280, 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"
, 17280); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17280; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& foreignKeyError = tryResult1319.inspect();
17280 QM_ASSERT_UNREACHABLE_VOID)auto tryResult1319 = (CreateAndExecuteSingleStepStatement<
SingleStepResult::ReturnNullIfNoResult>( aConnection->
MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns));
if ((__builtin_expect(!!(tryResult1319.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1319.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"
, 17280, 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"
, 17280); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17280; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& foreignKeyError = tryResult1319.inspect();
;
17281
17282 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"
, 17282); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!foreignKeyError"
") (" "Database has inconsisistent foreign keys!" ")"); do {
*((volatile int*)__null) = 17282; __attribute__((nomerge)) ::
abort(); } while (false); } } while (false)
;
17283 }
17284}
17285
17286#endif // DEBUG
17287
17288NS_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"
, 17288); 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; }
17289
17290NS_IMETHODIMPnsresult
17291TransactionBase::CommitOp::Run() {
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
17295 AUTO_PROFILER_LABEL("TransactionBase::CommitOp::Run", DOM)mozilla::AutoProfilerLabel raiiObject17295( "TransactionBase::CommitOp::Run"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
17296
17297 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
)
17298 "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
)
17299 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
)
17300 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
)
;
17301
17302 if (mTransaction->GetMode() != IDBTransaction::Mode::ReadOnly &&
17303 mTransaction->mHasBeenActiveOnConnectionThread) {
17304 if (DatabaseConnection* connection =
17305 mTransaction->GetDatabase().GetConnection()) {
17306 // May be null if the VersionChangeOp was canceled.
17307 DatabaseConnection::UpdateRefcountFunction* fileRefcountFunction =
17308 connection->GetUpdateRefcountFunction();
17309
17310 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
17311 if (fileRefcountFunction) {
17312 mResultCode = fileRefcountFunction->WillCommit();
17313 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"
, 17314); } } while (false)
17314 "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"
, 17314); } } while (false)
;
17315 }
17316
17317 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
17318 mResultCode = WriteAutoIncrementCounts();
17319 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"
, 17320); } } while (false)
17320 "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"
, 17320); } } while (false)
;
17321
17322 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
) {
17323 AssertForeignKeyConsistency(connection);
17324
17325 mResultCode = connection->CommitWriteTransaction();
17326 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"
, 17326); } } while (false)
;
17327
17328 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
&&
17329 mTransaction->GetMode() ==
17330 IDBTransaction::Mode::ReadWriteFlush) {
17331 mResultCode = connection->Checkpoint();
17332 }
17333
17334 if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)
))
&& fileRefcountFunction) {
17335 fileRefcountFunction->DidCommit();
17336 }
17337 }
17338 }
17339 }
17340
17341 if (NS_FAILED(mResultCode)((bool)(__builtin_expect(!!(NS_FAILED_impl(mResultCode)), 0))
)
) {
17342 if (fileRefcountFunction) {
17343 fileRefcountFunction->DidAbort();
17344 }
17345
17346 connection->RollbackWriteTransaction();
17347 }
17348
17349 CommitOrRollbackAutoIncrementCounts();
17350
17351 connection->FinishWriteTransaction();
17352
17353 if (mTransaction->GetMode() == IDBTransaction::Mode::Cleanup) {
17354 connection->DoIdleProcessing(/* aNeedsCheckpoint */ true,
17355 /* aInterrupted */ Atomic<bool>(false));
17356
17357 connection->EnableQuotaChecks();
17358 }
17359 }
17360 }
17361
17362 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
)
17363 "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
)
17364 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
)
17365 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
)
;
17366
17367 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())
17368 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())
17369 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())
;
17370
17371 return NS_OK;
17372}
17373
17374void TransactionBase::CommitOp::TransactionFinishedBeforeUnblock() {
17375 AssertIsOnBackgroundThread();
17376 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"
, 17376); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction"
")"); do { *((volatile int*)__null) = 17376; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17377
17378 AUTO_PROFILER_LABEL("CommitOp::TransactionFinishedBeforeUnblock", DOM)mozilla::AutoProfilerLabel raiiObject17378( "CommitOp::TransactionFinishedBeforeUnblock"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
17379
17380 if (!IsActorDestroyed()) {
17381 mTransaction->UpdateMetadata(mResultCode);
17382 }
17383}
17384
17385void TransactionBase::CommitOp::TransactionFinishedAfterUnblock() {
17386 AssertIsOnBackgroundThread();
17387 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"
, 17387); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction"
")"); do { *((volatile int*)__null) = 17387; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17388
17389 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
))
17390 "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
))
17391 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
))
17392 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
))
;
17393
17394 mTransaction->SendCompleteNotification(ClampResultCode(mResultCode));
17395
17396 mTransaction->GetMutableDatabase().UnregisterTransaction(*mTransaction);
17397
17398 mTransaction = nullptr;
17399
17400#ifdef DEBUG1
17401 // A bit hacky but the CommitOp is not really a normal database operation
17402 // that is tied to an actor. Do this to make our assertions happy.
17403 NoteActorDestroyed();
17404#endif
17405}
17406
17407nsresult VersionChangeTransactionOp::SendSuccessResult() {
17408 AssertIsOnOwningThread();
17409
17410 // Nothing to send here, the API assumes that this request always succeeds.
17411 return NS_OK;
17412}
17413
17414bool VersionChangeTransactionOp::SendFailureResult(nsresult aResultCode) {
17415 AssertIsOnOwningThread();
17416
17417 // The only option here is to cause the transaction to abort.
17418 return false;
17419}
17420
17421void VersionChangeTransactionOp::Cleanup() {
17422 AssertIsOnOwningThread();
17423
17424#ifdef DEBUG1
17425 // A bit hacky but the VersionChangeTransactionOp is not generated in response
17426 // to a child request like most other database operations. Do this to make our
17427 // assertions happy.
17428 NoteActorDestroyed();
17429#endif
17430
17431 TransactionDatabaseOperationBase::Cleanup();
17432}
17433
17434nsresult CreateObjectStoreOp::DoDatabaseWork(DatabaseConnection* aConnection) {
17435 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"
, 17435); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 17435; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17436 aConnection->AssertIsOnConnectionThread();
17437
17438 AUTO_PROFILER_LABEL("CreateObjectStoreOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject17438( "CreateObjectStoreOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
17439
17440#ifdef DEBUG1
17441 {
17442 // Make sure that we're not creating an object store with the same name as
17443 // another that already exists. This should be impossible because we should
17444 // have thrown an error long before now...
17445 // The parameter names are not used, parameters are bound by index only
17446 // locally in the same function.
17447 QM_TRY_INSPECT(const bool& hasResult,auto tryResult1321 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1320 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect
(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17455, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1321.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1321.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1320 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1320.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17455, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17459, 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 tryResult1320 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1320.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17455, mozilla::dom::quota::Severity::Error); return tryResult1320.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"
, 17459); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17459; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1321.inspect();
17448 aConnectionauto tryResult1321 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1320 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect
(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17455, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1321.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1321.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1320 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1320.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17455, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17459, 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 tryResult1320 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1320.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17455, mozilla::dom::quota::Severity::Error); return tryResult1320.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"
, 17459); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17459; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1321.inspect();
17449 ->BorrowAndExecuteSingleStepStatement(auto tryResult1321 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1320 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect
(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17455, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1321.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1321.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1320 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1320.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17455, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17459, 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 tryResult1320 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1320.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17455, mozilla::dom::quota::Severity::Error); return tryResult1320.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"
, 17459); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17459; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1321.inspect();
17450 "SELECT name "auto tryResult1321 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1320 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect
(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17455, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1321.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1321.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1320 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1320.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17455, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17459, 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 tryResult1320 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1320.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17455, mozilla::dom::quota::Severity::Error); return tryResult1320.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"
, 17459); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17459; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1321.inspect();
17451 "FROM object_store "auto tryResult1321 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1320 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect
(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17455, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1321.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1321.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1320 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1320.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17455, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17459, 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 tryResult1320 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1320.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17455, mozilla::dom::quota::Severity::Error); return tryResult1320.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"
, 17459); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17459; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1321.inspect();
17452 "WHERE name = :name;"_ns,auto tryResult1321 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1320 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect
(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17455, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1321.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1321.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1320 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1320.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17455, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17459, 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 tryResult1320 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1320.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17455, mozilla::dom::quota::Severity::Error); return tryResult1320.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"
, 17459); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17459; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1321.inspect();
17453 [&self = *this](auto& stmt) -> Result<Ok, nsresult> {auto tryResult1321 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1320 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect
(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17455, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1321.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1321.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1320 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1320.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17455, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17459, 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 tryResult1320 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1320.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17455, mozilla::dom::quota::Severity::Error); return tryResult1320.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"
, 17459); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17459; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1321.inspect();
17454 QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex(auto tryResult1321 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1320 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect
(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17455, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1321.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1321.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1320 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1320.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17455, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17459, 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 tryResult1320 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1320.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17455, mozilla::dom::quota::Severity::Error); return tryResult1320.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"
, 17459); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17459; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1321.inspect();
17455 0, self.mMetadata.name())));auto tryResult1321 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1320 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect
(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17455, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1321.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1321.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1320 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1320.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17455, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17459, 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 tryResult1320 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1320.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17455, mozilla::dom::quota::Severity::Error); return tryResult1320.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"
, 17459); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17459; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1321.inspect();
17456 return Ok{};auto tryResult1321 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1320 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect
(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17455, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1321.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1321.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1320 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1320.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17455, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17459, 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 tryResult1320 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1320.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17455, mozilla::dom::quota::Severity::Error); return tryResult1320.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"
, 17459); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17459; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1321.inspect();
17457 })auto tryResult1321 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1320 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect
(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17455, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1321.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1321.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1320 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1320.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17455, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17459, 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 tryResult1320 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1320.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17455, mozilla::dom::quota::Severity::Error); return tryResult1320.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"
, 17459); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17459; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1321.inspect();
17458 .map(IsSome),auto tryResult1321 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1320 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect
(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17455, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1321.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1321.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1320 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1320.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17455, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17459, 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 tryResult1320 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1320.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17455, mozilla::dom::quota::Severity::Error); return tryResult1320.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"
, 17459); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17459; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1321.inspect();
17459 QM_ASSERT_UNREACHABLE)auto tryResult1321 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1320 = (ToResult(stmt.BindStringByIndex
( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect
(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))"
, tryResult1320.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17455, mozilla::dom::quota::Severity::Error); return tryResult1320
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1321.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1321.unwrapErr(); mozilla::dom::quota
::HandleError("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1320 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1320.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17455, mozilla::dom::quota::Severity::Error); return tryResult1320.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17459, 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 tryResult1320 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect(!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1320.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17455, mozilla::dom::quota::Severity::Error); return tryResult1320.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"
, 17459); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17459; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1321.inspect();
;
17460
17461 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"
, 17461); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!hasResult"
")"); do { *((volatile int*)__null) = 17461; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17462 }
17463#endif
17464
17465 DatabaseConnection::AutoSavepoint autoSave;
17466 QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1322 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322
.isErr()), 0))) { auto tryTempError = tryResult1322.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17471, 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)); }}
17467#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1322 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322
.isErr()), 0))) { auto tryTempError = tryResult1322.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17471, 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)); }}
17468 ,{auto tryResult1322 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322
.isErr()), 0))) { auto tryTempError = tryResult1322.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17471, 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)); }}
17469 QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1322 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322
.isErr()), 0))) { auto tryTempError = tryResult1322.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17471, 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)); }}
17470#endif{auto tryResult1322 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322
.isErr()), 0))) { auto tryTempError = tryResult1322.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17471, 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)); }}
17471 ){auto tryResult1322 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1322)::ok_type>); if ((__builtin_expect(!!(tryResult1322
.isErr()), 0))) { auto tryTempError = tryResult1322.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17471, 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)); }}
;
17472
17473 // The parameter names are not used, parameters are bound by index only
17474 // locally in the same function.
17475 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1328 = (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 tryResult1323 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1323
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17480, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; {auto tryResult1324 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect
(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17483, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); }}; {auto tryResult1325 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1325
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17485, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1326 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1326.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17489, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; } else { {auto tryResult1327 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect
(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1327.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17491, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1328)::ok_type>);
if ((__builtin_expect(!!(tryResult1328.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 tryResult1323 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17480, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; {auto tryResult1324 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1324.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17483, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); }}; {auto tryResult1325 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1325.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17485, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1326 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1326.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17489, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; } else { {auto tryResult1327 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1327.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17491, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; } return Ok{}; }))"
, tryResult1328.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17495, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}
17476 "INSERT INTO object_store (id, auto_increment, name, key_path) "{auto tryResult1328 = (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 tryResult1323 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1323
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17480, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; {auto tryResult1324 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect
(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17483, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); }}; {auto tryResult1325 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1325
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17485, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1326 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1326.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17489, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; } else { {auto tryResult1327 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect
(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1327.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17491, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1328)::ok_type>);
if ((__builtin_expect(!!(tryResult1328.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 tryResult1323 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17480, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; {auto tryResult1324 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1324.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17483, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); }}; {auto tryResult1325 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1325.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17485, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1326 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1326.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17489, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; } else { {auto tryResult1327 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1327.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17491, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; } return Ok{}; }))"
, tryResult1328.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17495, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}
17477 "VALUES (:id, :auto_increment, :name, :key_path);"_ns,{auto tryResult1328 = (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 tryResult1323 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1323
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17480, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; {auto tryResult1324 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect
(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17483, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); }}; {auto tryResult1325 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1325
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17485, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1326 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1326.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17489, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; } else { {auto tryResult1327 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect
(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1327.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17491, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1328)::ok_type>);
if ((__builtin_expect(!!(tryResult1328.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 tryResult1323 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17480, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; {auto tryResult1324 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1324.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17483, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); }}; {auto tryResult1325 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1325.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17485, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1326 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1326.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17489, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; } else { {auto tryResult1327 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1327.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17491, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; } return Ok{}; }))"
, tryResult1328.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17495, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}
17478 [&metadata ={auto tryResult1328 = (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 tryResult1323 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1323
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17480, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; {auto tryResult1324 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect
(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17483, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); }}; {auto tryResult1325 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1325
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17485, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1326 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1326.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17489, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; } else { {auto tryResult1327 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect
(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1327.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17491, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1328)::ok_type>);
if ((__builtin_expect(!!(tryResult1328.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 tryResult1323 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17480, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; {auto tryResult1324 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1324.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17483, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); }}; {auto tryResult1325 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1325.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17485, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1326 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1326.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17489, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; } else { {auto tryResult1327 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1327.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17491, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; } return Ok{}; }))"
, tryResult1328.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17495, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}
17479 mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> {{auto tryResult1328 = (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 tryResult1323 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1323
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17480, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; {auto tryResult1324 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect
(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17483, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); }}; {auto tryResult1325 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1325
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17485, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1326 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1326.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17489, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; } else { {auto tryResult1327 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect
(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1327.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17491, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1328)::ok_type>);
if ((__builtin_expect(!!(tryResult1328.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 tryResult1323 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17480, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; {auto tryResult1324 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1324.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17483, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); }}; {auto tryResult1325 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1325.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17485, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1326 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1326.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17489, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; } else { {auto tryResult1327 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1327.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17491, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; } return Ok{}; }))"
, tryResult1328.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17495, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}
17480 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(0, metadata.id())));{auto tryResult1328 = (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 tryResult1323 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1323
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17480, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; {auto tryResult1324 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect
(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17483, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); }}; {auto tryResult1325 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1325
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17485, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1326 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1326.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17489, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; } else { {auto tryResult1327 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect
(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1327.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17491, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1328)::ok_type>);
if ((__builtin_expect(!!(tryResult1328.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 tryResult1323 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17480, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; {auto tryResult1324 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1324.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17483, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); }}; {auto tryResult1325 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1325.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17485, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1326 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1326.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17489, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; } else { {auto tryResult1327 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1327.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17491, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; } return Ok{}; }))"
, tryResult1328.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17495, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}
17481
17482 QM_TRY(MOZ_TO_RESULT({auto tryResult1328 = (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 tryResult1323 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1323
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17480, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; {auto tryResult1324 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect
(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17483, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); }}; {auto tryResult1325 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1325
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17485, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1326 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1326.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17489, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; } else { {auto tryResult1327 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect
(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1327.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17491, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1328)::ok_type>);
if ((__builtin_expect(!!(tryResult1328.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 tryResult1323 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17480, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; {auto tryResult1324 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1324.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17483, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); }}; {auto tryResult1325 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1325.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17485, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1326 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1326.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17489, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; } else { {auto tryResult1327 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1327.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17491, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; } return Ok{}; }))"
, tryResult1328.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17495, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}
17483 stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0)));{auto tryResult1328 = (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 tryResult1323 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1323
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17480, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; {auto tryResult1324 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect
(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17483, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); }}; {auto tryResult1325 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1325
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17485, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1326 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1326.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17489, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; } else { {auto tryResult1327 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect
(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1327.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17491, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1328)::ok_type>);
if ((__builtin_expect(!!(tryResult1328.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 tryResult1323 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17480, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; {auto tryResult1324 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1324.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17483, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); }}; {auto tryResult1325 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1325.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17485, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1326 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1326.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17489, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; } else { {auto tryResult1327 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1327.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17491, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; } return Ok{}; }))"
, tryResult1328.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17495, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}
17484
17485 QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex(2, metadata.name())));{auto tryResult1328 = (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 tryResult1323 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1323
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17480, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; {auto tryResult1324 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect
(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17483, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); }}; {auto tryResult1325 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1325
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17485, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1326 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1326.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17489, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; } else { {auto tryResult1327 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect
(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1327.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17491, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1328)::ok_type>);
if ((__builtin_expect(!!(tryResult1328.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 tryResult1323 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17480, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; {auto tryResult1324 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1324.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17483, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); }}; {auto tryResult1325 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1325.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17485, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1326 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1326.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17489, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; } else { {auto tryResult1327 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1327.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17491, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; } return Ok{}; }))"
, tryResult1328.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17495, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}
17486
17487 if (metadata.keyPath().IsValid()) {{auto tryResult1328 = (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 tryResult1323 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1323
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17480, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; {auto tryResult1324 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect
(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17483, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); }}; {auto tryResult1325 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1325
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17485, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1326 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1326.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17489, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; } else { {auto tryResult1327 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect
(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1327.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17491, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1328)::ok_type>);
if ((__builtin_expect(!!(tryResult1328.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 tryResult1323 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17480, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; {auto tryResult1324 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1324.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17483, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); }}; {auto tryResult1325 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1325.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17485, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1326 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1326.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17489, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; } else { {auto tryResult1327 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1327.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17491, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; } return Ok{}; }))"
, tryResult1328.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17495, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}
17488 QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex({auto tryResult1328 = (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 tryResult1323 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1323
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17480, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; {auto tryResult1324 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect
(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17483, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); }}; {auto tryResult1325 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1325
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17485, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1326 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1326.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17489, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; } else { {auto tryResult1327 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect
(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1327.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17491, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1328)::ok_type>);
if ((__builtin_expect(!!(tryResult1328.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 tryResult1323 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17480, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; {auto tryResult1324 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1324.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17483, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); }}; {auto tryResult1325 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1325.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17485, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1326 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1326.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17489, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; } else { {auto tryResult1327 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1327.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17491, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; } return Ok{}; }))"
, tryResult1328.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17495, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}
17489 3, metadata.keyPath().SerializeToString())));{auto tryResult1328 = (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 tryResult1323 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1323
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17480, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; {auto tryResult1324 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect
(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17483, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); }}; {auto tryResult1325 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1325
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17485, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1326 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1326.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17489, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; } else { {auto tryResult1327 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect
(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1327.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17491, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1328)::ok_type>);
if ((__builtin_expect(!!(tryResult1328.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 tryResult1323 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17480, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; {auto tryResult1324 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1324.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17483, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); }}; {auto tryResult1325 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1325.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17485, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1326 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1326.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17489, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; } else { {auto tryResult1327 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1327.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17491, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; } return Ok{}; }))"
, tryResult1328.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17495, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}
17490 } else {{auto tryResult1328 = (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 tryResult1323 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1323
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17480, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; {auto tryResult1324 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect
(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17483, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); }}; {auto tryResult1325 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1325
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17485, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1326 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1326.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17489, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; } else { {auto tryResult1327 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect
(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1327.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17491, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1328)::ok_type>);
if ((__builtin_expect(!!(tryResult1328.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 tryResult1323 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17480, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; {auto tryResult1324 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1324.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17483, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); }}; {auto tryResult1325 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1325.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17485, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1326 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1326.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17489, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; } else { {auto tryResult1327 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1327.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17491, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; } return Ok{}; }))"
, tryResult1328.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17495, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}
17491 QM_TRY(MOZ_TO_RESULT(stmt.BindNullByIndex(3)));{auto tryResult1328 = (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 tryResult1323 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1323
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17480, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; {auto tryResult1324 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect
(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17483, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); }}; {auto tryResult1325 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1325
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17485, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1326 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1326.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17489, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; } else { {auto tryResult1327 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect
(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1327.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17491, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1328)::ok_type>);
if ((__builtin_expect(!!(tryResult1328.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 tryResult1323 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17480, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; {auto tryResult1324 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1324.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17483, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); }}; {auto tryResult1325 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1325.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17485, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1326 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1326.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17489, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; } else { {auto tryResult1327 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1327.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17491, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; } return Ok{}; }))"
, tryResult1328.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17495, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}
17492 }{auto tryResult1328 = (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 tryResult1323 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1323
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17480, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; {auto tryResult1324 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect
(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17483, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); }}; {auto tryResult1325 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1325
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17485, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1326 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1326.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17489, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; } else { {auto tryResult1327 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect
(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1327.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17491, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1328)::ok_type>);
if ((__builtin_expect(!!(tryResult1328.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 tryResult1323 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17480, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; {auto tryResult1324 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1324.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17483, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); }}; {auto tryResult1325 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1325.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17485, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1326 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1326.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17489, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; } else { {auto tryResult1327 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1327.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17491, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; } return Ok{}; }))"
, tryResult1328.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17495, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}
17493
17494 return Ok{};{auto tryResult1328 = (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 tryResult1323 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1323
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17480, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; {auto tryResult1324 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect
(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17483, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); }}; {auto tryResult1325 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1325
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17485, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1326 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1326.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17489, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; } else { {auto tryResult1327 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect
(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1327.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17491, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1328)::ok_type>);
if ((__builtin_expect(!!(tryResult1328.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 tryResult1323 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17480, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; {auto tryResult1324 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1324.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17483, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); }}; {auto tryResult1325 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1325.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17485, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1326 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1326.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17489, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; } else { {auto tryResult1327 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1327.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17491, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; } return Ok{}; }))"
, tryResult1328.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17495, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}
17495 }))){auto tryResult1328 = (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 tryResult1323 = (ToResult(stmt.BindInt64ByIndex
(0, metadata.id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1323)::ok_type>); if ((__builtin_expect
(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1323
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17480, mozilla::dom::quota::Severity::Error); return tryResult1323
.propagateErr(); }}; {auto tryResult1324 = (ToResult(stmt.BindInt32ByIndex
(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect
(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))"
, tryResult1324.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17483, mozilla::dom::quota::Severity::Error); return tryResult1324
.propagateErr(); }}; {auto tryResult1325 = (ToResult(stmt.BindStringByIndex
(2, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1325)::ok_type>); if ((__builtin_expect
(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1325
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17485, mozilla::dom::quota::Severity::Error); return tryResult1325
.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto
tryResult1326 = (ToResult(stmt.BindStringByIndex( 3, metadata
.keyPath().SerializeToString()))); static_assert(std::is_empty_v
<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect
(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))"
, tryResult1326.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17489, mozilla::dom::quota::Severity::Error); return tryResult1326
.propagateErr(); }}; } else { {auto tryResult1327 = (ToResult
(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<
typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect
(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindNullByIndex(3))", tryResult1327.inspectErr
(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17491, mozilla::dom::quota::Severity::Error); return tryResult1327
.propagateErr(); }}; } return Ok{}; }))); static_assert(std::
is_empty_v<typename decltype(tryResult1328)::ok_type>);
if ((__builtin_expect(!!(tryResult1328.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 tryResult1323 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1323)::ok_type>); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1323.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17480, mozilla::dom::quota::Severity::Error); return tryResult1323.propagateErr(); }}; {auto tryResult1324 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect(!!(tryResult1324.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1324.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17483, mozilla::dom::quota::Severity::Error); return tryResult1324.propagateErr(); }}; {auto tryResult1325 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1325)::ok_type>); if ((__builtin_expect(!!(tryResult1325.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1325.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17485, mozilla::dom::quota::Severity::Error); return tryResult1325.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1326 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1326)::ok_type>); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1326.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17489, mozilla::dom::quota::Severity::Error); return tryResult1326.propagateErr(); }}; } else { {auto tryResult1327 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1327)::ok_type>); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1327.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17491, mozilla::dom::quota::Severity::Error); return tryResult1327.propagateErr(); }}; } return Ok{}; }))"
, tryResult1328.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17495, mozilla::dom::quota::Severity::Error); return tryResult1328
.propagateErr(); }}
;
17496
17497#ifdef DEBUG1
17498 {
17499 int64_t id;
17500 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aConnection->MutableStorageConnection().GetLastInsertRowID
(&id))), 1)))), 1))) { } else { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(false)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17501); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))"
")"); do { *((volatile int*)__null) = 17501; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
17501 aConnection->MutableStorageConnection().GetLastInsertRowID(&id))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aConnection->MutableStorageConnection().GetLastInsertRowID
(&id))), 1)))), 1))) { } else { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(false)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17501); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))"
")"); do { *((volatile int*)__null) = 17501; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
17502 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"
, 17502); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata.id() == id"
")"); do { *((volatile int*)__null) = 17502; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17503 }
17504#endif
17505
17506 QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1329 = (ToResult(autoSave.Commit())); static_assert
(std::is_empty_v<typename decltype(tryResult1329)::ok_type
>); if ((__builtin_expect(!!(tryResult1329.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())"
, tryResult1329.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17506, mozilla::dom::quota::Severity::Error); return tryResult1329
.propagateErr(); }}
;
17507
17508 return NS_OK;
17509}
17510
17511nsresult DeleteObjectStoreOp::DoDatabaseWork(DatabaseConnection* aConnection) {
17512 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"
, 17512); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 17512; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17513 aConnection->AssertIsOnConnectionThread();
17514
17515 AUTO_PROFILER_LABEL("DeleteObjectStoreOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject17515( "DeleteObjectStoreOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
17516
17517#ifdef DEBUG1
17518 {
17519 // Make sure |mIsLastObjectStore| is telling the truth.
17520 QM_TRY_INSPECT(auto tryResult1330 = (aConnection->BorrowCachedStatement("SELECT id FROM object_store;"_ns
)); if ((__builtin_expect(!!(tryResult1330.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1330.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"
, 17523, 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"
, 17523); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17523; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& stmt = tryResult1330.inspect();
17521 const auto& stmt,auto tryResult1330 = (aConnection->BorrowCachedStatement("SELECT id FROM object_store;"_ns
)); if ((__builtin_expect(!!(tryResult1330.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1330.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"
, 17523, 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"
, 17523); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17523; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& stmt = tryResult1330.inspect();
17522 aConnection->BorrowCachedStatement("SELECT id FROM object_store;"_ns),auto tryResult1330 = (aConnection->BorrowCachedStatement("SELECT id FROM object_store;"_ns
)); if ((__builtin_expect(!!(tryResult1330.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1330.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"
, 17523, 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"
, 17523); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17523; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& stmt = tryResult1330.inspect();
17523 QM_ASSERT_UNREACHABLE)auto tryResult1330 = (aConnection->BorrowCachedStatement("SELECT id FROM object_store;"_ns
)); if ((__builtin_expect(!!(tryResult1330.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1330.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"
, 17523, 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"
, 17523); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17523; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& stmt = tryResult1330.inspect();
;
17524
17525 bool foundThisObjectStore = false;
17526 bool foundOtherObjectStore = false;
17527
17528 while (true) {
17529 bool hasResult;
17530 MOZ_ALWAYS_SUCCEEDS(stmt->ExecuteStep(&hasResult))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(stmt->ExecuteStep(&hasResult))), 1)))), 1))) { } else
{ do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(stmt->ExecuteStep(&hasResult))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17530); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(stmt->ExecuteStep(&hasResult))" ")"
); do { *((volatile int*)__null) = 17530; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
17531
17532 if (!hasResult) {
17533 break;
17534 }
17535
17536 int64_t id;
17537 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 {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "NS_SUCCEEDED(stmt->GetInt64(0, &id))" ")"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17537); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(stmt->GetInt64(0, &id))" ")"); do
{ *((volatile int*)__null) = 17537; __attribute__((nomerge))
::abort(); } while (false); } } while (false); } } while (false
)
;
17538
17539 if (id == mMetadata->mCommonMetadata.id()) {
17540 foundThisObjectStore = true;
17541 } else {
17542 foundOtherObjectStore = true;
17543 }
17544 }
17545
17546 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"
, 17547); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisObjectStore && !foundOtherObjectStore"
")"); do { *((volatile int*)__null) = 17547; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
17547 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"
, 17547); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisObjectStore && !foundOtherObjectStore"
")"); do { *((volatile int*)__null) = 17547; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
17548 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"
, 17549); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisObjectStore && foundOtherObjectStore"
")"); do { *((volatile int*)__null) = 17549; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
17549 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"
, 17549); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisObjectStore && foundOtherObjectStore"
")"); do { *((volatile int*)__null) = 17549; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
17550 }
17551#endif
17552
17553 DatabaseConnection::AutoSavepoint autoSave;
17554 QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1331 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1331)::ok_type>); if ((__builtin_expect(!!(tryResult1331
.isErr()), 0))) { auto tryTempError = tryResult1331.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17559, 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)); }}
17555#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1331 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1331)::ok_type>); if ((__builtin_expect(!!(tryResult1331
.isErr()), 0))) { auto tryTempError = tryResult1331.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17559, 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)); }}
17556 ,{auto tryResult1331 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1331)::ok_type>); if ((__builtin_expect(!!(tryResult1331
.isErr()), 0))) { auto tryTempError = tryResult1331.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17559, 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)); }}
17557 QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1331 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1331)::ok_type>); if ((__builtin_expect(!!(tryResult1331
.isErr()), 0))) { auto tryTempError = tryResult1331.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17559, 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)); }}
17558#endif{auto tryResult1331 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1331)::ok_type>); if ((__builtin_expect(!!(tryResult1331
.isErr()), 0))) { auto tryTempError = tryResult1331.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17559, 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)); }}
17559 ){auto tryResult1331 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1331)::ok_type>); if ((__builtin_expect(!!(tryResult1331
.isErr()), 0))) { auto tryTempError = tryResult1331.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17559, 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)); }}
;
17560
17561 if (mIsLastObjectStore) {
17562 // We can just delete everything if this is the last object store.
17563 QM_TRY(MOZ_TO_RESULT({auto tryResult1332 = (ToResult(aConnection->ExecuteCachedStatement
("DELETE FROM index_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 index_data;\"_ns))"
, tryResult1332.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17564, mozilla::dom::quota::Severity::Error); return tryResult1332
.propagateErr(); }}
17564 aConnection->ExecuteCachedStatement("DELETE FROM index_data;"_ns))){auto tryResult1332 = (ToResult(aConnection->ExecuteCachedStatement
("DELETE FROM index_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 index_data;\"_ns))"
, tryResult1332.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17564, mozilla::dom::quota::Severity::Error); return tryResult1332
.propagateErr(); }}
;
17565
17566 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1333 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM unique_index_data;"_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 unique_index_data;\"_ns))"
, tryResult1333.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17567, mozilla::dom::quota::Severity::Error); return tryResult1333
.propagateErr(); }}
17567 "DELETE FROM unique_index_data;"_ns))){auto tryResult1333 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM unique_index_data;"_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 unique_index_data;\"_ns))"
, tryResult1333.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17567, mozilla::dom::quota::Severity::Error); return tryResult1333
.propagateErr(); }}
;
17568
17569 QM_TRY(MOZ_TO_RESULT({auto tryResult1334 = (ToResult(aConnection->ExecuteCachedStatement
("DELETE FROM object_data;"_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_data;\"_ns))"
, tryResult1334.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17570, mozilla::dom::quota::Severity::Error); return tryResult1334
.propagateErr(); }}
17570 aConnection->ExecuteCachedStatement("DELETE FROM object_data;"_ns))){auto tryResult1334 = (ToResult(aConnection->ExecuteCachedStatement
("DELETE FROM object_data;"_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_data;\"_ns))"
, tryResult1334.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17570, mozilla::dom::quota::Severity::Error); return tryResult1334
.propagateErr(); }}
;
17571
17572 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1335 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index;"_ns))); static_assert(std::
is_empty_v<typename decltype(tryResult1335)::ok_type>);
if ((__builtin_expect(!!(tryResult1335.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index;\"_ns))"
, tryResult1335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17573, mozilla::dom::quota::Severity::Error); return tryResult1335
.propagateErr(); }}
17573 "DELETE FROM object_store_index;"_ns))){auto tryResult1335 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index;"_ns))); static_assert(std::
is_empty_v<typename decltype(tryResult1335)::ok_type>);
if ((__builtin_expect(!!(tryResult1335.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index;\"_ns))"
, tryResult1335.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17573, mozilla::dom::quota::Severity::Error); return tryResult1335
.propagateErr(); }}
;
17574
17575 QM_TRY(MOZ_TO_RESULT({auto tryResult1336 = (ToResult(aConnection->ExecuteCachedStatement
("DELETE FROM object_store;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult1336)::ok_type>); if ((__builtin_expect
(!!(tryResult1336.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement(\"DELETE FROM object_store;\"_ns))"
, tryResult1336.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17576, mozilla::dom::quota::Severity::Error); return tryResult1336
.propagateErr(); }}
17576 aConnection->ExecuteCachedStatement("DELETE FROM object_store;"_ns))){auto tryResult1336 = (ToResult(aConnection->ExecuteCachedStatement
("DELETE FROM object_store;"_ns))); static_assert(std::is_empty_v
<typename decltype(tryResult1336)::ok_type>); if ((__builtin_expect
(!!(tryResult1336.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement(\"DELETE FROM object_store;\"_ns))"
, tryResult1336.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17576, mozilla::dom::quota::Severity::Error); return tryResult1336
.propagateErr(); }}
;
17577 } else {
17578 QM_TRY_INSPECT(auto tryResult1337 = (ObjectStoreHasIndexes(*aConnection, mMetadata
->mCommonMetadata.id())); if ((__builtin_expect(!!(tryResult1337
.isErr()), 0))) { mozilla::dom::quota::HandleError("ObjectStoreHasIndexes(*aConnection, mMetadata->mCommonMetadata.id())"
, tryResult1337.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17580, mozilla::dom::quota::Severity::Error); return tryResult1337
.propagateErr(); } const bool& hasIndexes = tryResult1337
.inspect();
17579 const bool& hasIndexes,auto tryResult1337 = (ObjectStoreHasIndexes(*aConnection, mMetadata
->mCommonMetadata.id())); if ((__builtin_expect(!!(tryResult1337
.isErr()), 0))) { mozilla::dom::quota::HandleError("ObjectStoreHasIndexes(*aConnection, mMetadata->mCommonMetadata.id())"
, tryResult1337.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17580, mozilla::dom::quota::Severity::Error); return tryResult1337
.propagateErr(); } const bool& hasIndexes = tryResult1337
.inspect();
17580 ObjectStoreHasIndexes(*aConnection, mMetadata->mCommonMetadata.id()))auto tryResult1337 = (ObjectStoreHasIndexes(*aConnection, mMetadata
->mCommonMetadata.id())); if ((__builtin_expect(!!(tryResult1337
.isErr()), 0))) { mozilla::dom::quota::HandleError("ObjectStoreHasIndexes(*aConnection, mMetadata->mCommonMetadata.id())"
, tryResult1337.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17580, mozilla::dom::quota::Severity::Error); return tryResult1337
.propagateErr(); } const bool& hasIndexes = tryResult1337
.inspect();
;
17581
17582 const auto bindObjectStoreIdToFirstParameter =
17583 [this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> {
17584 QM_TRY(MOZ_TO_RESULT({auto tryResult1338 = (ToResult(stmt.BindInt64ByIndex(0, mMetadata
->mCommonMetadata.id()))); static_assert(std::is_empty_v<
typename decltype(tryResult1338)::ok_type>); if ((__builtin_expect
(!!(tryResult1338.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, mMetadata->mCommonMetadata.id()))"
, tryResult1338.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17585, mozilla::dom::quota::Severity::Error); return tryResult1338
.propagateErr(); }}
17585 stmt.BindInt64ByIndex(0, mMetadata->mCommonMetadata.id()))){auto tryResult1338 = (ToResult(stmt.BindInt64ByIndex(0, mMetadata
->mCommonMetadata.id()))); static_assert(std::is_empty_v<
typename decltype(tryResult1338)::ok_type>); if ((__builtin_expect
(!!(tryResult1338.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, mMetadata->mCommonMetadata.id()))"
, tryResult1338.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17585, mozilla::dom::quota::Severity::Error); return tryResult1338
.propagateErr(); }}
;
17586
17587 return Ok{};
17588 };
17589
17590 // The parameter name :object_store_id in the SQL statements below is not
17591 // used for binding, parameters are bound by index only locally by
17592 // bindObjectStoreIdToFirstParameter.
17593 if (hasIndexes) {
17594 QM_TRY(MOZ_TO_RESULT(DeleteObjectStoreDataTableRowsWithIndexes({auto tryResult1339 = (ToResult(DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mMetadata->mCommonMetadata.id(), Nothing())
)); static_assert(std::is_empty_v<typename decltype(tryResult1339
)::ok_type>); if ((__builtin_expect(!!(tryResult1339.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mMetadata->mCommonMetadata.id(), Nothing()))"
, tryResult1339.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17595, mozilla::dom::quota::Severity::Error); return tryResult1339
.propagateErr(); }}
17595 aConnection, mMetadata->mCommonMetadata.id(), Nothing()))){auto tryResult1339 = (ToResult(DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mMetadata->mCommonMetadata.id(), Nothing())
)); static_assert(std::is_empty_v<typename decltype(tryResult1339
)::ok_type>); if ((__builtin_expect(!!(tryResult1339.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mMetadata->mCommonMetadata.id(), Nothing()))"
, tryResult1339.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17595, mozilla::dom::quota::Severity::Error); return tryResult1339
.propagateErr(); }}
;
17596
17597 // Now clean up the object store index table.
17598 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1340 = (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(tryResult1340)::ok_type>); if ((__builtin_expect
(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1340.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17601, mozilla::dom::quota::Severity::Error); return tryResult1340
.propagateErr(); }}
17599 "DELETE FROM object_store_index "{auto tryResult1340 = (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(tryResult1340)::ok_type>); if ((__builtin_expect
(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1340.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17601, mozilla::dom::quota::Severity::Error); return tryResult1340
.propagateErr(); }}
17600 "WHERE object_store_id = :object_store_id;"_ns,{auto tryResult1340 = (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(tryResult1340)::ok_type>); if ((__builtin_expect
(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1340.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17601, mozilla::dom::quota::Severity::Error); return tryResult1340
.propagateErr(); }}
17601 bindObjectStoreIdToFirstParameter))){auto tryResult1340 = (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(tryResult1340)::ok_type>); if ((__builtin_expect
(!!(tryResult1340.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1340.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17601, mozilla::dom::quota::Severity::Error); return tryResult1340
.propagateErr(); }}
;
17602 } else {
17603 // We only have to worry about object data if this object store has no
17604 // indexes.
17605 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1341 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v
<typename decltype(tryResult1341)::ok_type>); if ((__builtin_expect
(!!(tryResult1341.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1341.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17608, mozilla::dom::quota::Severity::Error); return tryResult1341
.propagateErr(); }}
17606 "DELETE FROM object_data "{auto tryResult1341 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v
<typename decltype(tryResult1341)::ok_type>); if ((__builtin_expect
(!!(tryResult1341.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1341.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17608, mozilla::dom::quota::Severity::Error); return tryResult1341
.propagateErr(); }}
17607 "WHERE object_store_id = :object_store_id;"_ns,{auto tryResult1341 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v
<typename decltype(tryResult1341)::ok_type>); if ((__builtin_expect
(!!(tryResult1341.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1341.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17608, mozilla::dom::quota::Severity::Error); return tryResult1341
.propagateErr(); }}
17608 bindObjectStoreIdToFirstParameter))){auto tryResult1341 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns
, bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v
<typename decltype(tryResult1341)::ok_type>); if ((__builtin_expect
(!!(tryResult1341.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1341.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17608, mozilla::dom::quota::Severity::Error); return tryResult1341
.propagateErr(); }}
;
17609 }
17610
17611 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1342 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store " "WHERE id = :object_store_id;"_ns
, bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v
<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect
(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store \" \"WHERE id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1342.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17614, mozilla::dom::quota::Severity::Error); return tryResult1342
.propagateErr(); }}
17612 "DELETE FROM object_store "{auto tryResult1342 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store " "WHERE id = :object_store_id;"_ns
, bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v
<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect
(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store \" \"WHERE id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1342.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17614, mozilla::dom::quota::Severity::Error); return tryResult1342
.propagateErr(); }}
17613 "WHERE id = :object_store_id;"_ns,{auto tryResult1342 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store " "WHERE id = :object_store_id;"_ns
, bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v
<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect
(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store \" \"WHERE id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1342.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17614, mozilla::dom::quota::Severity::Error); return tryResult1342
.propagateErr(); }}
17614 bindObjectStoreIdToFirstParameter))){auto tryResult1342 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store " "WHERE id = :object_store_id;"_ns
, bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v
<typename decltype(tryResult1342)::ok_type>); if ((__builtin_expect
(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store \" \"WHERE id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))"
, tryResult1342.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17614, mozilla::dom::quota::Severity::Error); return tryResult1342
.propagateErr(); }}
;
17615
17616#ifdef DEBUG1
17617 {
17618 int32_t deletedRowCount;
17619 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aConnection->MutableStorageConnection().GetAffectedRows( &
deletedRowCount))), 1)))), 1))) { } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17621); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))"
")"); do { *((volatile int*)__null) = 17621; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
17620 aConnection->MutableStorageConnection().GetAffectedRows(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aConnection->MutableStorageConnection().GetAffectedRows( &
deletedRowCount))), 1)))), 1))) { } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17621); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))"
")"); do { *((volatile int*)__null) = 17621; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
17621 &deletedRowCount))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aConnection->MutableStorageConnection().GetAffectedRows( &
deletedRowCount))), 1)))), 1))) { } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17621); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))"
")"); do { *((volatile int*)__null) = 17621; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
17622 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"
, 17622); AnnotateMozCrashReason("MOZ_ASSERT" "(" "deletedRowCount == 1"
")"); do { *((volatile int*)__null) = 17622; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17623 }
17624#endif
17625 }
17626
17627 QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1343 = (ToResult(autoSave.Commit())); static_assert
(std::is_empty_v<typename decltype(tryResult1343)::ok_type
>); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())"
, tryResult1343.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17627, mozilla::dom::quota::Severity::Error); return tryResult1343
.propagateErr(); }}
;
17628
17629 if (mMetadata->mCommonMetadata.autoIncrement()) {
17630 Transaction().ForgetModifiedAutoIncrementObjectStore(*mMetadata);
17631 }
17632
17633 return NS_OK;
17634}
17635
17636nsresult RenameObjectStoreOp::DoDatabaseWork(DatabaseConnection* aConnection) {
17637 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"
, 17637); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 17637; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17638 aConnection->AssertIsOnConnectionThread();
17639
17640 AUTO_PROFILER_LABEL("RenameObjectStoreOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject17640( "RenameObjectStoreOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
17641
17642#ifdef DEBUG1
17643 {
17644 // Make sure that we're not renaming an object store with the same name as
17645 // another that already exists. This should be impossible because we should
17646 // have thrown an error long before now...
17647 // The parameter names are not used, parameters are bound by index only
17648 // locally in the same function.
17649 QM_TRY_INSPECT(auto tryResult1346 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1344 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1344)::ok_type>); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1344
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17658, mozilla::dom::quota::Severity::Error); return tryResult1344
.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17660, mozilla::dom::quota::Severity::Error); return tryResult1345
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1346.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1346.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 tryResult1344 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1344.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17658, mozilla::dom::quota::Severity::Error); return tryResult1344.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17660, mozilla::dom::quota::Severity::Error); return tryResult1345.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17664, 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 tryResult1344 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1344.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17658, mozilla::dom::quota::Severity::Error); return tryResult1344.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17660, mozilla::dom::quota::Severity::Error); return tryResult1345.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"
, 17664); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17664; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1346.inspect();
17650 const bool& hasResult,auto tryResult1346 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1344 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1344)::ok_type>); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1344
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17658, mozilla::dom::quota::Severity::Error); return tryResult1344
.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17660, mozilla::dom::quota::Severity::Error); return tryResult1345
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1346.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1346.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 tryResult1344 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1344.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17658, mozilla::dom::quota::Severity::Error); return tryResult1344.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17660, mozilla::dom::quota::Severity::Error); return tryResult1345.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17664, 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 tryResult1344 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1344.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17658, mozilla::dom::quota::Severity::Error); return tryResult1344.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17660, mozilla::dom::quota::Severity::Error); return tryResult1345.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"
, 17664); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17664; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1346.inspect();
17651 aConnectionauto tryResult1346 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1344 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1344)::ok_type>); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1344
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17658, mozilla::dom::quota::Severity::Error); return tryResult1344
.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17660, mozilla::dom::quota::Severity::Error); return tryResult1345
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1346.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1346.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 tryResult1344 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1344.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17658, mozilla::dom::quota::Severity::Error); return tryResult1344.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17660, mozilla::dom::quota::Severity::Error); return tryResult1345.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17664, 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 tryResult1344 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1344.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17658, mozilla::dom::quota::Severity::Error); return tryResult1344.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17660, mozilla::dom::quota::Severity::Error); return tryResult1345.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"
, 17664); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17664; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1346.inspect();
17652 ->BorrowAndExecuteSingleStepStatement(auto tryResult1346 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1344 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1344)::ok_type>); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1344
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17658, mozilla::dom::quota::Severity::Error); return tryResult1344
.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17660, mozilla::dom::quota::Severity::Error); return tryResult1345
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1346.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1346.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 tryResult1344 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1344.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17658, mozilla::dom::quota::Severity::Error); return tryResult1344.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17660, mozilla::dom::quota::Severity::Error); return tryResult1345.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17664, 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 tryResult1344 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1344.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17658, mozilla::dom::quota::Severity::Error); return tryResult1344.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17660, mozilla::dom::quota::Severity::Error); return tryResult1345.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"
, 17664); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17664; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1346.inspect();
17653 "SELECT name "auto tryResult1346 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1344 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1344)::ok_type>); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1344
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17658, mozilla::dom::quota::Severity::Error); return tryResult1344
.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17660, mozilla::dom::quota::Severity::Error); return tryResult1345
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1346.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1346.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 tryResult1344 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1344.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17658, mozilla::dom::quota::Severity::Error); return tryResult1344.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17660, mozilla::dom::quota::Severity::Error); return tryResult1345.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17664, 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 tryResult1344 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1344.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17658, mozilla::dom::quota::Severity::Error); return tryResult1344.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17660, mozilla::dom::quota::Severity::Error); return tryResult1345.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"
, 17664); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17664; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1346.inspect();
17654 "FROM object_store "auto tryResult1346 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1344 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1344)::ok_type>); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1344
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17658, mozilla::dom::quota::Severity::Error); return tryResult1344
.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17660, mozilla::dom::quota::Severity::Error); return tryResult1345
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1346.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1346.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 tryResult1344 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1344.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17658, mozilla::dom::quota::Severity::Error); return tryResult1344.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17660, mozilla::dom::quota::Severity::Error); return tryResult1345.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17664, 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 tryResult1344 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1344.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17658, mozilla::dom::quota::Severity::Error); return tryResult1344.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17660, mozilla::dom::quota::Severity::Error); return tryResult1345.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"
, 17664); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17664; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1346.inspect();
17655 "WHERE name = :name AND id != :id;"_ns,auto tryResult1346 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1344 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1344)::ok_type>); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1344
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17658, mozilla::dom::quota::Severity::Error); return tryResult1344
.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17660, mozilla::dom::quota::Severity::Error); return tryResult1345
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1346.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1346.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 tryResult1344 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1344.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17658, mozilla::dom::quota::Severity::Error); return tryResult1344.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17660, mozilla::dom::quota::Severity::Error); return tryResult1345.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17664, 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 tryResult1344 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1344.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17658, mozilla::dom::quota::Severity::Error); return tryResult1344.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17660, mozilla::dom::quota::Severity::Error); return tryResult1345.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"
, 17664); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17664; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1346.inspect();
17656 [&self = *this](auto& stmt) -> Result<Ok, nsresult> {auto tryResult1346 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1344 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1344)::ok_type>); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1344
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17658, mozilla::dom::quota::Severity::Error); return tryResult1344
.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17660, mozilla::dom::quota::Severity::Error); return tryResult1345
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1346.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1346.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 tryResult1344 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1344.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17658, mozilla::dom::quota::Severity::Error); return tryResult1344.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17660, mozilla::dom::quota::Severity::Error); return tryResult1345.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17664, 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 tryResult1344 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1344.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17658, mozilla::dom::quota::Severity::Error); return tryResult1344.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17660, mozilla::dom::quota::Severity::Error); return tryResult1345.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"
, 17664); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17664; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1346.inspect();
17657 QM_TRY(auto tryResult1346 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1344 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1344)::ok_type>); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1344
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17658, mozilla::dom::quota::Severity::Error); return tryResult1344
.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17660, mozilla::dom::quota::Severity::Error); return tryResult1345
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1346.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1346.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 tryResult1344 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1344.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17658, mozilla::dom::quota::Severity::Error); return tryResult1344.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17660, mozilla::dom::quota::Severity::Error); return tryResult1345.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17664, 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 tryResult1344 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1344.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17658, mozilla::dom::quota::Severity::Error); return tryResult1344.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17660, mozilla::dom::quota::Severity::Error); return tryResult1345.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"
, 17664); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17664; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1346.inspect();
17658 MOZ_TO_RESULT(stmt.BindStringByIndex(0, self.mNewName)));auto tryResult1346 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1344 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1344)::ok_type>); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1344
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17658, mozilla::dom::quota::Severity::Error); return tryResult1344
.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17660, mozilla::dom::quota::Severity::Error); return tryResult1345
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1346.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1346.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 tryResult1344 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1344.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17658, mozilla::dom::quota::Severity::Error); return tryResult1344.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17660, mozilla::dom::quota::Severity::Error); return tryResult1345.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17664, 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 tryResult1344 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1344.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17658, mozilla::dom::quota::Severity::Error); return tryResult1344.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17660, mozilla::dom::quota::Severity::Error); return tryResult1345.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"
, 17664); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17664; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1346.inspect();
17659
17660 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(1, self.mId)));auto tryResult1346 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1344 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1344)::ok_type>); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1344
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17658, mozilla::dom::quota::Severity::Error); return tryResult1344
.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17660, mozilla::dom::quota::Severity::Error); return tryResult1345
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1346.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1346.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 tryResult1344 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1344.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17658, mozilla::dom::quota::Severity::Error); return tryResult1344.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17660, mozilla::dom::quota::Severity::Error); return tryResult1345.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17664, 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 tryResult1344 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1344.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17658, mozilla::dom::quota::Severity::Error); return tryResult1344.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17660, mozilla::dom::quota::Severity::Error); return tryResult1345.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"
, 17664); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17664; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1346.inspect();
17661 return Ok{};auto tryResult1346 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1344 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1344)::ok_type>); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1344
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17658, mozilla::dom::quota::Severity::Error); return tryResult1344
.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17660, mozilla::dom::quota::Severity::Error); return tryResult1345
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1346.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1346.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 tryResult1344 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1344.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17658, mozilla::dom::quota::Severity::Error); return tryResult1344.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17660, mozilla::dom::quota::Severity::Error); return tryResult1345.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17664, 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 tryResult1344 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1344.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17658, mozilla::dom::quota::Severity::Error); return tryResult1344.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17660, mozilla::dom::quota::Severity::Error); return tryResult1345.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"
, 17664); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17664; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1346.inspect();
17662 })auto tryResult1346 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1344 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1344)::ok_type>); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1344
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17658, mozilla::dom::quota::Severity::Error); return tryResult1344
.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17660, mozilla::dom::quota::Severity::Error); return tryResult1345
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1346.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1346.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 tryResult1344 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1344.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17658, mozilla::dom::quota::Severity::Error); return tryResult1344.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17660, mozilla::dom::quota::Severity::Error); return tryResult1345.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17664, 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 tryResult1344 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1344.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17658, mozilla::dom::quota::Severity::Error); return tryResult1344.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17660, mozilla::dom::quota::Severity::Error); return tryResult1345.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"
, 17664); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17664; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1346.inspect();
17663 .map(IsSome),auto tryResult1346 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1344 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1344)::ok_type>); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1344
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17658, mozilla::dom::quota::Severity::Error); return tryResult1344
.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17660, mozilla::dom::quota::Severity::Error); return tryResult1345
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1346.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1346.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 tryResult1344 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1344.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17658, mozilla::dom::quota::Severity::Error); return tryResult1344.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17660, mozilla::dom::quota::Severity::Error); return tryResult1345.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17664, 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 tryResult1344 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1344.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17658, mozilla::dom::quota::Severity::Error); return tryResult1344.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17660, mozilla::dom::quota::Severity::Error); return tryResult1345.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"
, 17664); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17664; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1346.inspect();
17664 QM_ASSERT_UNREACHABLE)auto tryResult1346 = (aConnection ->BorrowAndExecuteSingleStepStatement
( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns
, [&self = *this](auto& stmt) -> Result<Ok, nsresult
> { {auto tryResult1344 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1344)::ok_type>); if ((__builtin_expect
(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1344
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17658, mozilla::dom::quota::Severity::Error); return tryResult1344
.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1345.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17660, mozilla::dom::quota::Severity::Error); return tryResult1345
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1346.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1346.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 tryResult1344 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1344.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17658, mozilla::dom::quota::Severity::Error); return tryResult1344.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17660, mozilla::dom::quota::Severity::Error); return tryResult1345.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17664, 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 tryResult1344 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1344)::ok_type>); if ((__builtin_expect(!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1344.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17658, mozilla::dom::quota::Severity::Error); return tryResult1344.propagateErr(); }}; {auto tryResult1345 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1345)::ok_type>); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1345.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17660, mozilla::dom::quota::Severity::Error); return tryResult1345.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"
, 17664); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17664; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1346.inspect();
;
17665
17666 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"
, 17666); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!hasResult"
")"); do { *((volatile int*)__null) = 17666; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17667 }
17668#endif
17669
17670 DatabaseConnection::AutoSavepoint autoSave;
17671 QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1347 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347
.isErr()), 0))) { auto tryTempError = tryResult1347.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17676, 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#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1347 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347
.isErr()), 0))) { auto tryTempError = tryResult1347.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17676, 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 ,{auto tryResult1347 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347
.isErr()), 0))) { auto tryTempError = tryResult1347.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17676, 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 QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1347 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347
.isErr()), 0))) { auto tryTempError = tryResult1347.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17676, 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#endif{auto tryResult1347 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347
.isErr()), 0))) { auto tryTempError = tryResult1347.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17676, 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 ){auto tryResult1347 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1347)::ok_type>); if ((__builtin_expect(!!(tryResult1347
.isErr()), 0))) { auto tryTempError = tryResult1347.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17676, 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)); }}
;
17677
17678 // The parameter names are not used, parameters are bound by index only
17679 // locally in the same function.
17680 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1350 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1348 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1348)::ok_type>); if ((__builtin_expect
(!!(tryResult1348.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1348
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17685, mozilla::dom::quota::Severity::Error); return tryResult1348
.propagateErr(); }}; {auto tryResult1349 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1349)::ok_type>); if ((__builtin_expect(!!(tryResult1349
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1349.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17687, mozilla::dom::quota::Severity::Error); return tryResult1349
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect
(!!(tryResult1350.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 tryResult1348 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1348)::ok_type>); if ((__builtin_expect(!!(tryResult1348.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1348.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17685, mozilla::dom::quota::Severity::Error); return tryResult1348.propagateErr(); }}; {auto tryResult1349 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1349)::ok_type>); if ((__builtin_expect(!!(tryResult1349.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1349.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17687, mozilla::dom::quota::Severity::Error); return tryResult1349.propagateErr(); }}; return Ok{}; }))"
, tryResult1350.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17690, mozilla::dom::quota::Severity::Error); return tryResult1350
.propagateErr(); }}
17681 "UPDATE object_store "{auto tryResult1350 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1348 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1348)::ok_type>); if ((__builtin_expect
(!!(tryResult1348.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1348
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17685, mozilla::dom::quota::Severity::Error); return tryResult1348
.propagateErr(); }}; {auto tryResult1349 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1349)::ok_type>); if ((__builtin_expect(!!(tryResult1349
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1349.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17687, mozilla::dom::quota::Severity::Error); return tryResult1349
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect
(!!(tryResult1350.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 tryResult1348 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1348)::ok_type>); if ((__builtin_expect(!!(tryResult1348.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1348.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17685, mozilla::dom::quota::Severity::Error); return tryResult1348.propagateErr(); }}; {auto tryResult1349 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1349)::ok_type>); if ((__builtin_expect(!!(tryResult1349.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1349.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17687, mozilla::dom::quota::Severity::Error); return tryResult1349.propagateErr(); }}; return Ok{}; }))"
, tryResult1350.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17690, mozilla::dom::quota::Severity::Error); return tryResult1350
.propagateErr(); }}
17682 "SET name = :name "{auto tryResult1350 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1348 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1348)::ok_type>); if ((__builtin_expect
(!!(tryResult1348.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1348
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17685, mozilla::dom::quota::Severity::Error); return tryResult1348
.propagateErr(); }}; {auto tryResult1349 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1349)::ok_type>); if ((__builtin_expect(!!(tryResult1349
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1349.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17687, mozilla::dom::quota::Severity::Error); return tryResult1349
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect
(!!(tryResult1350.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 tryResult1348 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1348)::ok_type>); if ((__builtin_expect(!!(tryResult1348.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1348.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17685, mozilla::dom::quota::Severity::Error); return tryResult1348.propagateErr(); }}; {auto tryResult1349 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1349)::ok_type>); if ((__builtin_expect(!!(tryResult1349.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1349.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17687, mozilla::dom::quota::Severity::Error); return tryResult1349.propagateErr(); }}; return Ok{}; }))"
, tryResult1350.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17690, mozilla::dom::quota::Severity::Error); return tryResult1350
.propagateErr(); }}
17683 "WHERE id = :id;"_ns,{auto tryResult1350 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1348 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1348)::ok_type>); if ((__builtin_expect
(!!(tryResult1348.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1348
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17685, mozilla::dom::quota::Severity::Error); return tryResult1348
.propagateErr(); }}; {auto tryResult1349 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1349)::ok_type>); if ((__builtin_expect(!!(tryResult1349
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1349.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17687, mozilla::dom::quota::Severity::Error); return tryResult1349
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect
(!!(tryResult1350.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 tryResult1348 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1348)::ok_type>); if ((__builtin_expect(!!(tryResult1348.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1348.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17685, mozilla::dom::quota::Severity::Error); return tryResult1348.propagateErr(); }}; {auto tryResult1349 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1349)::ok_type>); if ((__builtin_expect(!!(tryResult1349.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1349.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17687, mozilla::dom::quota::Severity::Error); return tryResult1349.propagateErr(); }}; return Ok{}; }))"
, tryResult1350.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17690, mozilla::dom::quota::Severity::Error); return tryResult1350
.propagateErr(); }}
17684 [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> {{auto tryResult1350 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1348 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1348)::ok_type>); if ((__builtin_expect
(!!(tryResult1348.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1348
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17685, mozilla::dom::quota::Severity::Error); return tryResult1348
.propagateErr(); }}; {auto tryResult1349 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1349)::ok_type>); if ((__builtin_expect(!!(tryResult1349
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1349.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17687, mozilla::dom::quota::Severity::Error); return tryResult1349
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect
(!!(tryResult1350.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 tryResult1348 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1348)::ok_type>); if ((__builtin_expect(!!(tryResult1348.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1348.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17685, mozilla::dom::quota::Severity::Error); return tryResult1348.propagateErr(); }}; {auto tryResult1349 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1349)::ok_type>); if ((__builtin_expect(!!(tryResult1349.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1349.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17687, mozilla::dom::quota::Severity::Error); return tryResult1349.propagateErr(); }}; return Ok{}; }))"
, tryResult1350.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17690, mozilla::dom::quota::Severity::Error); return tryResult1350
.propagateErr(); }}
17685 QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex(0, self.mNewName)));{auto tryResult1350 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1348 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1348)::ok_type>); if ((__builtin_expect
(!!(tryResult1348.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1348
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17685, mozilla::dom::quota::Severity::Error); return tryResult1348
.propagateErr(); }}; {auto tryResult1349 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1349)::ok_type>); if ((__builtin_expect(!!(tryResult1349
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1349.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17687, mozilla::dom::quota::Severity::Error); return tryResult1349
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect
(!!(tryResult1350.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 tryResult1348 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1348)::ok_type>); if ((__builtin_expect(!!(tryResult1348.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1348.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17685, mozilla::dom::quota::Severity::Error); return tryResult1348.propagateErr(); }}; {auto tryResult1349 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1349)::ok_type>); if ((__builtin_expect(!!(tryResult1349.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1349.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17687, mozilla::dom::quota::Severity::Error); return tryResult1349.propagateErr(); }}; return Ok{}; }))"
, tryResult1350.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17690, mozilla::dom::quota::Severity::Error); return tryResult1350
.propagateErr(); }}
17686
17687 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(1, self.mId)));{auto tryResult1350 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1348 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1348)::ok_type>); if ((__builtin_expect
(!!(tryResult1348.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1348
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17685, mozilla::dom::quota::Severity::Error); return tryResult1348
.propagateErr(); }}; {auto tryResult1349 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1349)::ok_type>); if ((__builtin_expect(!!(tryResult1349
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1349.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17687, mozilla::dom::quota::Severity::Error); return tryResult1349
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect
(!!(tryResult1350.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 tryResult1348 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1348)::ok_type>); if ((__builtin_expect(!!(tryResult1348.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1348.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17685, mozilla::dom::quota::Severity::Error); return tryResult1348.propagateErr(); }}; {auto tryResult1349 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1349)::ok_type>); if ((__builtin_expect(!!(tryResult1349.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1349.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17687, mozilla::dom::quota::Severity::Error); return tryResult1349.propagateErr(); }}; return Ok{}; }))"
, tryResult1350.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17690, mozilla::dom::quota::Severity::Error); return tryResult1350
.propagateErr(); }}
17688
17689 return Ok{};{auto tryResult1350 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1348 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1348)::ok_type>); if ((__builtin_expect
(!!(tryResult1348.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1348
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17685, mozilla::dom::quota::Severity::Error); return tryResult1348
.propagateErr(); }}; {auto tryResult1349 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1349)::ok_type>); if ((__builtin_expect(!!(tryResult1349
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1349.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17687, mozilla::dom::quota::Severity::Error); return tryResult1349
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect
(!!(tryResult1350.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 tryResult1348 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1348)::ok_type>); if ((__builtin_expect(!!(tryResult1348.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1348.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17685, mozilla::dom::quota::Severity::Error); return tryResult1348.propagateErr(); }}; {auto tryResult1349 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1349)::ok_type>); if ((__builtin_expect(!!(tryResult1349.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1349.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17687, mozilla::dom::quota::Severity::Error); return tryResult1349.propagateErr(); }}; return Ok{}; }))"
, tryResult1350.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17690, mozilla::dom::quota::Severity::Error); return tryResult1350
.propagateErr(); }}
17690 }))){auto tryResult1350 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1348 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1348)::ok_type>); if ((__builtin_expect
(!!(tryResult1348.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1348
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17685, mozilla::dom::quota::Severity::Error); return tryResult1348
.propagateErr(); }}; {auto tryResult1349 = (ToResult(stmt.BindInt64ByIndex
(1, self.mId))); static_assert(std::is_empty_v<typename decltype
(tryResult1349)::ok_type>); if ((__builtin_expect(!!(tryResult1349
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))"
, tryResult1349.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17687, mozilla::dom::quota::Severity::Error); return tryResult1349
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1350)::ok_type>); if ((__builtin_expect
(!!(tryResult1350.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 tryResult1348 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1348)::ok_type>); if ((__builtin_expect(!!(tryResult1348.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1348.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17685, mozilla::dom::quota::Severity::Error); return tryResult1348.propagateErr(); }}; {auto tryResult1349 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1349)::ok_type>); if ((__builtin_expect(!!(tryResult1349.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1349.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17687, mozilla::dom::quota::Severity::Error); return tryResult1349.propagateErr(); }}; return Ok{}; }))"
, tryResult1350.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17690, mozilla::dom::quota::Severity::Error); return tryResult1350
.propagateErr(); }}
;
17691
17692 QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1351 = (ToResult(autoSave.Commit())); static_assert
(std::is_empty_v<typename decltype(tryResult1351)::ok_type
>); if ((__builtin_expect(!!(tryResult1351.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())"
, tryResult1351.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17692, mozilla::dom::quota::Severity::Error); return tryResult1351
.propagateErr(); }}
;
17693
17694 return NS_OK;
17695}
17696
17697CreateIndexOp::CreateIndexOp(SafeRefPtr<VersionChangeTransaction> aTransaction,
17698 const IndexOrObjectStoreId aObjectStoreId,
17699 const IndexMetadata& aMetadata)
17700 : VersionChangeTransactionOp(std::move(aTransaction)),
17701 mMetadata(aMetadata),
17702 mFileManager(Transaction().GetDatabase().GetFileManagerPtr()),
17703 mDatabaseId(Transaction().DatabaseId()),
17704 mObjectStoreId(aObjectStoreId) {
17705 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"
, 17705); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aObjectStoreId"
")"); do { *((volatile int*)__null) = 17705; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17706 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"
, 17706); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMetadata.id()"
")"); do { *((volatile int*)__null) = 17706; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17707 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"
, 17707); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileManager"
")"); do { *((volatile int*)__null) = 17707; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17708 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"
, 17708); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseId.IsEmpty()"
")"); do { *((volatile int*)__null) = 17708; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17709}
17710
17711nsresult CreateIndexOp::InsertDataFromObjectStore(
17712 DatabaseConnection* aConnection) {
17713 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"
, 17713); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 17713; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17714 aConnection->AssertIsOnConnectionThread();
17715 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"
, 17715); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeUniqueIndexTable"
")"); do { *((volatile int*)__null) = 17715; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17716
17717 AUTO_PROFILER_LABEL("CreateIndexOp::InsertDataFromObjectStore", DOM)mozilla::AutoProfilerLabel raiiObject17717( "CreateIndexOp::InsertDataFromObjectStore"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
17718
17719 auto& storageConnection = aConnection->MutableStorageConnection();
17720
17721 RefPtr<UpdateIndexDataValuesFunction> updateFunction =
17722 new UpdateIndexDataValuesFunction(this, aConnection,
17723 Transaction().GetDatabasePtr());
17724
17725 constexpr auto updateFunctionName = "update_index_data_values"_ns;
17726
17727 nsresult rv =
17728 storageConnection.CreateFunction(updateFunctionName, 4, updateFunction);
17729 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"
, 17729)
) {
17730 return rv;
17731 }
17732
17733 rv = InsertDataFromObjectStoreInternal(aConnection);
17734
17735 MOZ_ALWAYS_SUCCEEDS(storageConnection.RemoveFunction(updateFunctionName))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(storageConnection.RemoveFunction(updateFunctionName))), 1)))
), 1))) { } else { do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(storageConnection.RemoveFunction(updateFunctionName))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17735); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(storageConnection.RemoveFunction(updateFunctionName))"
")"); do { *((volatile int*)__null) = 17735; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
17736
17737 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"
, 17737)
) {
17738 return rv;
17739 }
17740
17741 return NS_OK;
17742}
17743
17744nsresult CreateIndexOp::InsertDataFromObjectStoreInternal(
17745 DatabaseConnection* aConnection) const {
17746 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"
, 17746); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 17746; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17747 aConnection->AssertIsOnConnectionThread();
17748 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"
, 17748); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeUniqueIndexTable"
")"); do { *((volatile int*)__null) = 17748; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17749
17750 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"
, 17750); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection->HasStorageConnection()"
")"); do { *((volatile int*)__null) = 17750; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17751
17752 // The parameter names are not used, parameters are bound by index only
17753 // locally in the same function.
17754 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1353 = (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 tryResult1352
= (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); 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, objectStoredId))"
, tryResult1352.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17761, mozilla::dom::quota::Severity::Error); return tryResult1352
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect
(!!(tryResult1353.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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); 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, objectStoredId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17761, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; return Ok{}; }))"
, tryResult1353.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17764, mozilla::dom::quota::Severity::Error); return tryResult1353
.propagateErr(); }}
17755 "UPDATE object_data "{auto tryResult1353 = (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 tryResult1352
= (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); 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, objectStoredId))"
, tryResult1352.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17761, mozilla::dom::quota::Severity::Error); return tryResult1352
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect
(!!(tryResult1353.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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); 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, objectStoredId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17761, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; return Ok{}; }))"
, tryResult1353.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17764, mozilla::dom::quota::Severity::Error); return tryResult1353
.propagateErr(); }}
17756 "SET index_data_values = update_index_data_values "{auto tryResult1353 = (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 tryResult1352
= (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); 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, objectStoredId))"
, tryResult1352.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17761, mozilla::dom::quota::Severity::Error); return tryResult1352
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect
(!!(tryResult1353.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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); 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, objectStoredId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17761, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; return Ok{}; }))"
, tryResult1353.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17764, mozilla::dom::quota::Severity::Error); return tryResult1353
.propagateErr(); }}
17757 "(key, index_data_values, file_ids, data) "{auto tryResult1353 = (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 tryResult1352
= (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); 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, objectStoredId))"
, tryResult1352.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17761, mozilla::dom::quota::Severity::Error); return tryResult1352
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect
(!!(tryResult1353.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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); 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, objectStoredId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17761, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; return Ok{}; }))"
, tryResult1353.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17764, mozilla::dom::quota::Severity::Error); return tryResult1353
.propagateErr(); }}
17758 "WHERE object_store_id = :object_store_id;"_ns,{auto tryResult1353 = (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 tryResult1352
= (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); 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, objectStoredId))"
, tryResult1352.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17761, mozilla::dom::quota::Severity::Error); return tryResult1352
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect
(!!(tryResult1353.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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); 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, objectStoredId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17761, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; return Ok{}; }))"
, tryResult1353.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17764, mozilla::dom::quota::Severity::Error); return tryResult1353
.propagateErr(); }}
17759 [objectStoredId ={auto tryResult1353 = (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 tryResult1352
= (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); 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, objectStoredId))"
, tryResult1352.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17761, mozilla::dom::quota::Severity::Error); return tryResult1352
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect
(!!(tryResult1353.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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); 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, objectStoredId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17761, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; return Ok{}; }))"
, tryResult1353.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17764, mozilla::dom::quota::Severity::Error); return tryResult1353
.propagateErr(); }}
17760 mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> {{auto tryResult1353 = (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 tryResult1352
= (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); 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, objectStoredId))"
, tryResult1352.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17761, mozilla::dom::quota::Severity::Error); return tryResult1352
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect
(!!(tryResult1353.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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); 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, objectStoredId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17761, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; return Ok{}; }))"
, tryResult1353.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17764, mozilla::dom::quota::Severity::Error); return tryResult1353
.propagateErr(); }}
17761 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(0, objectStoredId)));{auto tryResult1353 = (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 tryResult1352
= (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); 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, objectStoredId))"
, tryResult1352.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17761, mozilla::dom::quota::Severity::Error); return tryResult1352
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect
(!!(tryResult1353.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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); 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, objectStoredId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17761, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; return Ok{}; }))"
, tryResult1353.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17764, mozilla::dom::quota::Severity::Error); return tryResult1353
.propagateErr(); }}
17762
17763 return Ok{};{auto tryResult1353 = (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 tryResult1352
= (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); 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, objectStoredId))"
, tryResult1352.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17761, mozilla::dom::quota::Severity::Error); return tryResult1352
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect
(!!(tryResult1353.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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); 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, objectStoredId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17761, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; return Ok{}; }))"
, tryResult1353.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17764, mozilla::dom::quota::Severity::Error); return tryResult1353
.propagateErr(); }}
17764 }))){auto tryResult1353 = (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 tryResult1352
= (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); 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, objectStoredId))"
, tryResult1352.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17761, mozilla::dom::quota::Severity::Error); return tryResult1352
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect
(!!(tryResult1353.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 tryResult1352 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); 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, objectStoredId))\", tryResult1352.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17761, mozilla::dom::quota::Severity::Error); return tryResult1352.propagateErr(); }}; return Ok{}; }))"
, tryResult1353.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17764, mozilla::dom::quota::Severity::Error); return tryResult1353
.propagateErr(); }}
;
17765
17766 return NS_OK;
17767}
17768
17769bool CreateIndexOp::Init(TransactionBase& aTransaction) {
17770 AssertIsOnBackgroundThread();
17771 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"
, 17771); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mObjectStoreId"
")"); do { *((volatile int*)__null) = 17771; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17772 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"
, 17772); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeUniqueIndexTable.isNothing()"
")"); do { *((volatile int*)__null) = 17772; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17773
17774 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
17775 aTransaction.GetMetadataForObjectStoreId(mObjectStoreId);
17776 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"
, 17776); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreMetadata"
")"); do { *((volatile int*)__null) = 17776; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17777
17778 const uint32_t indexCount = objectStoreMetadata->mIndexes.Count();
17779 if (!indexCount) {
17780 return true;
17781 }
17782
17783 auto uniqueIndexTable = UniqueIndexTable{indexCount};
17784
17785 for (const auto& value : objectStoreMetadata->mIndexes.Values()) {
17786 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"
, 17786); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!uniqueIndexTable.Contains(value->mCommonMetadata.id())"
")"); do { *((volatile int*)__null) = 17786; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17787
17788 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"
, 17790)
17789 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"
, 17790)
17790 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"
, 17790)
) {
17791 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17791, "UnknownErr")
;
17792 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"
, 17792)
;
17793 return false;
17794 }
17795 }
17796
17797 uniqueIndexTable.MarkImmutable();
17798
17799 mMaybeUniqueIndexTable.emplace(std::move(uniqueIndexTable));
17800
17801 return true;
17802}
17803
17804nsresult CreateIndexOp::DoDatabaseWork(DatabaseConnection* aConnection) {
17805 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"
, 17805); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 17805; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17806 aConnection->AssertIsOnConnectionThread();
17807
17808 AUTO_PROFILER_LABEL("CreateIndexOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject17808( "CreateIndexOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
17809
17810#ifdef DEBUG1
17811 {
17812 // Make sure that we're not creating an index with the same name and object
17813 // store as another that already exists. This should be impossible because
17814 // we should have thrown an error long before now...
17815 // The parameter names are not used, parameters are bound by index only
17816 // locally in the same function.
17817 QM_TRY_INSPECT(auto tryResult1356 = (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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1354)::ok_type>); if ((__builtin_expect
(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1354
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17826, mozilla::dom::quota::Severity::Error); return tryResult1354
.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect
(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1355.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17828, mozilla::dom::quota::Severity::Error); return tryResult1355
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1356.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1356.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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1354.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17826, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1355.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17828, mozilla::dom::quota::Severity::Error); return tryResult1355.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17832, 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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1354.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17826, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1355.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17828, mozilla::dom::quota::Severity::Error); return tryResult1355.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"
, 17832); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17832; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1356.inspect();
17818 const bool& hasResult,auto tryResult1356 = (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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1354)::ok_type>); if ((__builtin_expect
(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1354
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17826, mozilla::dom::quota::Severity::Error); return tryResult1354
.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect
(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1355.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17828, mozilla::dom::quota::Severity::Error); return tryResult1355
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1356.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1356.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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1354.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17826, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1355.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17828, mozilla::dom::quota::Severity::Error); return tryResult1355.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17832, 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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1354.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17826, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1355.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17828, mozilla::dom::quota::Severity::Error); return tryResult1355.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"
, 17832); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17832; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1356.inspect();
17819 aConnectionauto tryResult1356 = (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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1354)::ok_type>); if ((__builtin_expect
(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1354
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17826, mozilla::dom::quota::Severity::Error); return tryResult1354
.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect
(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1355.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17828, mozilla::dom::quota::Severity::Error); return tryResult1355
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1356.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1356.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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1354.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17826, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1355.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17828, mozilla::dom::quota::Severity::Error); return tryResult1355.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17832, 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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1354.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17826, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1355.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17828, mozilla::dom::quota::Severity::Error); return tryResult1355.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"
, 17832); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17832; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1356.inspect();
17820 ->BorrowAndExecuteSingleStepStatement(auto tryResult1356 = (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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1354)::ok_type>); if ((__builtin_expect
(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1354
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17826, mozilla::dom::quota::Severity::Error); return tryResult1354
.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect
(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1355.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17828, mozilla::dom::quota::Severity::Error); return tryResult1355
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1356.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1356.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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1354.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17826, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1355.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17828, mozilla::dom::quota::Severity::Error); return tryResult1355.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17832, 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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1354.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17826, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1355.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17828, mozilla::dom::quota::Severity::Error); return tryResult1355.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"
, 17832); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17832; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1356.inspect();
17821 "SELECT name "auto tryResult1356 = (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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1354)::ok_type>); if ((__builtin_expect
(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1354
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17826, mozilla::dom::quota::Severity::Error); return tryResult1354
.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect
(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1355.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17828, mozilla::dom::quota::Severity::Error); return tryResult1355
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1356.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1356.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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1354.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17826, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1355.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17828, mozilla::dom::quota::Severity::Error); return tryResult1355.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17832, 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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1354.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17826, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1355.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17828, mozilla::dom::quota::Severity::Error); return tryResult1355.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"
, 17832); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17832; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1356.inspect();
17822 "FROM object_store_index "auto tryResult1356 = (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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1354)::ok_type>); if ((__builtin_expect
(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1354
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17826, mozilla::dom::quota::Severity::Error); return tryResult1354
.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect
(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1355.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17828, mozilla::dom::quota::Severity::Error); return tryResult1355
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1356.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1356.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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1354.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17826, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1355.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17828, mozilla::dom::quota::Severity::Error); return tryResult1355.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17832, 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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1354.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17826, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1355.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17828, mozilla::dom::quota::Severity::Error); return tryResult1355.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"
, 17832); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17832; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1356.inspect();
17823 "WHERE object_store_id = :object_store_id AND name = :name;"_ns,auto tryResult1356 = (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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1354)::ok_type>); if ((__builtin_expect
(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1354
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17826, mozilla::dom::quota::Severity::Error); return tryResult1354
.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect
(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1355.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17828, mozilla::dom::quota::Severity::Error); return tryResult1355
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1356.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1356.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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1354.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17826, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1355.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17828, mozilla::dom::quota::Severity::Error); return tryResult1355.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17832, 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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1354.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17826, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1355.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17828, mozilla::dom::quota::Severity::Error); return tryResult1355.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"
, 17832); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17832; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1356.inspect();
17824 [&self = *this](auto& stmt) -> Result<Ok, nsresult> {auto tryResult1356 = (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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1354)::ok_type>); if ((__builtin_expect
(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1354
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17826, mozilla::dom::quota::Severity::Error); return tryResult1354
.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect
(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1355.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17828, mozilla::dom::quota::Severity::Error); return tryResult1355
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1356.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1356.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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1354.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17826, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1355.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17828, mozilla::dom::quota::Severity::Error); return tryResult1355.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17832, 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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1354.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17826, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1355.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17828, mozilla::dom::quota::Severity::Error); return tryResult1355.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"
, 17832); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17832; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1356.inspect();
17825 QM_TRY(MOZ_TO_RESULT(auto tryResult1356 = (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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1354)::ok_type>); if ((__builtin_expect
(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1354
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17826, mozilla::dom::quota::Severity::Error); return tryResult1354
.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect
(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1355.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17828, mozilla::dom::quota::Severity::Error); return tryResult1355
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1356.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1356.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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1354.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17826, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1355.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17828, mozilla::dom::quota::Severity::Error); return tryResult1355.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17832, 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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1354.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17826, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1355.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17828, mozilla::dom::quota::Severity::Error); return tryResult1355.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"
, 17832); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17832; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1356.inspect();
17826 stmt.BindInt64ByIndex(0, self.mObjectStoreId)));auto tryResult1356 = (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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1354)::ok_type>); if ((__builtin_expect
(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1354
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17826, mozilla::dom::quota::Severity::Error); return tryResult1354
.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect
(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1355.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17828, mozilla::dom::quota::Severity::Error); return tryResult1355
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1356.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1356.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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1354.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17826, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1355.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17828, mozilla::dom::quota::Severity::Error); return tryResult1355.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17832, 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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1354.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17826, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1355.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17828, mozilla::dom::quota::Severity::Error); return tryResult1355.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"
, 17832); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17832; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1356.inspect();
17827 QM_TRY(MOZ_TO_RESULT(auto tryResult1356 = (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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1354)::ok_type>); if ((__builtin_expect
(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1354
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17826, mozilla::dom::quota::Severity::Error); return tryResult1354
.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect
(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1355.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17828, mozilla::dom::quota::Severity::Error); return tryResult1355
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1356.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1356.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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1354.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17826, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1355.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17828, mozilla::dom::quota::Severity::Error); return tryResult1355.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17832, 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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1354.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17826, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1355.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17828, mozilla::dom::quota::Severity::Error); return tryResult1355.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"
, 17832); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17832; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1356.inspect();
17828 stmt.BindStringByIndex(1, self.mMetadata.name())));auto tryResult1356 = (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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1354)::ok_type>); if ((__builtin_expect
(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1354
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17826, mozilla::dom::quota::Severity::Error); return tryResult1354
.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect
(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1355.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17828, mozilla::dom::quota::Severity::Error); return tryResult1355
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1356.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1356.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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1354.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17826, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1355.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17828, mozilla::dom::quota::Severity::Error); return tryResult1355.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17832, 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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1354.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17826, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1355.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17828, mozilla::dom::quota::Severity::Error); return tryResult1355.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"
, 17832); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17832; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1356.inspect();
17829 return Ok{};auto tryResult1356 = (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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1354)::ok_type>); if ((__builtin_expect
(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1354
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17826, mozilla::dom::quota::Severity::Error); return tryResult1354
.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect
(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1355.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17828, mozilla::dom::quota::Severity::Error); return tryResult1355
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1356.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1356.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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1354.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17826, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1355.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17828, mozilla::dom::quota::Severity::Error); return tryResult1355.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17832, 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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1354.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17826, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1355.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17828, mozilla::dom::quota::Severity::Error); return tryResult1355.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"
, 17832); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17832; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1356.inspect();
17830 })auto tryResult1356 = (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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1354)::ok_type>); if ((__builtin_expect
(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1354
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17826, mozilla::dom::quota::Severity::Error); return tryResult1354
.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect
(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1355.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17828, mozilla::dom::quota::Severity::Error); return tryResult1355
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1356.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1356.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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1354.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17826, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1355.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17828, mozilla::dom::quota::Severity::Error); return tryResult1355.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17832, 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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1354.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17826, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1355.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17828, mozilla::dom::quota::Severity::Error); return tryResult1355.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"
, 17832); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17832; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1356.inspect();
17831 .map(IsSome),auto tryResult1356 = (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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1354)::ok_type>); if ((__builtin_expect
(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1354
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17826, mozilla::dom::quota::Severity::Error); return tryResult1354
.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect
(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1355.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17828, mozilla::dom::quota::Severity::Error); return tryResult1355
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1356.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1356.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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1354.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17826, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1355.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17828, mozilla::dom::quota::Severity::Error); return tryResult1355.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17832, 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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1354.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17826, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1355.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17828, mozilla::dom::quota::Severity::Error); return tryResult1355.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"
, 17832); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17832; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1356.inspect();
17832 QM_ASSERT_UNREACHABLE)auto tryResult1356 = (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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(
0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1354)::ok_type>); if ((__builtin_expect
(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1354
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17826, mozilla::dom::quota::Severity::Error); return tryResult1354
.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex
(1, self.mMetadata.name()))); static_assert(std::is_empty_v<
typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect
(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))"
, tryResult1355.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17828, mozilla::dom::quota::Severity::Error); return tryResult1355
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1356.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1356.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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1354.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17826, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1355.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17828, mozilla::dom::quota::Severity::Error); return tryResult1355.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17832, 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 tryResult1354 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1354)::ok_type>); if ((__builtin_expect(!!(tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1354.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17826, mozilla::dom::quota::Severity::Error); return tryResult1354.propagateErr(); }}; {auto tryResult1355 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1355)::ok_type>); if ((__builtin_expect(!!(tryResult1355.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1355.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17828, mozilla::dom::quota::Severity::Error); return tryResult1355.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"
, 17832); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 17832; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1356.inspect();
;
17833
17834 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"
, 17834); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!hasResult"
")"); do { *((volatile int*)__null) = 17834; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17835 }
17836#endif
17837
17838 DatabaseConnection::AutoSavepoint autoSave;
17839 QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1357 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357
.isErr()), 0))) { auto tryTempError = tryResult1357.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17844, 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)); }}
17840#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1357 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357
.isErr()), 0))) { auto tryTempError = tryResult1357.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17844, 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)); }}
17841 ,{auto tryResult1357 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357
.isErr()), 0))) { auto tryTempError = tryResult1357.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17844, 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)); }}
17842 QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1357 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357
.isErr()), 0))) { auto tryTempError = tryResult1357.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17844, 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)); }}
17843#endif{auto tryResult1357 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357
.isErr()), 0))) { auto tryTempError = tryResult1357.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17844, 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)); }}
17844 ){auto tryResult1357 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1357)::ok_type>); if ((__builtin_expect(!!(tryResult1357
.isErr()), 0))) { auto tryTempError = tryResult1357.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17844, 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)); }}
;
17845
17846 // The parameter names are not used, parameters are bound by index only
17847 // locally in the same function.
17848 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1366 = (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 tryResult1358
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1358)::ok_type
>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17856, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1359
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17858, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1360)::ok_type>
); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17861, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1361.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17864, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17867, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1363
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17868, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17873, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17875, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.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 tryResult1358 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17856, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17858, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17864, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17867, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1364.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17873, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17875, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; return Ok{}; }))"
, tryResult1366.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17878, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}
17849 "INSERT INTO object_store_index (id, name, key_path, unique_index, "{auto tryResult1366 = (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 tryResult1358
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1358)::ok_type
>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17856, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1359
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17858, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1360)::ok_type>
); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17861, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1361.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17864, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17867, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1363
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17868, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17873, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17875, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.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 tryResult1358 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17856, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17858, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17864, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17867, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1364.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17873, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17875, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; return Ok{}; }))"
, tryResult1366.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17878, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}
17850 "multientry, object_store_id, locale, "{auto tryResult1366 = (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 tryResult1358
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1358)::ok_type
>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17856, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1359
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17858, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1360)::ok_type>
); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17861, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1361.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17864, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17867, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1363
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17868, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17873, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17875, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.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 tryResult1358 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17856, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17858, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17864, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17867, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1364.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17873, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17875, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; return Ok{}; }))"
, tryResult1366.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17878, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}
17851 "is_auto_locale) "{auto tryResult1366 = (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 tryResult1358
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1358)::ok_type
>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17856, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1359
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17858, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1360)::ok_type>
); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17861, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1361.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17864, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17867, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1363
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17868, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17873, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17875, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.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 tryResult1358 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17856, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17858, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17864, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17867, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1364.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17873, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17875, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; return Ok{}; }))"
, tryResult1366.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17878, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}
17852 "VALUES (:id, :name, :key_path, :unique, :multientry, "{auto tryResult1366 = (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 tryResult1358
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1358)::ok_type
>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17856, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1359
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17858, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1360)::ok_type>
); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17861, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1361.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17864, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17867, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1363
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17868, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17873, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17875, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.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 tryResult1358 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17856, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17858, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17864, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17867, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1364.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17873, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17875, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; return Ok{}; }))"
, tryResult1366.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17878, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}
17853 ":object_store_id, :locale, :is_auto_locale)"_ns,{auto tryResult1366 = (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 tryResult1358
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1358)::ok_type
>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17856, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1359
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17858, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1360)::ok_type>
); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17861, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1361.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17864, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17867, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1363
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17868, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17873, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17875, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.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 tryResult1358 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17856, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17858, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17864, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17867, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1364.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17873, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17875, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; return Ok{}; }))"
, tryResult1366.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17878, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}
17854 [&metadata = mMetadata, objectStoreId = mObjectStoreId]({auto tryResult1366 = (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 tryResult1358
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1358)::ok_type
>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17856, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1359
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17858, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1360)::ok_type>
); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17861, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1361.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17864, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17867, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1363
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17868, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17873, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17875, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.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 tryResult1358 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17856, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17858, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17864, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17867, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1364.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17873, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17875, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; return Ok{}; }))"
, tryResult1366.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17878, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}
17855 mozIStorageStatement& stmt) -> Result<Ok, nsresult> {{auto tryResult1366 = (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 tryResult1358
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1358)::ok_type
>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17856, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1359
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17858, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1360)::ok_type>
); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17861, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1361.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17864, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17867, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1363
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17868, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17873, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17875, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.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 tryResult1358 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17856, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17858, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17864, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17867, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1364.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17873, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17875, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; return Ok{}; }))"
, tryResult1366.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17878, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}
17856 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(0, metadata.id())));{auto tryResult1366 = (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 tryResult1358
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1358)::ok_type
>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17856, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1359
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17858, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1360)::ok_type>
); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17861, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1361.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17864, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17867, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1363
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17868, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17873, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17875, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.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 tryResult1358 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17856, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17858, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17864, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17867, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1364.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17873, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17875, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; return Ok{}; }))"
, tryResult1366.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17878, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}
17857
17858 QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex(1, metadata.name())));{auto tryResult1366 = (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 tryResult1358
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1358)::ok_type
>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17856, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1359
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17858, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1360)::ok_type>
); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17861, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1361.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17864, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17867, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1363
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17868, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17873, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17875, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.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 tryResult1358 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17856, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17858, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17864, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17867, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1364.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17873, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17875, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; return Ok{}; }))"
, tryResult1366.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17878, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}
17859
17860 QM_TRY(MOZ_TO_RESULT({auto tryResult1366 = (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 tryResult1358
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1358)::ok_type
>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17856, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1359
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17858, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1360)::ok_type>
); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17861, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1361.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17864, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17867, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1363
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17868, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17873, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17875, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.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 tryResult1358 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17856, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17858, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17864, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17867, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1364.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17873, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17875, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; return Ok{}; }))"
, tryResult1366.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17878, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}
17861 stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString())));{auto tryResult1366 = (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 tryResult1358
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1358)::ok_type
>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17856, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1359
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17858, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1360)::ok_type>
); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17861, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1361.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17864, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17867, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1363
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17868, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17873, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17875, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.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 tryResult1358 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17856, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17858, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17864, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17867, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1364.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17873, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17875, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; return Ok{}; }))"
, tryResult1366.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17878, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}
17862
17863 QM_TRY({auto tryResult1366 = (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 tryResult1358
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1358)::ok_type
>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17856, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1359
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17858, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1360)::ok_type>
); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17861, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1361.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17864, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17867, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1363
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17868, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17873, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17875, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.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 tryResult1358 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17856, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17858, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17864, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17867, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1364.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17873, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17875, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; return Ok{}; }))"
, tryResult1366.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17878, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}
17864 MOZ_TO_RESULT(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0)));{auto tryResult1366 = (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 tryResult1358
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1358)::ok_type
>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17856, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1359
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17858, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1360)::ok_type>
); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17861, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1361.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17864, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17867, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1363
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17868, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17873, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17875, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.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 tryResult1358 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17856, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17858, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17864, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17867, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1364.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17873, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17875, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; return Ok{}; }))"
, tryResult1366.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17878, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}
17865
17866 QM_TRY(MOZ_TO_RESULT({auto tryResult1366 = (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 tryResult1358
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1358)::ok_type
>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17856, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1359
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17858, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1360)::ok_type>
); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17861, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1361.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17864, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17867, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1363
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17868, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17873, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17875, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.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 tryResult1358 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17856, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17858, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17864, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17867, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1364.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17873, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17875, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; return Ok{}; }))"
, tryResult1366.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17878, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}
17867 stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0)));{auto tryResult1366 = (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 tryResult1358
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1358)::ok_type
>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17856, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1359
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17858, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1360)::ok_type>
); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17861, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1361.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17864, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17867, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1363
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17868, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17873, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17875, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.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 tryResult1358 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17856, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17858, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17864, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17867, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1364.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17873, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17875, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; return Ok{}; }))"
, tryResult1366.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17878, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}
17868 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(5, objectStoreId)));{auto tryResult1366 = (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 tryResult1358
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1358)::ok_type
>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17856, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1359
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17858, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1360)::ok_type>
); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17861, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1361.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17864, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17867, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1363
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17868, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17873, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17875, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.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 tryResult1358 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17856, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17858, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17864, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17867, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1364.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17873, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17875, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; return Ok{}; }))"
, tryResult1366.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17878, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}
17869
17870 QM_TRY(MOZ_TO_RESULT({auto tryResult1366 = (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 tryResult1358
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1358)::ok_type
>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17856, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1359
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17858, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1360)::ok_type>
); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17861, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1361.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17864, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17867, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1363
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17868, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17873, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17875, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.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 tryResult1358 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17856, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17858, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17864, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17867, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1364.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17873, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17875, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; return Ok{}; }))"
, tryResult1366.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17878, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}
17871 metadata.locale().IsEmpty(){auto tryResult1366 = (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 tryResult1358
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1358)::ok_type
>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17856, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1359
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17858, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1360)::ok_type>
); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17861, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1361.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17864, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17867, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1363
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17868, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17873, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17875, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.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 tryResult1358 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17856, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17858, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17864, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17867, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1364.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17873, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17875, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; return Ok{}; }))"
, tryResult1366.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17878, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}
17872 ? stmt.BindNullByIndex(6){auto tryResult1366 = (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 tryResult1358
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1358)::ok_type
>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17856, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1359
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17858, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1360)::ok_type>
); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17861, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1361.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17864, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17867, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1363
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17868, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17873, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17875, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.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 tryResult1358 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17856, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17858, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17864, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17867, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1364.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17873, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17875, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; return Ok{}; }))"
, tryResult1366.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17878, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}
17873 : stmt.BindUTF8StringByIndex(6, metadata.locale())));{auto tryResult1366 = (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 tryResult1358
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1358)::ok_type
>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17856, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1359
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17858, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1360)::ok_type>
); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17861, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1361.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17864, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17867, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1363
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17868, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17873, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17875, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.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 tryResult1358 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17856, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17858, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17864, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17867, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1364.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17873, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17875, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; return Ok{}; }))"
, tryResult1366.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17878, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}
17874
17875 QM_TRY(MOZ_TO_RESULT(stmt.BindInt32ByIndex(7, metadata.autoLocale())));{auto tryResult1366 = (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 tryResult1358
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1358)::ok_type
>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17856, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1359
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17858, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1360)::ok_type>
); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17861, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1361.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17864, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17867, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1363
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17868, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17873, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17875, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.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 tryResult1358 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17856, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17858, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17864, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17867, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1364.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17873, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17875, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; return Ok{}; }))"
, tryResult1366.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17878, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}
17876
17877 return Ok{};{auto tryResult1366 = (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 tryResult1358
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1358)::ok_type
>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17856, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1359
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17858, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1360)::ok_type>
); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17861, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1361.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17864, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17867, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1363
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17868, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17873, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17875, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.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 tryResult1358 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17856, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17858, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17864, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17867, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1364.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17873, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17875, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; return Ok{}; }))"
, tryResult1366.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17878, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}
17878 }))){auto tryResult1366 = (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 tryResult1358
= (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert
(std::is_empty_v<typename decltype(tryResult1358)::ok_type
>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))"
, tryResult1358.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17856, mozilla::dom::quota::Severity::Error); return tryResult1358
.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex
(1, metadata.name()))); static_assert(std::is_empty_v<typename
decltype(tryResult1359)::ok_type>); if ((__builtin_expect
(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1359
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17858, mozilla::dom::quota::Severity::Error); return tryResult1359
.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex
(2, metadata.keyPath().SerializeToString()))); static_assert(
std::is_empty_v<typename decltype(tryResult1360)::ok_type>
); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))"
, tryResult1360.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17861, mozilla::dom::quota::Severity::Error); return tryResult1360
.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex
(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect
(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))"
, tryResult1361.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17864, mozilla::dom::quota::Severity::Error); return tryResult1361
.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex
(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v
<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect
(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))"
, tryResult1362.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17867, mozilla::dom::quota::Severity::Error); return tryResult1362
.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex
(5, objectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1363)::ok_type>); if ((__builtin_expect
(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1363
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17868, mozilla::dom::quota::Severity::Error); return tryResult1363
.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata
.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex
(6, metadata.locale()))); static_assert(std::is_empty_v<typename
decltype(tryResult1364)::ok_type>); if ((__builtin_expect
(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))"
, tryResult1364.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17873, mozilla::dom::quota::Severity::Error); return tryResult1364
.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex
(7, metadata.autoLocale()))); static_assert(std::is_empty_v<
typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect
(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))",
tryResult1365.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17875, mozilla::dom::quota::Severity::Error); return tryResult1365
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect
(!!(tryResult1366.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 tryResult1358 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1358.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17856, mozilla::dom::quota::Severity::Error); return tryResult1358.propagateErr(); }}; {auto tryResult1359 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect(!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1359.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17858, mozilla::dom::quota::Severity::Error); return tryResult1359.propagateErr(); }}; {auto tryResult1360 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1360)::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1360.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17861, mozilla::dom::quota::Severity::Error); return tryResult1360.propagateErr(); }}; {auto tryResult1361 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1361)::ok_type>); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1361.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17864, mozilla::dom::quota::Severity::Error); return tryResult1361.propagateErr(); }}; {auto tryResult1362 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1362)::ok_type>); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1362.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17867, mozilla::dom::quota::Severity::Error); return tryResult1362.propagateErr(); }}; {auto tryResult1363 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1363.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17868, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; {auto tryResult1364 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1364)::ok_type>); if ((__builtin_expect(!!(tryResult1364.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1364.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17873, mozilla::dom::quota::Severity::Error); return tryResult1364.propagateErr(); }}; {auto tryResult1365 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1365.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 17875, mozilla::dom::quota::Severity::Error); return tryResult1365.propagateErr(); }}; return Ok{}; }))"
, tryResult1366.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17878, mozilla::dom::quota::Severity::Error); return tryResult1366
.propagateErr(); }}
;
17879
17880#ifdef DEBUG1
17881 {
17882 int64_t id;
17883 MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aConnection->MutableStorageConnection().GetLastInsertRowID
(&id))), 1)))), 1))) { } else { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(false)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17884); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))"
")"); do { *((volatile int*)__null) = 17884; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
17884 aConnection->MutableStorageConnection().GetLastInsertRowID(&id))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aConnection->MutableStorageConnection().GetLastInsertRowID
(&id))), 1)))), 1))) { } else { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(false)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17884); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))"
")"); do { *((volatile int*)__null) = 17884; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
17885 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"
, 17885); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata.id() == id"
")"); do { *((volatile int*)__null) = 17885; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17886 }
17887#endif
17888
17889 QM_TRY(MOZ_TO_RESULT(InsertDataFromObjectStore(aConnection))){auto tryResult1367 = (ToResult(InsertDataFromObjectStore(aConnection
))); static_assert(std::is_empty_v<typename decltype(tryResult1367
)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(InsertDataFromObjectStore(aConnection))"
, tryResult1367.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17889, mozilla::dom::quota::Severity::Error); return tryResult1367
.propagateErr(); }}
;
17890
17891 QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1368 = (ToResult(autoSave.Commit())); static_assert
(std::is_empty_v<typename decltype(tryResult1368)::ok_type
>); if ((__builtin_expect(!!(tryResult1368.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())"
, tryResult1368.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17891, mozilla::dom::quota::Severity::Error); return tryResult1368
.propagateErr(); }}
;
17892
17893 return NS_OK;
17894}
17895
17896NS_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"
, 17897); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { *((volatile int*)__null) =
17897; __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"
, 17897); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr"
") (" "Must specify a name" ")"); do { *((volatile int*)__null
) = 17897; __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"
, 17897); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { *((volatile int*)__null) = 17897
; __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"
, 17897); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr"
") (" "Must specify a name" ")"); do { *((volatile int*)__null
) = 17897; __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"
, 17897); 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((sizeof(table) /
sizeof(table[0])) > 1, "need at least 1 interface"); rv =
NS_TableDrivenQI(static_cast<void*>(this), aIID, aInstancePtr
, table); return rv; }
17897 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"
, 17897); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { *((volatile int*)__null) =
17897; __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"
, 17897); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr"
") (" "Must specify a name" ")"); do { *((volatile int*)__null
) = 17897; __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"
, 17897); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { *((volatile int*)__null) = 17897
; __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"
, 17897); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr"
") (" "Must specify a name" ")"); do { *((volatile int*)__null
) = 17897; __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"
, 17897); 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((sizeof(table) /
sizeof(table[0])) > 1, "need at least 1 interface"); rv =
NS_TableDrivenQI(static_cast<void*>(this), aIID, aInstancePtr
, table); return rv; }
;
17898
17899NS_IMETHODIMPnsresult
17900CreateIndexOp::UpdateIndexDataValuesFunction::OnFunctionCall(
17901 mozIStorageValueArray* aValues, nsIVariant** _retval) {
17902 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"
, 17902); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aValues" ")"
); do { *((volatile int*)__null) = 17902; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
17903 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"
, 17903); AnnotateMozCrashReason("MOZ_ASSERT" "(" "_retval" ")"
); do { *((volatile int*)__null) = 17903; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
17904 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"
, 17904); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection"
")"); do { *((volatile int*)__null) = 17904; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17905 mConnection->AssertIsOnConnectionThread();
17906 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"
, 17906); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp" ")");
do { *((volatile int*)__null) = 17906; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
17907 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"
, 17907); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp->mFileManager"
")"); do { *((volatile int*)__null) = 17907; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17908
17909 AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject17910( "CreateIndexOp::UpdateIndexDataValuesFunction::OnFunctionCall"
, nullptr, JS::ProfilingCategoryPair::DOM)
17910 "CreateIndexOp::UpdateIndexDataValuesFunction::OnFunctionCall", DOM)mozilla::AutoProfilerLabel raiiObject17910( "CreateIndexOp::UpdateIndexDataValuesFunction::OnFunctionCall"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
17911
17912#ifdef DEBUG1
17913 {
17914 uint32_t argCount;
17915 MOZ_ALWAYS_SUCCEEDS(aValues->GetNumEntries(&argCount))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aValues->GetNumEntries(&argCount))), 1)))), 1))) { } else
{ do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(aValues->GetNumEntries(&argCount))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17915); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(aValues->GetNumEntries(&argCount))"
")"); do { *((volatile int*)__null) = 17915; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
17916 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"
, 17916); AnnotateMozCrashReason("MOZ_ASSERT" "(" "argCount == 4"
")"); do { *((volatile int*)__null) = 17916; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
; // key, index_data_values, file_ids, data
17917
17918 int32_t valueType;
17919 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 { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(aValues->GetTypeOfIndex(0, &valueType))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17919); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(aValues->GetTypeOfIndex(0, &valueType))"
")"); do { *((volatile int*)__null) = 17919; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
17920 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"
, 17920); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_BLOB"
")"); do { *((volatile int*)__null) = 17920; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17921
17922 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 { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(aValues->GetTypeOfIndex(1, &valueType))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17922); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(aValues->GetTypeOfIndex(1, &valueType))"
")"); do { *((volatile int*)__null) = 17922; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
17923 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"
, 17924); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB"
")"); do { *((volatile int*)__null) = 17924; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
17924 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"
, 17924); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB"
")"); do { *((volatile int*)__null) = 17924; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17925
17926 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 { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(aValues->GetTypeOfIndex(2, &valueType))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17926); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(aValues->GetTypeOfIndex(2, &valueType))"
")"); do { *((volatile int*)__null) = 17926; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
17927 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"
, 17928); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 17928; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
17928 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"
, 17928); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_TEXT"
")"); do { *((volatile int*)__null) = 17928; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17929
17930 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 { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(aValues->GetTypeOfIndex(3, &valueType))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17930); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(aValues->GetTypeOfIndex(3, &valueType))"
")"); do { *((volatile int*)__null) = 17930; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
17931 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"
, 17932); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_BLOB || valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER"
")"); do { *((volatile int*)__null) = 17932; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
17932 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"
, 17932); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_BLOB || valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER"
")"); do { *((volatile int*)__null) = 17932; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17933 }
17934#endif
17935
17936 QM_TRY_UNWRAP(auto cloneInfo, GetStructuredCloneReadInfoFromValueArray(auto tryResult1369 = (GetStructuredCloneReadInfoFromValueArray
( aValues, 3, 2, *mOp->mFileManager)); if ((__builtin_expect
(!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromValueArray( aValues, 3, 2, *mOp->mFileManager)"
, tryResult1369.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17939, mozilla::dom::quota::Severity::Error); return tryResult1369
.propagateErr(); } auto cloneInfo = tryResult1369.unwrap();
17937 aValues,auto tryResult1369 = (GetStructuredCloneReadInfoFromValueArray
( aValues, 3, 2, *mOp->mFileManager)); if ((__builtin_expect
(!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromValueArray( aValues, 3, 2, *mOp->mFileManager)"
, tryResult1369.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17939, mozilla::dom::quota::Severity::Error); return tryResult1369
.propagateErr(); } auto cloneInfo = tryResult1369.unwrap();
17938 /* aDataIndex */ 3,auto tryResult1369 = (GetStructuredCloneReadInfoFromValueArray
( aValues, 3, 2, *mOp->mFileManager)); if ((__builtin_expect
(!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromValueArray( aValues, 3, 2, *mOp->mFileManager)"
, tryResult1369.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17939, mozilla::dom::quota::Severity::Error); return tryResult1369
.propagateErr(); } auto cloneInfo = tryResult1369.unwrap();
17939 /* aFileIdsIndex */ 2, *mOp->mFileManager))auto tryResult1369 = (GetStructuredCloneReadInfoFromValueArray
( aValues, 3, 2, *mOp->mFileManager)); if ((__builtin_expect
(!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromValueArray( aValues, 3, 2, *mOp->mFileManager)"
, tryResult1369.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17939, mozilla::dom::quota::Severity::Error); return tryResult1369
.propagateErr(); } auto cloneInfo = tryResult1369.unwrap();
;
17940
17941 const IndexMetadata& metadata = mOp->mMetadata;
17942 const IndexOrObjectStoreId& objectStoreId = mOp->mObjectStoreId;
17943
17944 // XXX does this really need a non-const cloneInfo?
17945 QM_TRY_INSPECT(const auto& updateInfos,auto tryResult1370 = (DeserializeIndexValueToUpdateInfos( metadata
.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale
(), cloneInfo)); if ((__builtin_expect(!!(tryResult1370.isErr
()), 0))) { mozilla::dom::quota::HandleError("DeserializeIndexValueToUpdateInfos( metadata.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale(), cloneInfo)"
, tryResult1370.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17948, mozilla::dom::quota::Severity::Error); return tryResult1370
.propagateErr(); } const auto& updateInfos = tryResult1370
.inspect();
17946 DeserializeIndexValueToUpdateInfos(auto tryResult1370 = (DeserializeIndexValueToUpdateInfos( metadata
.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale
(), cloneInfo)); if ((__builtin_expect(!!(tryResult1370.isErr
()), 0))) { mozilla::dom::quota::HandleError("DeserializeIndexValueToUpdateInfos( metadata.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale(), cloneInfo)"
, tryResult1370.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17948, mozilla::dom::quota::Severity::Error); return tryResult1370
.propagateErr(); } const auto& updateInfos = tryResult1370
.inspect();
17947 metadata.id(), metadata.keyPath(), metadata.multiEntry(),auto tryResult1370 = (DeserializeIndexValueToUpdateInfos( metadata
.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale
(), cloneInfo)); if ((__builtin_expect(!!(tryResult1370.isErr
()), 0))) { mozilla::dom::quota::HandleError("DeserializeIndexValueToUpdateInfos( metadata.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale(), cloneInfo)"
, tryResult1370.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17948, mozilla::dom::quota::Severity::Error); return tryResult1370
.propagateErr(); } const auto& updateInfos = tryResult1370
.inspect();
17948 metadata.locale(), cloneInfo))auto tryResult1370 = (DeserializeIndexValueToUpdateInfos( metadata
.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale
(), cloneInfo)); if ((__builtin_expect(!!(tryResult1370.isErr
()), 0))) { mozilla::dom::quota::HandleError("DeserializeIndexValueToUpdateInfos( metadata.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale(), cloneInfo)"
, tryResult1370.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17948, mozilla::dom::quota::Severity::Error); return tryResult1370
.propagateErr(); } const auto& updateInfos = tryResult1370
.inspect();
;
17949
17950 if (updateInfos.IsEmpty()) {
17951 // XXX See if we can do this without copying...
17952
17953 nsCOMPtr<nsIVariant> unmodifiedValue;
17954
17955 // No changes needed, just return the original value.
17956 QM_TRY_INSPECT(const int32_t& valueType,auto tryResult1371 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetTypeOfIndex, 1)); if ((__builtin_expect(!!(tryResult1371
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, 1)"
, tryResult1371.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17957, mozilla::dom::quota::Severity::Error); return tryResult1371
.propagateErr(); } const int32_t& valueType = tryResult1371
.inspect();
17957 MOZ_TO_RESULT_INVOKE_MEMBER(aValues, GetTypeOfIndex, 1))auto tryResult1371 = (::mozilla::ToResultInvokeMember( (aValues
), &::mozilla::detail::DerefedType<decltype(aValues)>
::GetTypeOfIndex, 1)); if ((__builtin_expect(!!(tryResult1371
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex, 1)"
, tryResult1371.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17957, mozilla::dom::quota::Severity::Error); return tryResult1371
.propagateErr(); } const int32_t& valueType = tryResult1371
.inspect();
;
17958
17959 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"
, 17960); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB"
")"); do { *((volatile int*)__null) = 17960; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
17960 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"
, 17960); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB"
")"); do { *((volatile int*)__null) = 17960; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17961
17962 if (valueType == mozIStorageValueArray::VALUE_TYPE_NULL) {
17963 unmodifiedValue = new storage::NullVariant();
17964 unmodifiedValue.forget(_retval);
17965 return NS_OK;
17966 }
17967
17968 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"
, 17968); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_BLOB"
")"); do { *((volatile int*)__null) = 17968; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
17969
17970 const uint8_t* blobData;
17971 uint32_t blobDataLength;
17972 QM_TRY({auto tryResult1372 = (ToResult(aValues->GetSharedBlob(1, &
blobDataLength, &blobData))); static_assert(std::is_empty_v
<typename decltype(tryResult1372)::ok_type>); if ((__builtin_expect
(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aValues->GetSharedBlob(1, &blobDataLength, &blobData))"
, tryResult1372.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17973, mozilla::dom::quota::Severity::Error); return tryResult1372
.propagateErr(); }}
17973 MOZ_TO_RESULT(aValues->GetSharedBlob(1, &blobDataLength, &blobData))){auto tryResult1372 = (ToResult(aValues->GetSharedBlob(1, &
blobDataLength, &blobData))); static_assert(std::is_empty_v
<typename decltype(tryResult1372)::ok_type>); if ((__builtin_expect
(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aValues->GetSharedBlob(1, &blobDataLength, &blobData))"
, tryResult1372.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17973, mozilla::dom::quota::Severity::Error); return tryResult1372
.propagateErr(); }}
;
17974
17975 const std::pair<uint8_t*, int> copiedBlobDataPair(
17976 static_cast<uint8_t*>(malloc(blobDataLength)), blobDataLength);
17977
17978 if (!copiedBlobDataPair.first) {
17979 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17979, "UnknownErr")
;
17980 return NS_ERROR_OUT_OF_MEMORY;
17981 }
17982
17983 memcpy(copiedBlobDataPair.first, blobData, blobDataLength);
17984
17985 unmodifiedValue = new storage::AdoptedBlobVariant(copiedBlobDataPair);
17986 unmodifiedValue.forget(_retval);
17987
17988 return NS_OK;
17989 }
17990
17991 Key key;
17992 QM_TRY(MOZ_TO_RESULT(key.SetFromValueArray(aValues, 0))){auto tryResult1373 = (ToResult(key.SetFromValueArray(aValues
, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1373
)::ok_type>); if ((__builtin_expect(!!(tryResult1373.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(key.SetFromValueArray(aValues, 0))"
, tryResult1373.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17992, mozilla::dom::quota::Severity::Error); return tryResult1373
.propagateErr(); }}
;
17993
17994 QM_TRY_UNWRAP(auto indexValues, ReadCompressedIndexDataValues(*aValues, 1))auto tryResult1374 = (ReadCompressedIndexDataValues(*aValues,
1)); if ((__builtin_expect(!!(tryResult1374.isErr()), 0))) {
mozilla::dom::quota::HandleError("ReadCompressedIndexDataValues(*aValues, 1)"
, tryResult1374.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 17994, mozilla::dom::quota::Severity::Error); return tryResult1374
.propagateErr(); } auto indexValues = tryResult1374.unwrap();
;
17995
17996 const bool hadPreviousIndexValues = !indexValues.IsEmpty();
17997
17998 const uint32_t updateInfoCount = updateInfos.Length();
17999
18000 QM_TRY(OkIf(indexValues.SetCapacity(indexValues.Length() + updateInfoCount,{auto tryResult1375 = (OkIf(indexValues.SetCapacity(indexValues
.Length() + updateInfoCount, fallible))); static_assert(std::
is_empty_v<typename decltype(tryResult1375)::ok_type>);
if ((__builtin_expect(!!(tryResult1375.isErr()), 0))) { auto
tryTempError = tryResult1375.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexValues.SetCapacity(indexValues.Length() + updateInfoCount, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18002, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18002, "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); }}
18001 fallible)),{auto tryResult1375 = (OkIf(indexValues.SetCapacity(indexValues
.Length() + updateInfoCount, fallible))); static_assert(std::
is_empty_v<typename decltype(tryResult1375)::ok_type>);
if ((__builtin_expect(!!(tryResult1375.isErr()), 0))) { auto
tryTempError = tryResult1375.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexValues.SetCapacity(indexValues.Length() + updateInfoCount, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18002, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18002, "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); }}
18002 NS_ERROR_OUT_OF_MEMORY, IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1375 = (OkIf(indexValues.SetCapacity(indexValues
.Length() + updateInfoCount, fallible))); static_assert(std::
is_empty_v<typename decltype(tryResult1375)::ok_type>);
if ((__builtin_expect(!!(tryResult1375.isErr()), 0))) { auto
tryTempError = tryResult1375.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(indexValues.SetCapacity(indexValues.Length() + updateInfoCount, fallible))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18002, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18002, "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); }}
;
18003
18004 // First construct the full list to update the index_data_values row.
18005 for (const IndexUpdateInfo& info : updateInfos) {
18006 MOZ_ALWAYS_TRUE(indexValues.InsertElementSorted(do { if ((__builtin_expect(!!(indexValues.InsertElementSorted
( IndexDataValue(metadata.id(), metadata.unique(), info.value
(), info.localizedValue()), fallible)), 1))) { } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18009); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
")"); do { *((volatile int*)__null) = 18009; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
18007 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 { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18009); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
")"); do { *((volatile int*)__null) = 18009; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
18008 info.localizedValue()),do { if ((__builtin_expect(!!(indexValues.InsertElementSorted
( IndexDataValue(metadata.id(), metadata.unique(), info.value
(), info.localizedValue()), fallible)), 1))) { } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18009); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
")"); do { *((volatile int*)__null) = 18009; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
18009 fallible))do { if ((__builtin_expect(!!(indexValues.InsertElementSorted
( IndexDataValue(metadata.id(), metadata.unique(), info.value
(), info.localizedValue()), fallible)), 1))) { } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18009); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
")"); do { *((volatile int*)__null) = 18009; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
18010 }
18011
18012 QM_TRY_UNWRAP((auto [indexValuesBlob, indexValuesBlobLength]),auto tryResult1376 = (MakeCompressedIndexDataValues(indexValues
)); if ((__builtin_expect(!!(tryResult1376.isErr()), 0))) { mozilla
::dom::quota::HandleError("MakeCompressedIndexDataValues(indexValues)"
, tryResult1376.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18013, mozilla::dom::quota::Severity::Error); return tryResult1376
.propagateErr(); } auto [indexValuesBlob, indexValuesBlobLength
] = tryResult1376.unwrap();
18013 MakeCompressedIndexDataValues(indexValues))auto tryResult1376 = (MakeCompressedIndexDataValues(indexValues
)); if ((__builtin_expect(!!(tryResult1376.isErr()), 0))) { mozilla
::dom::quota::HandleError("MakeCompressedIndexDataValues(indexValues)"
, tryResult1376.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18013, mozilla::dom::quota::Severity::Error); return tryResult1376
.propagateErr(); } auto [indexValuesBlob, indexValuesBlobLength
] = tryResult1376.unwrap();
;
18014
18015 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"
, 18015); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!indexValuesBlobLength == !(indexValuesBlob.get())"
")"); do { *((volatile int*)__null) = 18015; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18016
18017 nsCOMPtr<nsIVariant> value;
18018
18019 if (!indexValuesBlob) {
18020 value = new storage::NullVariant();
18021
18022 value.forget(_retval);
18023 return NS_OK;
18024 }
18025
18026 // Now insert the new table rows. We only need to construct a new list if
18027 // the full list is different.
18028 if (hadPreviousIndexValues) {
18029 indexValues.ClearAndRetainStorage();
18030
18031 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"
, 18031); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexValues.Capacity() >= updateInfoCount"
")"); do { *((volatile int*)__null) = 18031; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18032
18033 for (const IndexUpdateInfo& info : updateInfos) {
18034 MOZ_ALWAYS_TRUE(indexValues.InsertElementSorted(do { if ((__builtin_expect(!!(indexValues.InsertElementSorted
( IndexDataValue(metadata.id(), metadata.unique(), info.value
(), info.localizedValue()), fallible)), 1))) { } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18037); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
")"); do { *((volatile int*)__null) = 18037; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
18035 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 { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18037); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
")"); do { *((volatile int*)__null) = 18037; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
18036 info.localizedValue()),do { if ((__builtin_expect(!!(indexValues.InsertElementSorted
( IndexDataValue(metadata.id(), metadata.unique(), info.value
(), info.localizedValue()), fallible)), 1))) { } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18037); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
")"); do { *((volatile int*)__null) = 18037; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
18037 fallible))do { if ((__builtin_expect(!!(indexValues.InsertElementSorted
( IndexDataValue(metadata.id(), metadata.unique(), info.value
(), info.localizedValue()), fallible)), 1))) { } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18037); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)"
")"); do { *((volatile int*)__null) = 18037; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
18038 }
18039 }
18040
18041 QM_TRY(MOZ_TO_RESULT({auto tryResult1377 = (ToResult(InsertIndexTableRows(mConnection
, objectStoreId, key, indexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1377)::ok_type>); if ((__builtin_expect
(!!(tryResult1377.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(InsertIndexTableRows(mConnection, objectStoreId, key, indexValues))"
, tryResult1377.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18042, mozilla::dom::quota::Severity::Error); return tryResult1377
.propagateErr(); }}
18042 InsertIndexTableRows(mConnection, objectStoreId, key, indexValues))){auto tryResult1377 = (ToResult(InsertIndexTableRows(mConnection
, objectStoreId, key, indexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1377)::ok_type>); if ((__builtin_expect
(!!(tryResult1377.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(InsertIndexTableRows(mConnection, objectStoreId, key, indexValues))"
, tryResult1377.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18042, mozilla::dom::quota::Severity::Error); return tryResult1377
.propagateErr(); }}
;
18043
18044 value = new storage::AdoptedBlobVariant(
18045 std::pair(indexValuesBlob.release(), indexValuesBlobLength));
18046
18047 value.forget(_retval);
18048 return NS_OK;
18049}
18050
18051DeleteIndexOp::DeleteIndexOp(SafeRefPtr<VersionChangeTransaction> aTransaction,
18052 const IndexOrObjectStoreId aObjectStoreId,
18053 const IndexOrObjectStoreId aIndexId,
18054 const bool aUnique, const bool aIsLastIndex)
18055 : VersionChangeTransactionOp(std::move(aTransaction)),
18056 mObjectStoreId(aObjectStoreId),
18057 mIndexId(aIndexId),
18058 mUnique(aUnique),
18059 mIsLastIndex(aIsLastIndex) {
18060 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"
, 18060); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aObjectStoreId"
")"); do { *((volatile int*)__null) = 18060; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18061 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"
, 18061); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aIndexId" ")"
); do { *((volatile int*)__null) = 18061; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
18062}
18063
18064nsresult DeleteIndexOp::RemoveReferencesToIndex(
18065 DatabaseConnection* aConnection, const Key& aObjectStoreKey,
18066 nsTArray<IndexDataValue>& aIndexValues) const {
18067 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"
, 18067); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()"
")"); do { *((volatile int*)__null) = 18067; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18068 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"
, 18068); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 18068; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18069 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"
, 18069); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 18069; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18070 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"
, 18070); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aObjectStoreKey.IsUnset()"
")"); do { *((volatile int*)__null) = 18070; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18071 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"
, 18071); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aIndexValues.IsEmpty()"
")"); do { *((volatile int*)__null) = 18071; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
18072
18073 AUTO_PROFILER_LABEL("DeleteIndexOp::RemoveReferencesToIndex", DOM)mozilla::AutoProfilerLabel raiiObject18073( "DeleteIndexOp::RemoveReferencesToIndex"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
18074
18075 if (mIsLastIndex) {
18076 // There is no need to parse the previous entry in the index_data_values
18077 // column if this is the last index. Simply set it to NULL.
18078 QM_TRY_INSPECT(const auto& stmt,auto tryResult1378 = (aConnection->BorrowCachedStatement( "UPDATE object_data "
"SET index_data_values = NULL " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns)); if ((__builtin_expect(!!(tryResult1378.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)"
, tryResult1378.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18084, mozilla::dom::quota::Severity::Error); return tryResult1378
.propagateErr(); } const auto& stmt = tryResult1378.inspect
();
18079 aConnection->BorrowCachedStatement(auto tryResult1378 = (aConnection->BorrowCachedStatement( "UPDATE object_data "
"SET index_data_values = NULL " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns)); if ((__builtin_expect(!!(tryResult1378.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)"
, tryResult1378.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18084, mozilla::dom::quota::Severity::Error); return tryResult1378
.propagateErr(); } const auto& stmt = tryResult1378.inspect
();
18080 "UPDATE object_data "auto tryResult1378 = (aConnection->BorrowCachedStatement( "UPDATE object_data "
"SET index_data_values = NULL " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns)); if ((__builtin_expect(!!(tryResult1378.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)"
, tryResult1378.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18084, mozilla::dom::quota::Severity::Error); return tryResult1378
.propagateErr(); } const auto& stmt = tryResult1378.inspect
();
18081 "SET index_data_values = NULL "auto tryResult1378 = (aConnection->BorrowCachedStatement( "UPDATE object_data "
"SET index_data_values = NULL " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns)); if ((__builtin_expect(!!(tryResult1378.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)"
, tryResult1378.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18084, mozilla::dom::quota::Severity::Error); return tryResult1378
.propagateErr(); } const auto& stmt = tryResult1378.inspect
();
18082 "WHERE object_store_id = :"_ns +auto tryResult1378 = (aConnection->BorrowCachedStatement( "UPDATE object_data "
"SET index_data_values = NULL " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns)); if ((__builtin_expect(!!(tryResult1378.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)"
, tryResult1378.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18084, mozilla::dom::quota::Severity::Error); return tryResult1378
.propagateErr(); } const auto& stmt = tryResult1378.inspect
();
18083 kStmtParamNameObjectStoreId + " AND key = :"_ns +auto tryResult1378 = (aConnection->BorrowCachedStatement( "UPDATE object_data "
"SET index_data_values = NULL " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns)); if ((__builtin_expect(!!(tryResult1378.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)"
, tryResult1378.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18084, mozilla::dom::quota::Severity::Error); return tryResult1378
.propagateErr(); } const auto& stmt = tryResult1378.inspect
();
18084 kStmtParamNameKey + ";"_ns))auto tryResult1378 = (aConnection->BorrowCachedStatement( "UPDATE object_data "
"SET index_data_values = NULL " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey
+ ";"_ns)); if ((__builtin_expect(!!(tryResult1378.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)"
, tryResult1378.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18084, mozilla::dom::quota::Severity::Error); return tryResult1378
.propagateErr(); } const auto& stmt = tryResult1378.inspect
();
;
18085
18086 QM_TRY(MOZ_TO_RESULT({auto tryResult1379 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId
, mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1379)::ok_type>); if ((__builtin_expect
(!!(tryResult1379.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))"
, tryResult1379.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18087, mozilla::dom::quota::Severity::Error); return tryResult1379
.propagateErr(); }}
18087 stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))){auto tryResult1379 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId
, mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1379)::ok_type>); if ((__builtin_expect
(!!(tryResult1379.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))"
, tryResult1379.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18087, mozilla::dom::quota::Severity::Error); return tryResult1379
.propagateErr(); }}
;
18088
18089 QM_TRY(MOZ_TO_RESULT({auto tryResult1380 = (ToResult(aObjectStoreKey.BindToStatement
(&*stmt, kStmtParamNameKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1380)::ok_type>); if ((__builtin_expect
(!!(tryResult1380.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aObjectStoreKey.BindToStatement(&*stmt, kStmtParamNameKey))"
, tryResult1380.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18090, mozilla::dom::quota::Severity::Error); return tryResult1380
.propagateErr(); }}
18090 aObjectStoreKey.BindToStatement(&*stmt, kStmtParamNameKey))){auto tryResult1380 = (ToResult(aObjectStoreKey.BindToStatement
(&*stmt, kStmtParamNameKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1380)::ok_type>); if ((__builtin_expect
(!!(tryResult1380.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aObjectStoreKey.BindToStatement(&*stmt, kStmtParamNameKey))"
, tryResult1380.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18090, mozilla::dom::quota::Severity::Error); return tryResult1380
.propagateErr(); }}
;
18091
18092 QM_TRY(MOZ_TO_RESULT(stmt->Execute())){auto tryResult1381 = (ToResult(stmt->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult1381)::ok_type
>); if ((__builtin_expect(!!(tryResult1381.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt->Execute())"
, tryResult1381.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18092, mozilla::dom::quota::Severity::Error); return tryResult1381
.propagateErr(); }}
;
18093
18094 return NS_OK;
18095 }
18096
18097 {
18098 IndexDataValue search;
18099 search.mIndexId = mIndexId;
18100
18101 // Use raw pointers for search to avoid redundant index validity checks.
18102 // Maybe this should better be encapsulated in nsTArray.
18103 const auto* const begin = aIndexValues.Elements();
18104 const auto* const end = aIndexValues.Elements() + aIndexValues.Length();
18105
18106 const auto indexIdComparator = [](const IndexDataValue& aA,
18107 const IndexDataValue& aB) {
18108 return aA.mIndexId < aB.mIndexId;
18109 };
18110
18111 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"
, 18111); AnnotateMozCrashReason("MOZ_ASSERT" "(" "std::is_sorted(begin, end, indexIdComparator)"
")"); do { *((volatile int*)__null) = 18111; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18112
18113 const auto [beginRange, endRange] =
18114 std::equal_range(begin, end, search, indexIdComparator);
18115 if (beginRange == end) {
18116 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18116, "UnknownErr")
;
18117 return NS_ERROR_FILE_CORRUPTED;
18118 }
18119
18120 aIndexValues.RemoveElementsAt(beginRange - begin, endRange - beginRange);
18121 }
18122
18123 QM_TRY(MOZ_TO_RESULT(UpdateIndexValues(aConnection, mObjectStoreId,{auto tryResult1382 = (ToResult(UpdateIndexValues(aConnection
, mObjectStoreId, aObjectStoreKey, aIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1382)::ok_type
>); if ((__builtin_expect(!!(tryResult1382.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(UpdateIndexValues(aConnection, mObjectStoreId, aObjectStoreKey, aIndexValues))"
, tryResult1382.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18124, mozilla::dom::quota::Severity::Error); return tryResult1382
.propagateErr(); }}
18124 aObjectStoreKey, aIndexValues))){auto tryResult1382 = (ToResult(UpdateIndexValues(aConnection
, mObjectStoreId, aObjectStoreKey, aIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1382)::ok_type
>); if ((__builtin_expect(!!(tryResult1382.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(UpdateIndexValues(aConnection, mObjectStoreId, aObjectStoreKey, aIndexValues))"
, tryResult1382.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18124, mozilla::dom::quota::Severity::Error); return tryResult1382
.propagateErr(); }}
;
18125
18126 return NS_OK;
18127}
18128
18129nsresult DeleteIndexOp::DoDatabaseWork(DatabaseConnection* aConnection) {
18130 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"
, 18130); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 18130; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18131 aConnection->AssertIsOnConnectionThread();
18132
18133#ifdef DEBUG1
18134 {
18135 // Make sure |mIsLastIndex| is telling the truth.
18136 // The parameter names are not used, parameters are bound by index only
18137 // locally in the same function.
18138 QM_TRY_INSPECT(const auto& stmt,auto tryResult1383 = (aConnection->BorrowCachedStatement( "SELECT id "
"FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns
)); if ((__builtin_expect(!!(tryResult1383.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1383.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"
, 18143, 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"
, 18143); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18143; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& stmt = tryResult1383.inspect();
18139 aConnection->BorrowCachedStatement(auto tryResult1383 = (aConnection->BorrowCachedStatement( "SELECT id "
"FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns
)); if ((__builtin_expect(!!(tryResult1383.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1383.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"
, 18143, 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"
, 18143); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18143; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& stmt = tryResult1383.inspect();
18140 "SELECT id "auto tryResult1383 = (aConnection->BorrowCachedStatement( "SELECT id "
"FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns
)); if ((__builtin_expect(!!(tryResult1383.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1383.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"
, 18143, 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"
, 18143); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18143; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& stmt = tryResult1383.inspect();
18141 "FROM object_store_index "auto tryResult1383 = (aConnection->BorrowCachedStatement( "SELECT id "
"FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns
)); if ((__builtin_expect(!!(tryResult1383.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1383.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"
, 18143, 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"
, 18143); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18143; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& stmt = tryResult1383.inspect();
18142 "WHERE object_store_id = :object_store_id;"_ns),auto tryResult1383 = (aConnection->BorrowCachedStatement( "SELECT id "
"FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns
)); if ((__builtin_expect(!!(tryResult1383.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1383.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"
, 18143, 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"
, 18143); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18143; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& stmt = tryResult1383.inspect();
18143 QM_ASSERT_UNREACHABLE)auto tryResult1383 = (aConnection->BorrowCachedStatement( "SELECT id "
"FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns
)); if ((__builtin_expect(!!(tryResult1383.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1383.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"
, 18143, 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"
, 18143); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18143; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
auto& stmt = tryResult1383.inspect();
;
18144
18145 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 { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(stmt->BindInt64ByIndex(0, mObjectStoreId))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18145); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(stmt->BindInt64ByIndex(0, mObjectStoreId))"
")"); do { *((volatile int*)__null) = 18145; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
18146
18147 bool foundThisIndex = false;
18148 bool foundOtherIndex = false;
18149
18150 while (true) {
18151 bool hasResult;
18152 MOZ_ALWAYS_SUCCEEDS(stmt->ExecuteStep(&hasResult))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(stmt->ExecuteStep(&hasResult))), 1)))), 1))) { } else
{ do { static_assert( mozilla::detail::AssertionConditionType
<decltype(false)>::isValid, "invalid assertion condition"
); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while
(false); MOZ_ReportAssertionFailure("false" " (" "NS_SUCCEEDED(stmt->ExecuteStep(&hasResult))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18152); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(stmt->ExecuteStep(&hasResult))" ")"
); do { *((volatile int*)__null) = 18152; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false); } } while (
false)
;
18153
18154 if (!hasResult) {
18155 break;
18156 }
18157
18158 int64_t id;
18159 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 {
static_assert( mozilla::detail::AssertionConditionType<decltype
(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "NS_SUCCEEDED(stmt->GetInt64(0, &id))" ")"
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18159); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(stmt->GetInt64(0, &id))" ")"); do
{ *((volatile int*)__null) = 18159; __attribute__((nomerge))
::abort(); } while (false); } } while (false); } } while (false
)
;
18160
18161 if (id == mIndexId) {
18162 foundThisIndex = true;
18163 } else {
18164 foundOtherIndex = true;
18165 }
18166 }
18167
18168 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"
, 18168); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisIndex && !foundOtherIndex"
")"); do { *((volatile int*)__null) = 18168; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
18169 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"
, 18169); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisIndex && foundOtherIndex"
")"); do { *((volatile int*)__null) = 18169; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
18170 }
18171#endif
18172
18173 AUTO_PROFILER_LABEL("DeleteIndexOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject18173( "DeleteIndexOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
18174
18175 DatabaseConnection::AutoSavepoint autoSave;
18176 QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1384 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1384)::ok_type>); if ((__builtin_expect(!!(tryResult1384
.isErr()), 0))) { auto tryTempError = tryResult1384.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18181, 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)); }}
18177#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1384 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1384)::ok_type>); if ((__builtin_expect(!!(tryResult1384
.isErr()), 0))) { auto tryTempError = tryResult1384.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18181, 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)); }}
18178 ,{auto tryResult1384 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1384)::ok_type>); if ((__builtin_expect(!!(tryResult1384
.isErr()), 0))) { auto tryTempError = tryResult1384.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18181, 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)); }}
18179 QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1384 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1384)::ok_type>); if ((__builtin_expect(!!(tryResult1384
.isErr()), 0))) { auto tryTempError = tryResult1384.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18181, 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)); }}
18180#endif{auto tryResult1384 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1384)::ok_type>); if ((__builtin_expect(!!(tryResult1384
.isErr()), 0))) { auto tryTempError = tryResult1384.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18181, 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)); }}
18181 ){auto tryResult1384 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1384)::ok_type>); if ((__builtin_expect(!!(tryResult1384
.isErr()), 0))) { auto tryTempError = tryResult1384.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18181, 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)); }}
;
18182
18183 // mozStorage warns that these statements trigger a sort operation but we
18184 // don't care because this is a very rare call and we expect it to be slow.
18185 // The cost of having an index on this field is too high.
18186 QM_TRY_INSPECT(auto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18187 const auto& selectStmt,auto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18188 aConnection->BorrowCachedStatement(auto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18189 mUniqueauto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18190 ? (mIsLastIndexauto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18191 ? "/* do not warn (bug someone else) */ "auto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18192 "SELECT value, object_data_key "auto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18193 "FROM unique_index_data "auto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18194 "WHERE index_id = :"_ns +auto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18195 kStmtParamNameIndexId +auto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18196 " ORDER BY object_data_key ASC;"_nsauto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18197 : "/* do not warn (bug out) */ "auto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18198 "SELECT unique_index_data.value, "auto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18199 "unique_index_data.object_data_key, "auto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18200 "object_data.index_data_values "auto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18201 "FROM unique_index_data "auto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18202 "JOIN object_data "auto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18203 "ON unique_index_data.object_data_key = object_data.key "auto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18204 "WHERE unique_index_data.index_id = :"_ns +auto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18205 kStmtParamNameIndexId +auto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18206 " AND object_data.object_store_id = :"_ns +auto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18207 kStmtParamNameObjectStoreId +auto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18208 " ORDER BY unique_index_data.object_data_key ASC;"_ns)auto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18209 : (mIsLastIndexauto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18210 ? "/* do not warn (bug me not) */ "auto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18211 "SELECT value, object_data_key "auto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18212 "FROM index_data "auto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18213 "WHERE index_id = :"_ns +auto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18214 kStmtParamNameIndexId +auto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18215 " AND object_store_id = :"_ns +auto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18216 kStmtParamNameObjectStoreId +auto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18217 " ORDER BY object_data_key ASC;"_nsauto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18218 : "/* do not warn (bug off) */ "auto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18219 "SELECT index_data.value, "auto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18220 "index_data.object_data_key, "auto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18221 "object_data.index_data_values "auto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18222 "FROM index_data "auto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18223 "JOIN object_data "auto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18224 "ON index_data.object_data_key = object_data.key "auto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18225 "WHERE index_data.index_id = :"_ns +auto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18226 kStmtParamNameIndexId +auto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18227 " AND object_data.object_store_id = :"_ns +auto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18228 kStmtParamNameObjectStoreId +auto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
18229 " ORDER BY index_data.object_data_key ASC;"_ns)))auto tryResult1385 = (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
(!!(tryResult1385.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))"
, tryResult1385.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18229, mozilla::dom::quota::Severity::Error); return tryResult1385
.propagateErr(); } const auto& selectStmt = tryResult1385
.inspect();
;
18230
18231 QM_TRY(MOZ_TO_RESULT({auto tryResult1386 = (ToResult(selectStmt->BindInt64ByName
(kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect
(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(selectStmt->BindInt64ByName(kStmtParamNameIndexId, mIndexId))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18232, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}
18232 selectStmt->BindInt64ByName(kStmtParamNameIndexId, mIndexId))){auto tryResult1386 = (ToResult(selectStmt->BindInt64ByName
(kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v
<typename decltype(tryResult1386)::ok_type>); if ((__builtin_expect
(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(selectStmt->BindInt64ByName(kStmtParamNameIndexId, mIndexId))"
, tryResult1386.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18232, mozilla::dom::quota::Severity::Error); return tryResult1386
.propagateErr(); }}
;
18233
18234 if (!mUnique || !mIsLastIndex) {
18235 QM_TRY(MOZ_TO_RESULT(selectStmt->BindInt64ByName({auto tryResult1387 = (ToResult(selectStmt->BindInt64ByName
( kStmtParamNameObjectStoreId, mObjectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1387)::ok_type
>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt->BindInt64ByName( kStmtParamNameObjectStoreId, mObjectStoreId))"
, tryResult1387.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18236, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); }}
18236 kStmtParamNameObjectStoreId, mObjectStoreId))){auto tryResult1387 = (ToResult(selectStmt->BindInt64ByName
( kStmtParamNameObjectStoreId, mObjectStoreId))); static_assert
(std::is_empty_v<typename decltype(tryResult1387)::ok_type
>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt->BindInt64ByName( kStmtParamNameObjectStoreId, mObjectStoreId))"
, tryResult1387.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18236, mozilla::dom::quota::Severity::Error); return tryResult1387
.propagateErr(); }}
;
18237 }
18238
18239 Key lastObjectStoreKey;
18240 IndexDataValuesAutoArray lastIndexValues;
18241
18242 QM_TRY(CollectWhileHasResult({auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18243 *selectStmt,{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18244 [this, &aConnection, &lastObjectStoreKey, &lastIndexValues,{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18245 deleteIndexRowStmt ={auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18246 DatabaseConnection::LazyStatement{{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18247 *aConnection,{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18248 mUnique{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18249 ? "DELETE FROM unique_index_data "{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18250 "WHERE index_id = :"_ns +{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18251 kStmtParamNameIndexId + " AND value = :"_ns +{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18252 kStmtParamNameValue + ";"_ns{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18253 : "DELETE FROM index_data "{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18254 "WHERE index_id = :"_ns +{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18255 kStmtParamNameIndexId + " AND value = :"_ns +{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18256 kStmtParamNameValue + " AND object_data_key = :"_ns +{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18257 kStmtParamNameObjectDataKey + ";"_ns}]({auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18258 auto& selectStmt) mutable -> Result<Ok, nsresult> {{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18259 // We always need the index key to delete the index row.{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18260 Key indexKey;{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18261 QM_TRY(MOZ_TO_RESULT(indexKey.SetFromStatement(&selectStmt, 0)));{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18262
18263 QM_TRY(OkIf(!indexKey.IsUnset()), Err(NS_ERROR_FILE_CORRUPTED),{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18264 IDB_REPORT_INTERNAL_ERR_LAMBDA);{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18265
18266 // Don't call |lastObjectStoreKey.BindToStatement()| directly because we{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18267 // don't want to copy the same key multiple times.{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18268 const uint8_t* objectStoreKeyData;{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18269 uint32_t objectStoreKeyDataLength;{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18270 QM_TRY(MOZ_TO_RESULT(selectStmt.GetSharedBlob({auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18271 1, &objectStoreKeyDataLength, &objectStoreKeyData)));{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18272
18273 QM_TRY(OkIf(objectStoreKeyDataLength), Err(NS_ERROR_FILE_CORRUPTED),{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18274 IDB_REPORT_INTERNAL_ERR_LAMBDA);{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18275
18276 const nsDependentCString currentObjectStoreKeyBuffer({auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18277 reinterpret_cast<const char*>(objectStoreKeyData),{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18278 objectStoreKeyDataLength);{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18279 if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) {{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18280 // We just walked to the next object store key.{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18281 if (!lastObjectStoreKey.IsUnset()) {{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18282 // Before we move on to the next key we need to update the previous{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18283 // key's index_data_values column.{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18284 QM_TRY(MOZ_TO_RESULT(RemoveReferencesToIndex({auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18285 aConnection, lastObjectStoreKey, lastIndexValues)));{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18286 }{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18287
18288 // Save the object store key.{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18289 lastObjectStoreKey = Key(currentObjectStoreKeyBuffer);{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18290
18291 // And the |index_data_values| row if this isn't the only index.{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18292 if (!mIsLastIndex) {{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18293 lastIndexValues.ClearAndRetainStorage();{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18294 QM_TRY(MOZ_TO_RESULT({auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18295 ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues)));{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18296
18297 QM_TRY(OkIf(!lastIndexValues.IsEmpty()),{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18298 Err(NS_ERROR_FILE_CORRUPTED),{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18299 IDB_REPORT_INTERNAL_ERR_LAMBDA);{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18300 }{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18301 }{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18302
18303 // Now delete the index row.{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18304 {{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18305 QM_TRY_INSPECT(const auto& borrowedDeleteIndexRowStmt,{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18306 deleteIndexRowStmt.Borrow());{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18307
18308 QM_TRY(MOZ_TO_RESULT(borrowedDeleteIndexRowStmt->BindInt64ByName({auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18309 kStmtParamNameIndexId, mIndexId)));{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18310
18311 QM_TRY(MOZ_TO_RESULT(indexKey.BindToStatement({auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18312 &*borrowedDeleteIndexRowStmt, kStmtParamNameValue)));{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18313
18314 if (!mUnique) {{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18315 QM_TRY(MOZ_TO_RESULT(lastObjectStoreKey.BindToStatement({auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18316 &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey)));{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18317 }{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18318
18319 QM_TRY(MOZ_TO_RESULT(borrowedDeleteIndexRowStmt->Execute()));{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18320 }{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18321
18322 return Ok{};{auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
18323 })){auto tryResult1400 = (CollectWhileHasResult( *selectStmt, [this
, &aConnection, &lastObjectStoreKey, &lastIndexValues
, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection
, mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue
+ " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey
+ ";"_ns}]( auto& selectStmt) mutable -> Result<Ok
, nsresult> { Key indexKey; {auto tryResult1388 = (ToResult
(indexKey.SetFromStatement(&selectStmt, 0))); static_assert
(std::is_empty_v<typename decltype(tryResult1388)::ok_type
>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))"
, tryResult1388.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18261, mozilla::dom::quota::Severity::Error); return tryResult1388
.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset
())); 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(!indexKey.IsUnset())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18264, "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
tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &
objectStoreKeyDataLength, &objectStoreKeyData))); static_assert
(std::is_empty_v<typename decltype(tryResult1390)::ok_type
>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))"
, tryResult1390.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18271, mozilla::dom::quota::Severity::Error); return tryResult1390
.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength
)); static_assert(std::is_empty_v<typename decltype(tryResult1391
)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr
()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla
::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18274, "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 tryResult1392 = (ToResult(RemoveReferencesToIndex
( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert
(std::is_empty_v<typename decltype(tryResult1392)::ok_type
>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1392.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18285, mozilla::dom::quota::Severity::Error); return tryResult1392
.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer
); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage
(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues
(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect
(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))"
, tryResult1393.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18295, mozilla::dom::quota::Severity::Error); return tryResult1393
.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues
.IsEmpty())); static_assert(std::is_empty_v<typename decltype
(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394
.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18299, "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
tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect
(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError
("deleteIndexRowStmt.Borrow()", tryResult1395.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18306, mozilla::dom::quota::Severity::Error); return tryResult1395
.propagateErr(); } const auto& borrowedDeleteIndexRowStmt
= tryResult1395.inspect();; {auto tryResult1396 = (ToResult(
borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId
, mIndexId))); static_assert(std::is_empty_v<typename decltype
(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))"
, tryResult1396.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18309, mozilla::dom::quota::Severity::Error); return tryResult1396
.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey
.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue
))); static_assert(std::is_empty_v<typename decltype(tryResult1397
)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))"
, tryResult1397.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18312, mozilla::dom::quota::Severity::Error); return tryResult1397
.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult
(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt
, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect
(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))"
, tryResult1398.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18316, mozilla::dom::quota::Severity::Error); return tryResult1398
.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt
->Execute())); static_assert(std::is_empty_v<typename decltype
(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())"
, tryResult1399.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18319, mozilla::dom::quota::Severity::Error); return tryResult1399
.propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1400)::ok_type>); if ((__builtin_expect
(!!(tryResult1400.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 tryResult1388 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1388.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18261, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; {auto tryResult1389 = (OkIf(!indexKey.IsUnset())); 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(!indexKey.IsUnset())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18264, \"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 tryResult1390 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1390.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18271, mozilla::dom::quota::Severity::Error); return tryResult1390.propagateErr(); }}; {auto tryResult1391 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { auto tryTempError = tryResult1391.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18274, \"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 tryResult1392 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1392.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18285, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1393 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1393)::ok_type>); if ((__builtin_expect(!!(tryResult1393.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1393.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18295, mozilla::dom::quota::Severity::Error); return tryResult1393.propagateErr(); }}; {auto tryResult1394 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1394)::ok_type>); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { auto tryTempError = tryResult1394.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, mozilla::dom::quota::Severity::Error); [](const auto&) { mozilla::dom::indexedDB::ReportInternalError(\"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18299, \"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 tryResult1395 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1395.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18306, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1395.inspect();; {auto tryResult1396 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect(!!(tryResult1396.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1396.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18309, mozilla::dom::quota::Severity::Error); return tryResult1396.propagateErr(); }}; {auto tryResult1397 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1397.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18312, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; if (!mUnique) { {auto tryResult1398 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1398.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18316, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; } {auto tryResult1399 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1399)::ok_type>); if ((__builtin_expect(!!(tryResult1399.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1399.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18319, mozilla::dom::quota::Severity::Error); return tryResult1399.propagateErr(); }}; } return Ok{}; })"
, tryResult1400.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18323, mozilla::dom::quota::Severity::Error); return tryResult1400
.propagateErr(); }}
;
18324
18325 // Take care of the last key.
18326 if (!lastObjectStoreKey.IsUnset()) {
18327 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"
, 18327); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!lastIndexValues.IsEmpty()"
")"); do { *((volatile int*)__null) = 18327; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
18328
18329 QM_TRY(MOZ_TO_RESULT(RemoveReferencesToIndex({auto tryResult1401 = (ToResult(RemoveReferencesToIndex( aConnection
, lastObjectStoreKey, lastIndexValues))); static_assert(std::
is_empty_v<typename decltype(tryResult1401)::ok_type>);
if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1401.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18330, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}
18330 aConnection, lastObjectStoreKey, lastIndexValues))){auto tryResult1401 = (ToResult(RemoveReferencesToIndex( aConnection
, lastObjectStoreKey, lastIndexValues))); static_assert(std::
is_empty_v<typename decltype(tryResult1401)::ok_type>);
if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))"
, tryResult1401.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18330, mozilla::dom::quota::Severity::Error); return tryResult1401
.propagateErr(); }}
;
18331 }
18332
18333 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1403 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns
, [indexId = mIndexId](mozIStorageStatement& deleteStmt) ->
Result<Ok, nsresult> { {auto tryResult1402 = (ToResult
(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1402)::ok_type>
); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))"
, tryResult1402.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18338, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect
(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE id = :index_id;\"_ns, [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1402 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1402.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18338, mozilla::dom::quota::Severity::Error); return tryResult1402.propagateErr(); }}; return Ok{}; }))"
, tryResult1403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18341, mozilla::dom::quota::Severity::Error); return tryResult1403
.propagateErr(); }}
18334 "DELETE FROM object_store_index "{auto tryResult1403 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns
, [indexId = mIndexId](mozIStorageStatement& deleteStmt) ->
Result<Ok, nsresult> { {auto tryResult1402 = (ToResult
(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1402)::ok_type>
); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))"
, tryResult1402.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18338, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect
(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE id = :index_id;\"_ns, [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1402 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1402.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18338, mozilla::dom::quota::Severity::Error); return tryResult1402.propagateErr(); }}; return Ok{}; }))"
, tryResult1403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18341, mozilla::dom::quota::Severity::Error); return tryResult1403
.propagateErr(); }}
18335 "WHERE id = :index_id;"_ns,{auto tryResult1403 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns
, [indexId = mIndexId](mozIStorageStatement& deleteStmt) ->
Result<Ok, nsresult> { {auto tryResult1402 = (ToResult
(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1402)::ok_type>
); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))"
, tryResult1402.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18338, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect
(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE id = :index_id;\"_ns, [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1402 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1402.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18338, mozilla::dom::quota::Severity::Error); return tryResult1402.propagateErr(); }}; return Ok{}; }))"
, tryResult1403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18341, mozilla::dom::quota::Severity::Error); return tryResult1403
.propagateErr(); }}
18336 [indexId ={auto tryResult1403 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns
, [indexId = mIndexId](mozIStorageStatement& deleteStmt) ->
Result<Ok, nsresult> { {auto tryResult1402 = (ToResult
(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1402)::ok_type>
); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))"
, tryResult1402.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18338, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect
(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE id = :index_id;\"_ns, [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1402 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1402.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18338, mozilla::dom::quota::Severity::Error); return tryResult1402.propagateErr(); }}; return Ok{}; }))"
, tryResult1403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18341, mozilla::dom::quota::Severity::Error); return tryResult1403
.propagateErr(); }}
18337 mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> {{auto tryResult1403 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns
, [indexId = mIndexId](mozIStorageStatement& deleteStmt) ->
Result<Ok, nsresult> { {auto tryResult1402 = (ToResult
(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1402)::ok_type>
); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))"
, tryResult1402.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18338, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect
(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE id = :index_id;\"_ns, [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1402 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1402.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18338, mozilla::dom::quota::Severity::Error); return tryResult1402.propagateErr(); }}; return Ok{}; }))"
, tryResult1403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18341, mozilla::dom::quota::Severity::Error); return tryResult1403
.propagateErr(); }}
18338 QM_TRY(MOZ_TO_RESULT(deleteStmt.BindInt64ByIndex(0, indexId)));{auto tryResult1403 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns
, [indexId = mIndexId](mozIStorageStatement& deleteStmt) ->
Result<Ok, nsresult> { {auto tryResult1402 = (ToResult
(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1402)::ok_type>
); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))"
, tryResult1402.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18338, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect
(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE id = :index_id;\"_ns, [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1402 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1402.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18338, mozilla::dom::quota::Severity::Error); return tryResult1402.propagateErr(); }}; return Ok{}; }))"
, tryResult1403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18341, mozilla::dom::quota::Severity::Error); return tryResult1403
.propagateErr(); }}
18339
18340 return Ok{};{auto tryResult1403 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns
, [indexId = mIndexId](mozIStorageStatement& deleteStmt) ->
Result<Ok, nsresult> { {auto tryResult1402 = (ToResult
(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1402)::ok_type>
); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))"
, tryResult1402.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18338, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect
(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE id = :index_id;\"_ns, [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1402 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1402.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18338, mozilla::dom::quota::Severity::Error); return tryResult1402.propagateErr(); }}; return Ok{}; }))"
, tryResult1403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18341, mozilla::dom::quota::Severity::Error); return tryResult1403
.propagateErr(); }}
18341 }))){auto tryResult1403 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns
, [indexId = mIndexId](mozIStorageStatement& deleteStmt) ->
Result<Ok, nsresult> { {auto tryResult1402 = (ToResult
(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std
::is_empty_v<typename decltype(tryResult1402)::ok_type>
); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))"
, tryResult1402.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18338, mozilla::dom::quota::Severity::Error); return tryResult1402
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect
(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE id = :index_id;\"_ns, [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1402 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1402.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18338, mozilla::dom::quota::Severity::Error); return tryResult1402.propagateErr(); }}; return Ok{}; }))"
, tryResult1403.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18341, mozilla::dom::quota::Severity::Error); return tryResult1403
.propagateErr(); }}
;
18342
18343#ifdef DEBUG1
18344 {
18345 int32_t deletedRowCount;
18346 MOZ_ALWAYS_SUCCEEDS(aConnection->MutableStorageConnection().GetAffectedRows(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aConnection->MutableStorageConnection().GetAffectedRows( &
deletedRowCount))), 1)))), 1))) { } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18347); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))"
")"); do { *((volatile int*)__null) = 18347; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
18347 &deletedRowCount))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl
(aConnection->MutableStorageConnection().GetAffectedRows( &
deletedRowCount))), 1)))), 1))) { } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18347); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))"
")"); do { *((volatile int*)__null) = 18347; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
18348 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"
, 18348); AnnotateMozCrashReason("MOZ_ASSERT" "(" "deletedRowCount == 1"
")"); do { *((volatile int*)__null) = 18348; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18349 }
18350#endif
18351
18352 QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1404 = (ToResult(autoSave.Commit())); static_assert
(std::is_empty_v<typename decltype(tryResult1404)::ok_type
>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())"
, tryResult1404.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18352, mozilla::dom::quota::Severity::Error); return tryResult1404
.propagateErr(); }}
;
18353
18354 return NS_OK;
18355}
18356
18357nsresult RenameIndexOp::DoDatabaseWork(DatabaseConnection* aConnection) {
18358 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"
, 18358); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 18358; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18359 aConnection->AssertIsOnConnectionThread();
18360
18361 AUTO_PROFILER_LABEL("RenameIndexOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject18361( "RenameIndexOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
18362
18363#ifdef DEBUG1
18364 {
18365 // Make sure that we're not renaming an index with the same name as another
18366 // that already exists. This should be impossible because we should have
18367 // thrown an error long before now...
18368 // The parameter names are not used, parameters are bound by index only
18369 // locally in the same function.
18370 QM_TRY_INSPECT(const bool& hasResult,auto tryResult1408 = (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 tryResult1405
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1405
)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1405.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1406)::ok_type>); if ((__builtin_expect
(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1406
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1406
.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1407)::ok_type>); if ((__builtin_expect
(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1407
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1407
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1408.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 tryResult1405 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1407.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18389, 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 tryResult1405 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1407.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1407.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"
, 18389); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18389; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1408.inspect();
18371 aConnectionauto tryResult1408 = (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 tryResult1405
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1405
)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1405.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1406)::ok_type>); if ((__builtin_expect
(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1406
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1406
.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1407)::ok_type>); if ((__builtin_expect
(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1407
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1407
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1408.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 tryResult1405 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1407.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18389, 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 tryResult1405 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1407.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1407.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"
, 18389); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18389; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1408.inspect();
18372 ->BorrowAndExecuteSingleStepStatement(auto tryResult1408 = (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 tryResult1405
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1405
)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1405.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1406)::ok_type>); if ((__builtin_expect
(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1406
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1406
.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1407)::ok_type>); if ((__builtin_expect
(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1407
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1407
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1408.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 tryResult1405 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1407.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18389, 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 tryResult1405 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1407.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1407.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"
, 18389); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18389; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1408.inspect();
18373 "SELECT name "auto tryResult1408 = (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 tryResult1405
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1405
)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1405.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1406)::ok_type>); if ((__builtin_expect
(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1406
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1406
.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1407)::ok_type>); if ((__builtin_expect
(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1407
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1407
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1408.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 tryResult1405 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1407.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18389, 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 tryResult1405 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1407.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1407.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"
, 18389); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18389; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1408.inspect();
18374 "FROM object_store_index "auto tryResult1408 = (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 tryResult1405
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1405
)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1405.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1406)::ok_type>); if ((__builtin_expect
(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1406
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1406
.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1407)::ok_type>); if ((__builtin_expect
(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1407
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1407
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1408.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 tryResult1405 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1407.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18389, 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 tryResult1405 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1407.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1407.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"
, 18389); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18389; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1408.inspect();
18375 "WHERE object_store_id = :object_store_id "auto tryResult1408 = (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 tryResult1405
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1405
)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1405.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1406)::ok_type>); if ((__builtin_expect
(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1406
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1406
.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1407)::ok_type>); if ((__builtin_expect
(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1407
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1407
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1408.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 tryResult1405 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1407.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18389, 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 tryResult1405 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1407.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1407.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"
, 18389); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18389; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1408.inspect();
18376 "AND name = :name "auto tryResult1408 = (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 tryResult1405
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1405
)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1405.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1406)::ok_type>); if ((__builtin_expect
(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1406
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1406
.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1407)::ok_type>); if ((__builtin_expect
(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1407
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1407
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1408.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 tryResult1405 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1407.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18389, 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 tryResult1405 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1407.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1407.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"
, 18389); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18389; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1408.inspect();
18377 "AND id != :id;"_ns,auto tryResult1408 = (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 tryResult1405
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1405
)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1405.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1406)::ok_type>); if ((__builtin_expect
(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1406
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1406
.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1407)::ok_type>); if ((__builtin_expect
(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1407
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1407
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1408.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 tryResult1405 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1407.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18389, 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 tryResult1405 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1407.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1407.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"
, 18389); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18389; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1408.inspect();
18378 [&self = *this](auto& stmt) -> Result<Ok, nsresult> {auto tryResult1408 = (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 tryResult1405
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1405
)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1405.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1406)::ok_type>); if ((__builtin_expect
(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1406
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1406
.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1407)::ok_type>); if ((__builtin_expect
(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1407
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1407
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1408.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 tryResult1405 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1407.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18389, 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 tryResult1405 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1407.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1407.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"
, 18389); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18389; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1408.inspect();
18379 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(auto tryResult1408 = (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 tryResult1405
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1405
)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1405.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1406)::ok_type>); if ((__builtin_expect
(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1406
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1406
.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1407)::ok_type>); if ((__builtin_expect
(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1407
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1407
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1408.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 tryResult1405 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1407.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18389, 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 tryResult1405 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1407.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1407.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"
, 18389); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18389; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1408.inspect();
18380 0, self.mObjectStoreId)));auto tryResult1408 = (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 tryResult1405
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1405
)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1405.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1406)::ok_type>); if ((__builtin_expect
(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1406
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1406
.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1407)::ok_type>); if ((__builtin_expect
(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1407
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1407
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1408.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 tryResult1405 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1407.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18389, 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 tryResult1405 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1407.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1407.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"
, 18389); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18389; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1408.inspect();
18381 QM_TRY(MOZ_TO_RESULT(auto tryResult1408 = (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 tryResult1405
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1405
)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1405.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1406)::ok_type>); if ((__builtin_expect
(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1406
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1406
.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1407)::ok_type>); if ((__builtin_expect
(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1407
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1407
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1408.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 tryResult1405 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1407.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18389, 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 tryResult1405 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1407.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1407.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"
, 18389); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18389; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1408.inspect();
18382 stmt.BindStringByIndex(1, self.mNewName)));auto tryResult1408 = (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 tryResult1405
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1405
)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1405.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1406)::ok_type>); if ((__builtin_expect
(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1406
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1406
.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1407)::ok_type>); if ((__builtin_expect
(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1407
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1407
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1408.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 tryResult1405 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1407.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18389, 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 tryResult1405 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1407.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1407.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"
, 18389); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18389; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1408.inspect();
18383 QM_TRY(MOZ_TO_RESULT(auto tryResult1408 = (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 tryResult1405
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1405
)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1405.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1406)::ok_type>); if ((__builtin_expect
(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1406
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1406
.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1407)::ok_type>); if ((__builtin_expect
(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1407
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1407
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1408.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 tryResult1405 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1407.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18389, 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 tryResult1405 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1407.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1407.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"
, 18389); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18389; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1408.inspect();
18384 stmt.BindInt64ByIndex(2, self.mIndexId)));auto tryResult1408 = (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 tryResult1405
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1405
)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1405.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1406)::ok_type>); if ((__builtin_expect
(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1406
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1406
.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1407)::ok_type>); if ((__builtin_expect
(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1407
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1407
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1408.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 tryResult1405 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1407.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18389, 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 tryResult1405 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1407.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1407.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"
, 18389); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18389; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1408.inspect();
18385
18386 return Ok{};auto tryResult1408 = (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 tryResult1405
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1405
)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1405.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1406)::ok_type>); if ((__builtin_expect
(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1406
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1406
.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1407)::ok_type>); if ((__builtin_expect
(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1407
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1407
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1408.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 tryResult1405 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1407.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18389, 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 tryResult1405 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1407.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1407.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"
, 18389); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18389; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1408.inspect();
18387 })auto tryResult1408 = (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 tryResult1405
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1405
)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1405.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1406)::ok_type>); if ((__builtin_expect
(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1406
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1406
.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1407)::ok_type>); if ((__builtin_expect
(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1407
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1407
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1408.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 tryResult1405 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1407.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18389, 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 tryResult1405 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1407.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1407.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"
, 18389); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18389; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1408.inspect();
18388 .map(IsSome),auto tryResult1408 = (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 tryResult1405
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1405
)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1405.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1406)::ok_type>); if ((__builtin_expect
(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1406
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1406
.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1407)::ok_type>); if ((__builtin_expect
(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1407
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1407
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1408.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 tryResult1405 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1407.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18389, 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 tryResult1405 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1407.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1407.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"
, 18389); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18389; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1408.inspect();
18389 QM_ASSERT_UNREACHABLE)auto tryResult1408 = (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 tryResult1405
= (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId)))
; static_assert(std::is_empty_v<typename decltype(tryResult1405
)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))"
, tryResult1405.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18380, mozilla::dom::quota::Severity::Error); return tryResult1405
.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex
(1, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1406)::ok_type>); if ((__builtin_expect
(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1406
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18382, mozilla::dom::quota::Severity::Error); return tryResult1406
.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex
(2, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1407)::ok_type>); if ((__builtin_expect
(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1407
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18384, mozilla::dom::quota::Severity::Error); return tryResult1407
.propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect
(!!(tryResult1408.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1408.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 tryResult1405 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1407.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; return Ok{}; }) .map(IsSome)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18389, 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 tryResult1405 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1405.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18380, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1406.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18382, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1407.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18384, mozilla::dom::quota::Severity::Error); return tryResult1407.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"
, 18389); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18389; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasResult = tryResult1408.inspect();
;
18390
18391 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"
, 18391); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!hasResult"
")"); do { *((volatile int*)__null) = 18391; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18392 }
18393#else
18394 Unused << mObjectStoreId;
18395#endif
18396
18397 DatabaseConnection::AutoSavepoint autoSave;
18398 QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1409 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409
.isErr()), 0))) { auto tryTempError = tryResult1409.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18403, 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)); }}
18399#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1409 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409
.isErr()), 0))) { auto tryTempError = tryResult1409.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18403, 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)); }}
18400 ,{auto tryResult1409 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409
.isErr()), 0))) { auto tryTempError = tryResult1409.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18403, 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)); }}
18401 QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1409 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409
.isErr()), 0))) { auto tryTempError = tryResult1409.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18403, 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)); }}
18402#endif{auto tryResult1409 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409
.isErr()), 0))) { auto tryTempError = tryResult1409.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18403, 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)); }}
18403 ){auto tryResult1409 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1409)::ok_type>); if ((__builtin_expect(!!(tryResult1409
.isErr()), 0))) { auto tryTempError = tryResult1409.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18403, 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)); }}
;
18404
18405 // The parameter names are not used, parameters are bound by index only
18406 // locally in the same function.
18407 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1412 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1410 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1410)::ok_type>); if ((__builtin_expect
(!!(tryResult1410.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1410
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18412, mozilla::dom::quota::Severity::Error); return tryResult1410
.propagateErr(); }}; {auto tryResult1411 = (ToResult(stmt.BindInt64ByIndex
(1, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1411)::ok_type>); if ((__builtin_expect
(!!(tryResult1411.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1411
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18414, mozilla::dom::quota::Severity::Error); return tryResult1411
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1412)::ok_type>); if ((__builtin_expect
(!!(tryResult1412.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 tryResult1410 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1410)::ok_type>); if ((__builtin_expect(!!(tryResult1410.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1410.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18412, mozilla::dom::quota::Severity::Error); return tryResult1410.propagateErr(); }}; {auto tryResult1411 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1411)::ok_type>); if ((__builtin_expect(!!(tryResult1411.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1411.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18414, mozilla::dom::quota::Severity::Error); return tryResult1411.propagateErr(); }}; return Ok{}; }))"
, tryResult1412.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18417, mozilla::dom::quota::Severity::Error); return tryResult1412
.propagateErr(); }}
18408 "UPDATE object_store_index "{auto tryResult1412 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1410 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1410)::ok_type>); if ((__builtin_expect
(!!(tryResult1410.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1410
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18412, mozilla::dom::quota::Severity::Error); return tryResult1410
.propagateErr(); }}; {auto tryResult1411 = (ToResult(stmt.BindInt64ByIndex
(1, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1411)::ok_type>); if ((__builtin_expect
(!!(tryResult1411.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1411
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18414, mozilla::dom::quota::Severity::Error); return tryResult1411
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1412)::ok_type>); if ((__builtin_expect
(!!(tryResult1412.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 tryResult1410 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1410)::ok_type>); if ((__builtin_expect(!!(tryResult1410.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1410.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18412, mozilla::dom::quota::Severity::Error); return tryResult1410.propagateErr(); }}; {auto tryResult1411 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1411)::ok_type>); if ((__builtin_expect(!!(tryResult1411.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1411.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18414, mozilla::dom::quota::Severity::Error); return tryResult1411.propagateErr(); }}; return Ok{}; }))"
, tryResult1412.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18417, mozilla::dom::quota::Severity::Error); return tryResult1412
.propagateErr(); }}
18409 "SET name = :name "{auto tryResult1412 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1410 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1410)::ok_type>); if ((__builtin_expect
(!!(tryResult1410.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1410
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18412, mozilla::dom::quota::Severity::Error); return tryResult1410
.propagateErr(); }}; {auto tryResult1411 = (ToResult(stmt.BindInt64ByIndex
(1, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1411)::ok_type>); if ((__builtin_expect
(!!(tryResult1411.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1411
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18414, mozilla::dom::quota::Severity::Error); return tryResult1411
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1412)::ok_type>); if ((__builtin_expect
(!!(tryResult1412.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 tryResult1410 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1410)::ok_type>); if ((__builtin_expect(!!(tryResult1410.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1410.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18412, mozilla::dom::quota::Severity::Error); return tryResult1410.propagateErr(); }}; {auto tryResult1411 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1411)::ok_type>); if ((__builtin_expect(!!(tryResult1411.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1411.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18414, mozilla::dom::quota::Severity::Error); return tryResult1411.propagateErr(); }}; return Ok{}; }))"
, tryResult1412.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18417, mozilla::dom::quota::Severity::Error); return tryResult1412
.propagateErr(); }}
18410 "WHERE id = :id;"_ns,{auto tryResult1412 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1410 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1410)::ok_type>); if ((__builtin_expect
(!!(tryResult1410.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1410
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18412, mozilla::dom::quota::Severity::Error); return tryResult1410
.propagateErr(); }}; {auto tryResult1411 = (ToResult(stmt.BindInt64ByIndex
(1, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1411)::ok_type>); if ((__builtin_expect
(!!(tryResult1411.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1411
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18414, mozilla::dom::quota::Severity::Error); return tryResult1411
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1412)::ok_type>); if ((__builtin_expect
(!!(tryResult1412.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 tryResult1410 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1410)::ok_type>); if ((__builtin_expect(!!(tryResult1410.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1410.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18412, mozilla::dom::quota::Severity::Error); return tryResult1410.propagateErr(); }}; {auto tryResult1411 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1411)::ok_type>); if ((__builtin_expect(!!(tryResult1411.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1411.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18414, mozilla::dom::quota::Severity::Error); return tryResult1411.propagateErr(); }}; return Ok{}; }))"
, tryResult1412.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18417, mozilla::dom::quota::Severity::Error); return tryResult1412
.propagateErr(); }}
18411 [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> {{auto tryResult1412 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1410 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1410)::ok_type>); if ((__builtin_expect
(!!(tryResult1410.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1410
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18412, mozilla::dom::quota::Severity::Error); return tryResult1410
.propagateErr(); }}; {auto tryResult1411 = (ToResult(stmt.BindInt64ByIndex
(1, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1411)::ok_type>); if ((__builtin_expect
(!!(tryResult1411.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1411
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18414, mozilla::dom::quota::Severity::Error); return tryResult1411
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1412)::ok_type>); if ((__builtin_expect
(!!(tryResult1412.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 tryResult1410 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1410)::ok_type>); if ((__builtin_expect(!!(tryResult1410.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1410.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18412, mozilla::dom::quota::Severity::Error); return tryResult1410.propagateErr(); }}; {auto tryResult1411 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1411)::ok_type>); if ((__builtin_expect(!!(tryResult1411.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1411.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18414, mozilla::dom::quota::Severity::Error); return tryResult1411.propagateErr(); }}; return Ok{}; }))"
, tryResult1412.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18417, mozilla::dom::quota::Severity::Error); return tryResult1412
.propagateErr(); }}
18412 QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex(0, self.mNewName)));{auto tryResult1412 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1410 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1410)::ok_type>); if ((__builtin_expect
(!!(tryResult1410.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1410
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18412, mozilla::dom::quota::Severity::Error); return tryResult1410
.propagateErr(); }}; {auto tryResult1411 = (ToResult(stmt.BindInt64ByIndex
(1, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1411)::ok_type>); if ((__builtin_expect
(!!(tryResult1411.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1411
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18414, mozilla::dom::quota::Severity::Error); return tryResult1411
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1412)::ok_type>); if ((__builtin_expect
(!!(tryResult1412.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 tryResult1410 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1410)::ok_type>); if ((__builtin_expect(!!(tryResult1410.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1410.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18412, mozilla::dom::quota::Severity::Error); return tryResult1410.propagateErr(); }}; {auto tryResult1411 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1411)::ok_type>); if ((__builtin_expect(!!(tryResult1411.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1411.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18414, mozilla::dom::quota::Severity::Error); return tryResult1411.propagateErr(); }}; return Ok{}; }))"
, tryResult1412.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18417, mozilla::dom::quota::Severity::Error); return tryResult1412
.propagateErr(); }}
18413
18414 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(1, self.mIndexId)));{auto tryResult1412 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1410 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1410)::ok_type>); if ((__builtin_expect
(!!(tryResult1410.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1410
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18412, mozilla::dom::quota::Severity::Error); return tryResult1410
.propagateErr(); }}; {auto tryResult1411 = (ToResult(stmt.BindInt64ByIndex
(1, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1411)::ok_type>); if ((__builtin_expect
(!!(tryResult1411.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1411
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18414, mozilla::dom::quota::Severity::Error); return tryResult1411
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1412)::ok_type>); if ((__builtin_expect
(!!(tryResult1412.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 tryResult1410 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1410)::ok_type>); if ((__builtin_expect(!!(tryResult1410.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1410.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18412, mozilla::dom::quota::Severity::Error); return tryResult1410.propagateErr(); }}; {auto tryResult1411 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1411)::ok_type>); if ((__builtin_expect(!!(tryResult1411.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1411.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18414, mozilla::dom::quota::Severity::Error); return tryResult1411.propagateErr(); }}; return Ok{}; }))"
, tryResult1412.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18417, mozilla::dom::quota::Severity::Error); return tryResult1412
.propagateErr(); }}
18415
18416 return Ok{};{auto tryResult1412 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1410 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1410)::ok_type>); if ((__builtin_expect
(!!(tryResult1410.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1410
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18412, mozilla::dom::quota::Severity::Error); return tryResult1410
.propagateErr(); }}; {auto tryResult1411 = (ToResult(stmt.BindInt64ByIndex
(1, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1411)::ok_type>); if ((__builtin_expect
(!!(tryResult1411.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1411
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18414, mozilla::dom::quota::Severity::Error); return tryResult1411
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1412)::ok_type>); if ((__builtin_expect
(!!(tryResult1412.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 tryResult1410 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1410)::ok_type>); if ((__builtin_expect(!!(tryResult1410.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1410.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18412, mozilla::dom::quota::Severity::Error); return tryResult1410.propagateErr(); }}; {auto tryResult1411 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1411)::ok_type>); if ((__builtin_expect(!!(tryResult1411.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1411.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18414, mozilla::dom::quota::Severity::Error); return tryResult1411.propagateErr(); }}; return Ok{}; }))"
, tryResult1412.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18417, mozilla::dom::quota::Severity::Error); return tryResult1412
.propagateErr(); }}
18417 }))){auto tryResult1412 = (ToResult(aConnection->ExecuteCachedStatement
( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns
, [&self = *this](mozIStorageStatement& stmt) -> Result
<Ok, nsresult> { {auto tryResult1410 = (ToResult(stmt.BindStringByIndex
(0, self.mNewName))); static_assert(std::is_empty_v<typename
decltype(tryResult1410)::ok_type>); if ((__builtin_expect
(!!(tryResult1410.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1410
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18412, mozilla::dom::quota::Severity::Error); return tryResult1410
.propagateErr(); }}; {auto tryResult1411 = (ToResult(stmt.BindInt64ByIndex
(1, self.mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1411)::ok_type>); if ((__builtin_expect
(!!(tryResult1411.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1411
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18414, mozilla::dom::quota::Severity::Error); return tryResult1411
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1412)::ok_type>); if ((__builtin_expect
(!!(tryResult1412.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 tryResult1410 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1410)::ok_type>); if ((__builtin_expect(!!(tryResult1410.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1410.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18412, mozilla::dom::quota::Severity::Error); return tryResult1410.propagateErr(); }}; {auto tryResult1411 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1411)::ok_type>); if ((__builtin_expect(!!(tryResult1411.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1411.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18414, mozilla::dom::quota::Severity::Error); return tryResult1411.propagateErr(); }}; return Ok{}; }))"
, tryResult1412.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18417, mozilla::dom::quota::Severity::Error); return tryResult1412
.propagateErr(); }}
;
18418
18419 QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1413 = (ToResult(autoSave.Commit())); static_assert
(std::is_empty_v<typename decltype(tryResult1413)::ok_type
>); if ((__builtin_expect(!!(tryResult1413.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())"
, tryResult1413.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18419, mozilla::dom::quota::Severity::Error); return tryResult1413
.propagateErr(); }}
;
18420
18421 return NS_OK;
18422}
18423
18424Result<bool, nsresult> NormalTransactionOp::ObjectStoreHasIndexes(
18425 DatabaseConnection& aConnection, const IndexOrObjectStoreId aObjectStoreId,
18426 const bool aMayHaveIndexes) {
18427 aConnection.AssertIsOnConnectionThread();
18428 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"
, 18428); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aObjectStoreId"
")"); do { *((volatile int*)__null) = 18428; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18429
18430 if (Transaction().GetMode() == IDBTransaction::Mode::VersionChange &&
18431 aMayHaveIndexes) {
18432 // If this is a version change transaction then mObjectStoreMayHaveIndexes
18433 // could be wrong (e.g. if a unique index failed to be created due to a
18434 // constraint error). We have to check on this thread by asking the database
18435 // directly.
18436 QM_TRY_RETURN(DatabaseOperationBase::ObjectStoreHasIndexes(aConnection,{auto tryResult1414 = (DatabaseOperationBase::ObjectStoreHasIndexes
(aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult1414
.isErr()), 0))) { mozilla::dom::quota::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)"
, tryResult1414.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18437, mozilla::dom::quota::Severity::Error); } return tryResult1414
;}
18437 aObjectStoreId)){auto tryResult1414 = (DatabaseOperationBase::ObjectStoreHasIndexes
(aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult1414
.isErr()), 0))) { mozilla::dom::quota::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)"
, tryResult1414.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18437, mozilla::dom::quota::Severity::Error); } return tryResult1414
;}
;
18438 }
18439
18440#ifdef DEBUG1
18441 QM_TRY_INSPECT(auto tryResult1415 = (DatabaseOperationBase::ObjectStoreHasIndexes
(aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult1415
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1415.unwrapErr(); mozilla::dom::quota::HandleError
("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18444, 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"
, 18444); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18444; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasIndexes = tryResult1415.inspect();
18442 const bool& hasIndexes,auto tryResult1415 = (DatabaseOperationBase::ObjectStoreHasIndexes
(aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult1415
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1415.unwrapErr(); mozilla::dom::quota::HandleError
("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18444, 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"
, 18444); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18444; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasIndexes = tryResult1415.inspect();
18443 DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId),auto tryResult1415 = (DatabaseOperationBase::ObjectStoreHasIndexes
(aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult1415
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1415.unwrapErr(); mozilla::dom::quota::HandleError
("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18444, 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"
, 18444); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18444; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasIndexes = tryResult1415.inspect();
18444 QM_ASSERT_UNREACHABLE)auto tryResult1415 = (DatabaseOperationBase::ObjectStoreHasIndexes
(aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult1415
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1415.unwrapErr(); mozilla::dom::quota::HandleError
("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18444, 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"
, 18444); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18444; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasIndexes = tryResult1415.inspect();
;
18445 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"
, 18445); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMayHaveIndexes == hasIndexes"
")"); do { *((volatile int*)__null) = 18445; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18446#endif
18447
18448 return aMayHaveIndexes;
18449}
18450
18451Result<PreprocessParams, nsresult> NormalTransactionOp::GetPreprocessParams() {
18452 return PreprocessParams{};
18453}
18454
18455nsresult NormalTransactionOp::SendPreprocessInfo() {
18456 AssertIsOnOwningThread();
18457 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"
, 18457); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()"
")"); do { *((volatile int*)__null) = 18457; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18458
18459 QM_TRY_INSPECT(const auto& params, GetPreprocessParams())auto tryResult1416 = (GetPreprocessParams()); if ((__builtin_expect
(!!(tryResult1416.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetPreprocessParams()", tryResult1416.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18459, mozilla::dom::quota::Severity::Error); return tryResult1416
.propagateErr(); } const auto& params = tryResult1416.inspect
();
;
18460
18461 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"
, 18461); AnnotateMozCrashReason("MOZ_ASSERT" "(" "params.type() != PreprocessParams::T__None"
")"); do { *((volatile int*)__null) = 18461; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18462
18463 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"
, 18463)
) {
18464 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18464, "UnknownErr")
;
18465 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
18466 }
18467
18468 return NS_OK;
18469}
18470
18471nsresult NormalTransactionOp::SendSuccessResult() {
18472 AssertIsOnOwningThread();
18473
18474 if (!IsActorDestroyed()) {
18475 static const size_t kMaxIDBMsgOverhead = 1024 * 1024 * 10; // 10MB
18476 const uint32_t maximalSizeFromPref =
18477 IndexedDatabaseManager::MaxSerializedMsgSize();
18478 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"
, 18478); AnnotateMozCrashReason("MOZ_ASSERT" "(" "maximalSizeFromPref > kMaxIDBMsgOverhead"
")"); do { *((volatile int*)__null) = 18478; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18479 const size_t kMaxMessageSize = maximalSizeFromPref - kMaxIDBMsgOverhead;
18480
18481 RequestResponse response;
18482 size_t responseSize = kMaxMessageSize;
18483 GetResponse(response, &responseSize);
18484
18485 if (responseSize >= kMaxMessageSize) {
18486 nsPrintfCString warning(
18487 "The serialized value is too large"
18488 " (size=%zu bytes, max=%zu bytes).",
18489 responseSize, kMaxMessageSize);
18490 NS_WARNING(warning.get())NS_DebugBreak(NS_DEBUG_WARNING, warning.get(), nullptr, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18490)
;
18491 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
18492 }
18493
18494 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"
, 18494); AnnotateMozCrashReason("MOZ_ASSERT" "(" "response.type() != RequestResponse::T__None"
")"); do { *((volatile int*)__null) = 18494; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18495
18496 if (response.type() == RequestResponse::Tnsresult) {
18497 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"
, 18497); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(response.get_nsresult())), 0)))"
")"); do { *((volatile int*)__null) = 18497; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18498
18499 return response.get_nsresult();
18500 }
18501
18502 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"
, 18503)
18503 !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"
, 18503)
) {
18504 IDB_REPORT_INTERNAL_ERR()mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18504, "UnknownErr")
;
18505 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;
18506 }
18507 }
18508
18509#ifdef DEBUG1
18510 mResponseSent = true;
18511#endif
18512
18513 return NS_OK;
18514}
18515
18516bool NormalTransactionOp::SendFailureResult(nsresult aResultCode) {
18517 AssertIsOnOwningThread();
18518 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"
, 18518); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aResultCode)), 0)))"
")"); do { *((volatile int*)__null) = 18518; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18519
18520 bool result = false;
18521
18522 if (!IsActorDestroyed()) {
18523 result = PBackgroundIDBRequestParent::Send__delete__(
18524 this, ClampResultCode(aResultCode));
18525 }
18526
18527#ifdef DEBUG1
18528 mResponseSent = true;
18529#endif
18530
18531 return result;
18532}
18533
18534void NormalTransactionOp::Cleanup() {
18535 AssertIsOnOwningThread();
18536 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"
, 18536); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponseSent"
")"); do { *((volatile int*)__null) = 18536; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
18537
18538 TransactionDatabaseOperationBase::Cleanup();
18539}
18540
18541void NormalTransactionOp::ActorDestroy(ActorDestroyReason aWhy) {
18542 AssertIsOnOwningThread();
18543
18544 NoteActorDestroyed();
18545
18546 // Assume ActorDestroy can happen at any time, so we can't probe the current
18547 // state since mInternalState can be modified on any thread (only one thread
18548 // at a time based on the state machine).
18549 // However we can use mWaitingForContinue which is only touched on the owning
18550 // thread. If mWaitingForContinue is true, we can also modify mInternalState
18551 // since we are guaranteed that there are no pending runnables which would
18552 // probe mInternalState to decide what code needs to run (there shouldn't be
18553 // any running runnables on other threads either).
18554
18555 if (IsWaitingForContinue()) {
18556 NoteContinueReceived();
18557 }
18558
18559 // We don't have to handle the case when mWaitingForContinue is not true since
18560 // it means that either nothing has been initialized yet, so nothing to
18561 // cleanup or there are pending runnables that will detect that the actor has
18562 // been destroyed and cleanup accordingly.
18563}
18564
18565mozilla::ipc::IPCResult NormalTransactionOp::RecvContinue(
18566 const PreprocessResponse& aResponse) {
18567 AssertIsOnOwningThread();
18568
18569 switch (aResponse.type()) {
18570 case PreprocessResponse::Tnsresult:
18571 SetFailureCode(aResponse.get_nsresult());
18572 break;
18573
18574 case PreprocessResponse::TObjectStoreGetPreprocessResponse:
18575 case PreprocessResponse::TObjectStoreGetAllPreprocessResponse:
18576 break;
18577
18578 default:
18579 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"
, 18579); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18579; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
18580 }
18581
18582 NoteContinueReceived();
18583
18584 return IPC_OK()mozilla::ipc::IPCResult::Ok();
18585}
18586
18587ObjectStoreAddOrPutRequestOp::ObjectStoreAddOrPutRequestOp(
18588 SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId,
18589 RequestParams&& aParams)
18590 : NormalTransactionOp(std::move(aTransaction), aRequestId),
18591 mParams(
18592 std::move(aParams.type() == RequestParams::TObjectStoreAddParams
18593 ? aParams.get_ObjectStoreAddParams().commonParams()
18594 : aParams.get_ObjectStorePutParams().commonParams())),
18595 mOriginMetadata(Transaction().GetDatabase().OriginMetadata()),
18596 mPersistenceType(Transaction().GetDatabase().Type()),
18597 mOverwrite(aParams.type() == RequestParams::TObjectStorePutParams),
18598 mObjectStoreMayHaveIndexes(false) {
18599 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"
, 18600); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreAddParams || aParams.type() == RequestParams::TObjectStorePutParams"
")"); do { *((volatile int*)__null) = 18600; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
18600 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"
, 18600); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreAddParams || aParams.type() == RequestParams::TObjectStorePutParams"
")"); do { *((volatile int*)__null) = 18600; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18601
18602 mMetadata =
18603 Transaction().GetMetadataForObjectStoreId(mParams.objectStoreId());
18604 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"
, 18604); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata"
")"); do { *((volatile int*)__null) = 18604; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18605
18606 mObjectStoreMayHaveIndexes = mMetadata->HasLiveIndexes();
18607
18608 mDataOverThreshold =
18609 snappy::MaxCompressedLength(mParams.cloneInfo().data().data.Size()) >
18610 IndexedDatabaseManager::DataThreshold();
18611}
18612
18613nsresult ObjectStoreAddOrPutRequestOp::RemoveOldIndexDataValues(
18614 DatabaseConnection* aConnection) {
18615 AssertIsOnConnectionThread();
18616 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"
, 18616); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 18616; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18617 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"
, 18617); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOverwrite"
")"); do { *((volatile int*)__null) = 18617; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18618 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"
, 18618); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mResponse.IsUnset()"
")"); do { *((volatile int*)__null) = 18618; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18619
18620#ifdef DEBUG1
18621 {
18622 QM_TRY_INSPECT(const bool& hasIndexes,auto tryResult1417 = (DatabaseOperationBase::ObjectStoreHasIndexes
( *aConnection, mParams.objectStoreId())); if ((__builtin_expect
(!!(tryResult1417.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1417.unwrapErr(); mozilla::dom::quota
::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18625, 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"
, 18625); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18625; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasIndexes = tryResult1417.inspect();
18623 DatabaseOperationBase::ObjectStoreHasIndexes(auto tryResult1417 = (DatabaseOperationBase::ObjectStoreHasIndexes
( *aConnection, mParams.objectStoreId())); if ((__builtin_expect
(!!(tryResult1417.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1417.unwrapErr(); mozilla::dom::quota
::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18625, 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"
, 18625); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18625; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasIndexes = tryResult1417.inspect();
18624 *aConnection, mParams.objectStoreId()),auto tryResult1417 = (DatabaseOperationBase::ObjectStoreHasIndexes
( *aConnection, mParams.objectStoreId())); if ((__builtin_expect
(!!(tryResult1417.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1417.unwrapErr(); mozilla::dom::quota
::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18625, 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"
, 18625); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18625; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasIndexes = tryResult1417.inspect();
18625 QM_ASSERT_UNREACHABLE)auto tryResult1417 = (DatabaseOperationBase::ObjectStoreHasIndexes
( *aConnection, mParams.objectStoreId())); if ((__builtin_expect
(!!(tryResult1417.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1417.unwrapErr(); mozilla::dom::quota
::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18625, 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"
, 18625); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached."
")"); do { *((volatile int*)__null) = 18625; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); }); } const
bool& hasIndexes = tryResult1417.inspect();
;
18626
18627 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"
, 18628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "hasIndexes"
") (" "Don't use this slow method if there are no indexes!" ")"
); do { *((volatile int*)__null) = 18628; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
18628 "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"
, 18628); AnnotateMozCrashReason("MOZ_ASSERT" "(" "hasIndexes"
") (" "Don't use this slow method if there are no indexes!" ")"
); do { *((volatile int*)__null) = 18628; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
18629 }
18630#endif
18631
18632 QM_TRY_INSPECT(auto tryResult1420 = (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 tryResult1418 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1418)::ok_type>); if ((__builtin_expect
(!!(tryResult1418.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1418.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18642, mozilla::dom::quota::Severity::Error); return tryResult1418
.propagateErr(); }}; {auto tryResult1419 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1419)::ok_type
>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18645, mozilla::dom::quota::Severity::Error); return tryResult1419
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1420.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 tryResult1418 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1418.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18642, mozilla::dom::quota::Severity::Error); return tryResult1418.propagateErr(); }}; {auto tryResult1419 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1419.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18645, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; return Ok{}; })"
, tryResult1420.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18648, mozilla::dom::quota::Severity::Error); return tryResult1420
.propagateErr(); } const auto& indexValuesStmt = tryResult1420
.inspect();
18633 const auto& indexValuesStmt,auto tryResult1420 = (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 tryResult1418 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1418)::ok_type>); if ((__builtin_expect
(!!(tryResult1418.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1418.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18642, mozilla::dom::quota::Severity::Error); return tryResult1418
.propagateErr(); }}; {auto tryResult1419 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1419)::ok_type
>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18645, mozilla::dom::quota::Severity::Error); return tryResult1419
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1420.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 tryResult1418 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1418.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18642, mozilla::dom::quota::Severity::Error); return tryResult1418.propagateErr(); }}; {auto tryResult1419 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1419.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18645, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; return Ok{}; })"
, tryResult1420.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18648, mozilla::dom::quota::Severity::Error); return tryResult1420
.propagateErr(); } const auto& indexValuesStmt = tryResult1420
.inspect();
18634 aConnection->BorrowAndExecuteSingleStepStatement(auto tryResult1420 = (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 tryResult1418 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1418)::ok_type>); if ((__builtin_expect
(!!(tryResult1418.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1418.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18642, mozilla::dom::quota::Severity::Error); return tryResult1418
.propagateErr(); }}; {auto tryResult1419 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1419)::ok_type
>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18645, mozilla::dom::quota::Severity::Error); return tryResult1419
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1420.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 tryResult1418 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1418.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18642, mozilla::dom::quota::Severity::Error); return tryResult1418.propagateErr(); }}; {auto tryResult1419 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1419.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18645, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; return Ok{}; })"
, tryResult1420.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18648, mozilla::dom::quota::Severity::Error); return tryResult1420
.propagateErr(); } const auto& indexValuesStmt = tryResult1420
.inspect();
18635 "SELECT index_data_values "auto tryResult1420 = (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 tryResult1418 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1418)::ok_type>); if ((__builtin_expect
(!!(tryResult1418.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1418.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18642, mozilla::dom::quota::Severity::Error); return tryResult1418
.propagateErr(); }}; {auto tryResult1419 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1419)::ok_type
>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18645, mozilla::dom::quota::Severity::Error); return tryResult1419
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1420.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 tryResult1418 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1418.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18642, mozilla::dom::quota::Severity::Error); return tryResult1418.propagateErr(); }}; {auto tryResult1419 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1419.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18645, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; return Ok{}; })"
, tryResult1420.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18648, mozilla::dom::quota::Severity::Error); return tryResult1420
.propagateErr(); } const auto& indexValuesStmt = tryResult1420
.inspect();
18636 "FROM object_data "auto tryResult1420 = (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 tryResult1418 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1418)::ok_type>); if ((__builtin_expect
(!!(tryResult1418.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1418.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18642, mozilla::dom::quota::Severity::Error); return tryResult1418
.propagateErr(); }}; {auto tryResult1419 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1419)::ok_type
>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18645, mozilla::dom::quota::Severity::Error); return tryResult1419
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1420.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 tryResult1418 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1418.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18642, mozilla::dom::quota::Severity::Error); return tryResult1418.propagateErr(); }}; {auto tryResult1419 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1419.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18645, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; return Ok{}; })"
, tryResult1420.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18648, mozilla::dom::quota::Severity::Error); return tryResult1420
.propagateErr(); } const auto& indexValuesStmt = tryResult1420
.inspect();
18637 "WHERE object_store_id = :"_ns +auto tryResult1420 = (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 tryResult1418 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1418)::ok_type>); if ((__builtin_expect
(!!(tryResult1418.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1418.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18642, mozilla::dom::quota::Severity::Error); return tryResult1418
.propagateErr(); }}; {auto tryResult1419 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1419)::ok_type
>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18645, mozilla::dom::quota::Severity::Error); return tryResult1419
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1420.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 tryResult1418 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1418.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18642, mozilla::dom::quota::Severity::Error); return tryResult1418.propagateErr(); }}; {auto tryResult1419 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1419.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18645, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; return Ok{}; })"
, tryResult1420.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18648, mozilla::dom::quota::Severity::Error); return tryResult1420
.propagateErr(); } const auto& indexValuesStmt = tryResult1420
.inspect();
18638 kStmtParamNameObjectStoreId + " AND key = :"_ns +auto tryResult1420 = (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 tryResult1418 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1418)::ok_type>); if ((__builtin_expect
(!!(tryResult1418.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1418.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18642, mozilla::dom::quota::Severity::Error); return tryResult1418
.propagateErr(); }}; {auto tryResult1419 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1419)::ok_type
>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18645, mozilla::dom::quota::Severity::Error); return tryResult1419
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1420.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 tryResult1418 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1418.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18642, mozilla::dom::quota::Severity::Error); return tryResult1418.propagateErr(); }}; {auto tryResult1419 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1419.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18645, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; return Ok{}; })"
, tryResult1420.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18648, mozilla::dom::quota::Severity::Error); return tryResult1420
.propagateErr(); } const auto& indexValuesStmt = tryResult1420
.inspect();
18639 kStmtParamNameKey + ";"_ns,auto tryResult1420 = (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 tryResult1418 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1418)::ok_type>); if ((__builtin_expect
(!!(tryResult1418.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1418.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18642, mozilla::dom::quota::Severity::Error); return tryResult1418
.propagateErr(); }}; {auto tryResult1419 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1419)::ok_type
>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18645, mozilla::dom::quota::Severity::Error); return tryResult1419
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1420.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 tryResult1418 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1418.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18642, mozilla::dom::quota::Severity::Error); return tryResult1418.propagateErr(); }}; {auto tryResult1419 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1419.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18645, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; return Ok{}; })"
, tryResult1420.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18648, mozilla::dom::quota::Severity::Error); return tryResult1420
.propagateErr(); } const auto& indexValuesStmt = tryResult1420
.inspect();
18640 [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> {auto tryResult1420 = (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 tryResult1418 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1418)::ok_type>); if ((__builtin_expect
(!!(tryResult1418.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1418.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18642, mozilla::dom::quota::Severity::Error); return tryResult1418
.propagateErr(); }}; {auto tryResult1419 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1419)::ok_type
>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18645, mozilla::dom::quota::Severity::Error); return tryResult1419
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1420.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 tryResult1418 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1418.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18642, mozilla::dom::quota::Severity::Error); return tryResult1418.propagateErr(); }}; {auto tryResult1419 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1419.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18645, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; return Ok{}; })"
, tryResult1420.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18648, mozilla::dom::quota::Severity::Error); return tryResult1420
.propagateErr(); } const auto& indexValuesStmt = tryResult1420
.inspect();
18641 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByName(auto tryResult1420 = (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 tryResult1418 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1418)::ok_type>); if ((__builtin_expect
(!!(tryResult1418.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1418.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18642, mozilla::dom::quota::Severity::Error); return tryResult1418
.propagateErr(); }}; {auto tryResult1419 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1419)::ok_type
>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18645, mozilla::dom::quota::Severity::Error); return tryResult1419
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1420.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 tryResult1418 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1418.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18642, mozilla::dom::quota::Severity::Error); return tryResult1418.propagateErr(); }}; {auto tryResult1419 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1419.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18645, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; return Ok{}; })"
, tryResult1420.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18648, mozilla::dom::quota::Severity::Error); return tryResult1420
.propagateErr(); } const auto& indexValuesStmt = tryResult1420
.inspect();
18642 kStmtParamNameObjectStoreId, self.mParams.objectStoreId())));auto tryResult1420 = (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 tryResult1418 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1418)::ok_type>); if ((__builtin_expect
(!!(tryResult1418.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1418.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18642, mozilla::dom::quota::Severity::Error); return tryResult1418
.propagateErr(); }}; {auto tryResult1419 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1419)::ok_type
>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18645, mozilla::dom::quota::Severity::Error); return tryResult1419
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1420.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 tryResult1418 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1418.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18642, mozilla::dom::quota::Severity::Error); return tryResult1418.propagateErr(); }}; {auto tryResult1419 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1419.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18645, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; return Ok{}; })"
, tryResult1420.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18648, mozilla::dom::quota::Severity::Error); return tryResult1420
.propagateErr(); } const auto& indexValuesStmt = tryResult1420
.inspect();
18643
18644 QM_TRY(MOZ_TO_RESULT(auto tryResult1420 = (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 tryResult1418 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1418)::ok_type>); if ((__builtin_expect
(!!(tryResult1418.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1418.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18642, mozilla::dom::quota::Severity::Error); return tryResult1418
.propagateErr(); }}; {auto tryResult1419 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1419)::ok_type
>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18645, mozilla::dom::quota::Severity::Error); return tryResult1419
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1420.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 tryResult1418 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1418.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18642, mozilla::dom::quota::Severity::Error); return tryResult1418.propagateErr(); }}; {auto tryResult1419 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1419.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18645, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; return Ok{}; })"
, tryResult1420.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18648, mozilla::dom::quota::Severity::Error); return tryResult1420
.propagateErr(); } const auto& indexValuesStmt = tryResult1420
.inspect();
18645 self.mResponse.BindToStatement(&stmt, kStmtParamNameKey)));auto tryResult1420 = (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 tryResult1418 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1418)::ok_type>); if ((__builtin_expect
(!!(tryResult1418.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1418.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18642, mozilla::dom::quota::Severity::Error); return tryResult1418
.propagateErr(); }}; {auto tryResult1419 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1419)::ok_type
>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18645, mozilla::dom::quota::Severity::Error); return tryResult1419
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1420.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 tryResult1418 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1418.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18642, mozilla::dom::quota::Severity::Error); return tryResult1418.propagateErr(); }}; {auto tryResult1419 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1419.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18645, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; return Ok{}; })"
, tryResult1420.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18648, mozilla::dom::quota::Severity::Error); return tryResult1420
.propagateErr(); } const auto& indexValuesStmt = tryResult1420
.inspect();
18646
18647 return Ok{};auto tryResult1420 = (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 tryResult1418 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1418)::ok_type>); if ((__builtin_expect
(!!(tryResult1418.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1418.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18642, mozilla::dom::quota::Severity::Error); return tryResult1418
.propagateErr(); }}; {auto tryResult1419 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1419)::ok_type
>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18645, mozilla::dom::quota::Severity::Error); return tryResult1419
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1420.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 tryResult1418 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1418.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18642, mozilla::dom::quota::Severity::Error); return tryResult1418.propagateErr(); }}; {auto tryResult1419 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1419.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18645, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; return Ok{}; })"
, tryResult1420.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18648, mozilla::dom::quota::Severity::Error); return tryResult1420
.propagateErr(); } const auto& indexValuesStmt = tryResult1420
.inspect();
18648 }))auto tryResult1420 = (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 tryResult1418 = (ToResult(
stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams
.objectStoreId()))); static_assert(std::is_empty_v<typename
decltype(tryResult1418)::ok_type>); if ((__builtin_expect
(!!(tryResult1418.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))"
, tryResult1418.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18642, mozilla::dom::quota::Severity::Error); return tryResult1418
.propagateErr(); }}; {auto tryResult1419 = (ToResult(self.mResponse
.BindToStatement(&stmt, kStmtParamNameKey))); static_assert
(std::is_empty_v<typename decltype(tryResult1419)::ok_type
>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))"
, tryResult1419.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18645, mozilla::dom::quota::Severity::Error); return tryResult1419
.propagateErr(); }}; return Ok{}; })); if ((__builtin_expect(
!!(tryResult1420.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 tryResult1418 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1418)::ok_type>); if ((__builtin_expect(!!(tryResult1418.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1418.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18642, mozilla::dom::quota::Severity::Error); return tryResult1418.propagateErr(); }}; {auto tryResult1419 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1419)::ok_type>); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1419.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 18645, mozilla::dom::quota::Severity::Error); return tryResult1419.propagateErr(); }}; return Ok{}; })"
, tryResult1420.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18648, mozilla::dom::quota::Severity::Error); return tryResult1420
.propagateErr(); } const auto& indexValuesStmt = tryResult1420
.inspect();
;
18649
18650 if (indexValuesStmt) {
18651 QM_TRY_INSPECT(const auto& existingIndexValues,auto tryResult1421 = (ReadCompressedIndexDataValues(**indexValuesStmt
, 0)); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) {
mozilla::dom::quota::HandleError("ReadCompressedIndexDataValues(**indexValuesStmt, 0)"
, tryResult1421.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18652, mozilla::dom::quota::Severity::Error); return tryResult1421
.propagateErr(); } const auto& existingIndexValues = tryResult1421
.inspect();
18652 ReadCompressedIndexDataValues(**indexValuesStmt, 0))auto tryResult1421 = (ReadCompressedIndexDataValues(**indexValuesStmt
, 0)); if ((__builtin_expect(!!(tryResult1421.isErr()), 0))) {
mozilla::dom::quota::HandleError("ReadCompressedIndexDataValues(**indexValuesStmt, 0)"
, tryResult1421.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18652, mozilla::dom::quota::Severity::Error); return tryResult1421
.propagateErr(); } const auto& existingIndexValues = tryResult1421
.inspect();
;
18653
18654 QM_TRY(MOZ_TO_RESULT({auto tryResult1422 = (ToResult(DeleteIndexDataTableRows(aConnection
, mResponse, existingIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1422)::ok_type>); if ((__builtin_expect
(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteIndexDataTableRows(aConnection, mResponse, existingIndexValues))"
, tryResult1422.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18655, mozilla::dom::quota::Severity::Error); return tryResult1422
.propagateErr(); }}
18655 DeleteIndexDataTableRows(aConnection, mResponse, existingIndexValues))){auto tryResult1422 = (ToResult(DeleteIndexDataTableRows(aConnection
, mResponse, existingIndexValues))); static_assert(std::is_empty_v
<typename decltype(tryResult1422)::ok_type>); if ((__builtin_expect
(!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(DeleteIndexDataTableRows(aConnection, mResponse, existingIndexValues))"
, tryResult1422.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18655, mozilla::dom::quota::Severity::Error); return tryResult1422
.propagateErr(); }}
;
18656 }
18657
18658 return NS_OK;
18659}
18660
18661bool ObjectStoreAddOrPutRequestOp::Init(TransactionBase& aTransaction) {
18662 AssertIsOnOwningThread();
18663
18664 const nsTArray<IndexUpdateInfo>& indexUpdateInfos =
18665 mParams.indexUpdateInfos();
18666
18667 if (!indexUpdateInfos.IsEmpty()) {
18668 mUniqueIndexTable.emplace();
18669
18670 for (const auto& updateInfo : indexUpdateInfos) {
18671 auto indexMetadata = mMetadata->mIndexes.Lookup(updateInfo.indexId());
18672 MOZ_ALWAYS_TRUE(indexMetadata)do { if ((__builtin_expect(!!(indexMetadata), 1))) { } else {
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"
, 18672); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "indexMetadata" ")"); do { *((volatile int*)__null) = 18672
; __attribute__((nomerge)) ::abort(); } while (false); } } while
(false); } } while (false)
;
18673
18674 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"
, 18674); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!(*indexMetadata)->mDeleted"
")"); do { *((volatile int*)__null) = 18674; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18675
18676 const IndexOrObjectStoreId& indexId =
18677 (*indexMetadata)->mCommonMetadata.id();
18678 const bool& unique = (*indexMetadata)->mCommonMetadata.unique();
18679
18680 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"
, 18680); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexId == updateInfo.indexId()"
")"); do { *((volatile int*)__null) = 18680; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18681 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"
, 18682); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mUniqueIndexTable.ref().Contains(indexId)"
")"); do { *((volatile int*)__null) = 18682; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
18682 !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"
, 18682); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mUniqueIndexTable.ref().Contains(indexId)"
")"); do { *((volatile int*)__null) = 18682; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
18683
18684 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"
, 18685)
18685 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"
, 18685)
) {
18686 return false;
18687 }
18688 }
18689 } else if (mOverwrite) {
18690 mUniqueIndexTable.emplace();
18691 }
18692
18693 if (mUniqueIndexTable.isSome()) {
18694 mUniqueIndexTable.ref().MarkImmutable();
18695 }
18696
18697 QM_TRY_UNWRAP(auto tryResult1423 = (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"
, 18704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18704; __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"
, 18710); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18710; __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"
, 18713); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18713; __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"
, 18720); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18720; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1423.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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18724, 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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1423.unwrap
();
18698 mStoredFileInfos,auto tryResult1423 = (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"
, 18704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18704; __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"
, 18710); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18710; __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"
, 18713); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18713; __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"
, 18720); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18720; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1423.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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18724, 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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1423.unwrap
();
18699 TransformIntoNewArray(auto tryResult1423 = (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"
, 18704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18704; __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"
, 18710); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18710; __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"
, 18713); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18713; __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"
, 18720); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18720; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1423.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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18724, 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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1423.unwrap
();
18700 mParams.fileAddInfos(),auto tryResult1423 = (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"
, 18704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18704; __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"
, 18710); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18710; __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"
, 18713); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18713; __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"
, 18720); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18720; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1423.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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18724, 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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1423.unwrap
();
18701 [](const auto& fileAddInfo) {auto tryResult1423 = (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"
, 18704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18704; __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"
, 18710); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18710; __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"
, 18713); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18713; __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"
, 18720); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18720; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1423.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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18724, 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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1423.unwrap
();
18702 MOZ_ASSERT(fileAddInfo.type() == StructuredCloneFileBase::eBlob ||auto tryResult1423 = (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"
, 18704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18704; __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"
, 18710); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18710; __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"
, 18713); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18713; __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"
, 18720); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18720; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1423.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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18724, 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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1423.unwrap
();
18703 fileAddInfo.type() ==auto tryResult1423 = (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"
, 18704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18704; __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"
, 18710); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18710; __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"
, 18713); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18713; __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"
, 18720); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18720; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1423.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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18724, 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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1423.unwrap
();
18704 StructuredCloneFileBase::eMutableFile);auto tryResult1423 = (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"
, 18704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18704; __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"
, 18710); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18710; __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"
, 18713); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18713; __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"
, 18720); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18720; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1423.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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18724, 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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1423.unwrap
();
18705
18706 switch (fileAddInfo.type()) {auto tryResult1423 = (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"
, 18704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18704; __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"
, 18710); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18710; __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"
, 18713); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18713; __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"
, 18720); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18720; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1423.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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18724, 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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1423.unwrap
();
18707 case StructuredCloneFileBase::eBlob: {auto tryResult1423 = (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"
, 18704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18704; __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"
, 18710); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18710; __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"
, 18713); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18713; __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"
, 18720); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18720; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1423.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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18724, 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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1423.unwrap
();
18708 PBackgroundIDBDatabaseFileParent* file =auto tryResult1423 = (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"
, 18704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18704; __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"
, 18710); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18710; __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"
, 18713); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18713; __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"
, 18720); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18720; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1423.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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18724, 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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1423.unwrap
();
18709 fileAddInfo.file().AsParent();auto tryResult1423 = (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"
, 18704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18704; __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"
, 18710); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18710; __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"
, 18713); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18713; __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"
, 18720); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18720; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1423.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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18724, 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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1423.unwrap
();
18710 MOZ_ASSERT(file);auto tryResult1423 = (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"
, 18704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18704; __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"
, 18710); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18710; __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"
, 18713); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18713; __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"
, 18720); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18720; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1423.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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18724, 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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1423.unwrap
();
18711
18712 auto* const fileActor = static_cast<DatabaseFile*>(file);auto tryResult1423 = (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"
, 18704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18704; __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"
, 18710); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18710; __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"
, 18713); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18713; __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"
, 18720); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18720; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1423.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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18724, 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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1423.unwrap
();
18713 MOZ_ASSERT(fileActor);auto tryResult1423 = (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"
, 18704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18704; __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"
, 18710); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18710; __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"
, 18713); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18713; __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"
, 18720); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18720; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1423.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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18724, 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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1423.unwrap
();
18714
18715 return StoredFileInfo::CreateForBlob(auto tryResult1423 = (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"
, 18704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18704; __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"
, 18710); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18710; __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"
, 18713); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18713; __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"
, 18720); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18720; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1423.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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18724, 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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1423.unwrap
();
18716 fileActor->GetFileInfoPtr(), fileActor);auto tryResult1423 = (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"
, 18704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18704; __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"
, 18710); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18710; __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"
, 18713); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18713; __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"
, 18720); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18720; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1423.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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18724, 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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1423.unwrap
();
18717 }auto tryResult1423 = (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"
, 18704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18704; __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"
, 18710); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18710; __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"
, 18713); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18713; __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"
, 18720); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18720; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1423.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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18724, 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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1423.unwrap
();
18718
18719 default:auto tryResult1423 = (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"
, 18704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18704; __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"
, 18710); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18710; __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"
, 18713); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18713; __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"
, 18720); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18720; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1423.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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18724, 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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1423.unwrap
();
18720 MOZ_CRASH("Should never get here!");auto tryResult1423 = (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"
, 18704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18704; __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"
, 18710); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18710; __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"
, 18713); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18713; __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"
, 18720); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18720; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1423.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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18724, 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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1423.unwrap
();
18721 }auto tryResult1423 = (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"
, 18704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18704; __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"
, 18710); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18710; __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"
, 18713); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18713; __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"
, 18720); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18720; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1423.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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18724, 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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1423.unwrap
();
18722 },auto tryResult1423 = (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"
, 18704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18704; __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"
, 18710); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18710; __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"
, 18713); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18713; __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"
, 18720); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18720; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1423.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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18724, 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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1423.unwrap
();
18723 fallible),auto tryResult1423 = (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"
, 18704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18704; __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"
, 18710); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18710; __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"
, 18713); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18713; __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"
, 18720); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18720; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1423.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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18724, 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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1423.unwrap
();
18724 false)auto tryResult1423 = (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"
, 18704); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile"
")"); do { *((volatile int*)__null) = 18704; __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"
, 18710); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")")
; do { *((volatile int*)__null) = 18710; __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"
, 18713); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor"
")"); do { *((volatile int*)__null) = 18713; __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"
, 18720); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 18720; __attribute__((
nomerge)) ::abort(); } while (false); } while (false); } }, fallible
)); if ((__builtin_expect(!!(tryResult1423.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1423.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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18724, 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\", 18704); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { *((volatile int*)__null) = 18704; __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\", 18710); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { *((volatile int*)__null) = 18710; __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\", 18713); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { *((volatile int*)__null) = 18713; __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\", 18720); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { *((volatile int*)__null) = 18720; __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)"
, tryTempError, false); } mStoredFileInfos = tryResult1423.unwrap
();
;
18725
18726 if (mDataOverThreshold) {
18727 auto fileInfo =
18728 aTransaction.GetDatabase().GetFileManager().CreateFileInfo();
18729 if (NS_WARN_IF(!fileInfo)NS_warn_if_impl(!fileInfo, "!fileInfo", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18729)
) {
18730 return false;
18731 }
18732
18733 mStoredFileInfos.EmplaceBack(StoredFileInfo::CreateForStructuredClone(
18734 std::move(fileInfo),
18735 MakeRefPtr<SCInputStream>(mParams.cloneInfo().data().data)));
18736 }
18737
18738 return true;
18739}
18740
18741nsresult ObjectStoreAddOrPutRequestOp::DoDatabaseWork(
18742 DatabaseConnection* aConnection) {
18743 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"
, 18743); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 18743; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18744 aConnection->AssertIsOnConnectionThread();
18745 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"
, 18745); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection->HasStorageConnection()"
")"); do { *((volatile int*)__null) = 18745; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18746
18747 AUTO_PROFILER_LABEL("ObjectStoreAddOrPutRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject18747( "ObjectStoreAddOrPutRequestOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
18748
18749 DatabaseConnection::AutoSavepoint autoSave;
18750 QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1424 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424
.isErr()), 0))) { auto tryTempError = tryResult1424.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18755, 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)); }}
18751#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1424 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424
.isErr()), 0))) { auto tryTempError = tryResult1424.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18755, 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)); }}
18752 ,{auto tryResult1424 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424
.isErr()), 0))) { auto tryTempError = tryResult1424.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18755, 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)); }}
18753 QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1424 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424
.isErr()), 0))) { auto tryTempError = tryResult1424.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18755, 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)); }}
18754#endif{auto tryResult1424 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424
.isErr()), 0))) { auto tryTempError = tryResult1424.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18755, 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)); }}
18755 ){auto tryResult1424 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1424)::ok_type>); if ((__builtin_expect(!!(tryResult1424
.isErr()), 0))) { auto tryTempError = tryResult1424.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18755, 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)); }}
;
18756
18757 QM_TRY_INSPECT(const bool& objectStoreHasIndexes,auto tryResult1425 = (ObjectStoreHasIndexes(*aConnection, mParams
.objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect
(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError
("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)"
, tryResult1425.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18759, mozilla::dom::quota::Severity::Error); return tryResult1425
.propagateErr(); } const bool& objectStoreHasIndexes = tryResult1425
.inspect();
18758 ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(),auto tryResult1425 = (ObjectStoreHasIndexes(*aConnection, mParams
.objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect
(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError
("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)"
, tryResult1425.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18759, mozilla::dom::quota::Severity::Error); return tryResult1425
.propagateErr(); } const bool& objectStoreHasIndexes = tryResult1425
.inspect();
18759 mObjectStoreMayHaveIndexes))auto tryResult1425 = (ObjectStoreHasIndexes(*aConnection, mParams
.objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect
(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError
("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)"
, tryResult1425.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18759, mozilla::dom::quota::Severity::Error); return tryResult1425
.propagateErr(); } const bool& objectStoreHasIndexes = tryResult1425
.inspect();
;
18760
18761 // This will be the final key we use.
18762 Key& key = mResponse;
18763 key = mParams.key();
18764
18765 const bool keyUnset = key.IsUnset();
18766 const IndexOrObjectStoreId osid = mParams.objectStoreId();
18767
18768 // First delete old index_data_values if we're overwriting something and we
18769 // have indexes.
18770 if (mOverwrite && !keyUnset && objectStoreHasIndexes) {
18771 QM_TRY(MOZ_TO_RESULT(RemoveOldIndexDataValues(aConnection))){auto tryResult1426 = (ToResult(RemoveOldIndexDataValues(aConnection
))); static_assert(std::is_empty_v<typename decltype(tryResult1426
)::ok_type>); if ((__builtin_expect(!!(tryResult1426.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveOldIndexDataValues(aConnection))"
, tryResult1426.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18771, mozilla::dom::quota::Severity::Error); return tryResult1426
.propagateErr(); }}
;
18772 }
18773
18774 int64_t autoIncrementNum = 0;
18775
18776 {
18777 // The "|| keyUnset" here is mostly a debugging tool. If a key isn't
18778 // specified we should never have a collision and so it shouldn't matter
18779 // if we allow overwrite or not. By not allowing overwrite we raise
18780 // detectable errors rather than corrupting data.
18781 const auto optReplaceDirective =
18782 (!mOverwrite || keyUnset) ? ""_ns : "OR REPLACE "_ns;
18783 QM_TRY_INSPECT(const auto& stmt,auto tryResult1427 = (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(!!(tryResult1427.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)"
, tryResult1427.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18791, mozilla::dom::quota::Severity::Error); return tryResult1427
.propagateErr(); } const auto& stmt = tryResult1427.inspect
();
18784 aConnection->BorrowCachedStatement(auto tryResult1427 = (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(!!(tryResult1427.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)"
, tryResult1427.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18791, mozilla::dom::quota::Severity::Error); return tryResult1427
.propagateErr(); } const auto& stmt = tryResult1427.inspect
();
18785 "INSERT "_ns + optReplaceDirective +auto tryResult1427 = (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(!!(tryResult1427.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)"
, tryResult1427.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18791, mozilla::dom::quota::Severity::Error); return tryResult1427
.propagateErr(); } const auto& stmt = tryResult1427.inspect
();
18786 "INTO object_data "auto tryResult1427 = (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(!!(tryResult1427.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)"
, tryResult1427.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18791, mozilla::dom::quota::Severity::Error); return tryResult1427
.propagateErr(); } const auto& stmt = tryResult1427.inspect
();
18787 "(object_store_id, key, file_ids, data) "auto tryResult1427 = (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(!!(tryResult1427.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)"
, tryResult1427.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18791, mozilla::dom::quota::Severity::Error); return tryResult1427
.propagateErr(); } const auto& stmt = tryResult1427.inspect
();
18788 "VALUES (:"_ns +auto tryResult1427 = (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(!!(tryResult1427.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)"
, tryResult1427.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18791, mozilla::dom::quota::Severity::Error); return tryResult1427
.propagateErr(); } const auto& stmt = tryResult1427.inspect
();
18789 kStmtParamNameObjectStoreId + ", :"_ns +auto tryResult1427 = (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(!!(tryResult1427.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)"
, tryResult1427.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18791, mozilla::dom::quota::Severity::Error); return tryResult1427
.propagateErr(); } const auto& stmt = tryResult1427.inspect
();
18790 kStmtParamNameKey + ", :"_ns + kStmtParamNameFileIds +auto tryResult1427 = (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(!!(tryResult1427.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)"
, tryResult1427.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18791, mozilla::dom::quota::Severity::Error); return tryResult1427
.propagateErr(); } const auto& stmt = tryResult1427.inspect
();
18791 ", :"_ns + kStmtParamNameData + ");"_ns))auto tryResult1427 = (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(!!(tryResult1427.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)"
, tryResult1427.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18791, mozilla::dom::quota::Severity::Error); return tryResult1427
.propagateErr(); } const auto& stmt = tryResult1427.inspect
();
;
18792
18793 QM_TRY(MOZ_TO_RESULT({auto tryResult1428 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId
, osid))); static_assert(std::is_empty_v<typename decltype
(tryResult1428)::ok_type>); if ((__builtin_expect(!!(tryResult1428
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, osid))"
, tryResult1428.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18794, mozilla::dom::quota::Severity::Error); return tryResult1428
.propagateErr(); }}
18794 stmt->BindInt64ByName(kStmtParamNameObjectStoreId, osid))){auto tryResult1428 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId
, osid))); static_assert(std::is_empty_v<typename decltype
(tryResult1428)::ok_type>); if ((__builtin_expect(!!(tryResult1428
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, osid))"
, tryResult1428.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18794, mozilla::dom::quota::Severity::Error); return tryResult1428
.propagateErr(); }}
;
18795
18796 const SerializedStructuredCloneWriteInfo& cloneInfo = mParams.cloneInfo();
18797 const JSStructuredCloneData& cloneData = cloneInfo.data().data;
18798 const size_t cloneDataSize = cloneData.Size();
18799
18800 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"
, 18801); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset || mMetadata->mCommonMetadata.autoIncrement()"
") (" "Should have key unless autoIncrement" ")"); do { *((volatile
int*)__null) = 18801; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false)
18801 "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"
, 18801); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset || mMetadata->mCommonMetadata.autoIncrement()"
") (" "Should have key unless autoIncrement" ")"); do { *((volatile
int*)__null) = 18801; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false)
;
18802
18803 if (mMetadata->mCommonMetadata.autoIncrement()) {
18804 if (keyUnset) {
18805 {
18806 const auto&& lockedAutoIncrementIds =
18807 mMetadata->mAutoIncrementIds.Lock();
18808
18809 autoIncrementNum = lockedAutoIncrementIds->next;
18810 }
18811
18812 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"
, 18812); AnnotateMozCrashReason("MOZ_ASSERT" "(" "autoIncrementNum > 0"
")"); do { *((volatile int*)__null) = 18812; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18813
18814 if (autoIncrementNum > (1LL << 53)) {
18815 return NS_ERROR_DOM_INDEXEDDB_CONSTRAINT_ERR;
18816 }
18817
18818 QM_TRY(key.SetFromInteger(autoIncrementNum)){auto tryResult1429 = (key.SetFromInteger(autoIncrementNum));
static_assert(std::is_empty_v<typename decltype(tryResult1429
)::ok_type>); if ((__builtin_expect(!!(tryResult1429.isErr
()), 0))) { mozilla::dom::quota::HandleError("key.SetFromInteger(autoIncrementNum)"
, tryResult1429.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18818, mozilla::dom::quota::Severity::Error); return tryResult1429
.propagateErr(); }}
;
18819
18820 // Update index keys if primary key is preserved in child.
18821 for (auto& updateInfo : mParams.indexUpdateInfos()) {
18822 updateInfo.value().MaybeUpdateAutoIncrementKey(autoIncrementNum);
18823 }
18824 } else if (key.IsFloat()) {
18825 double numericKey = key.ToFloat();
18826 numericKey = std::min(numericKey, double(1LL << 53));
18827 numericKey = floor(numericKey);
18828
18829 const auto&& lockedAutoIncrementIds =
18830 mMetadata->mAutoIncrementIds.Lock();
18831 if (numericKey >= lockedAutoIncrementIds->next) {
18832 autoIncrementNum = numericKey;
18833 }
18834 }
18835
18836 if (keyUnset && mMetadata->mCommonMetadata.keyPath().IsValid()) {
18837 const SerializedStructuredCloneWriteInfo& cloneInfo =
18838 mParams.cloneInfo();
18839 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"
, 18839); AnnotateMozCrashReason("MOZ_ASSERT" "(" "cloneInfo.offsetToKeyProp()"
")"); do { *((volatile int*)__null) = 18839; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18840 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"
, 18840); AnnotateMozCrashReason("MOZ_ASSERT" "(" "cloneDataSize > sizeof(uint64_t)"
")"); do { *((volatile int*)__null) = 18840; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18841 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"
, 18842); AnnotateMozCrashReason("MOZ_ASSERT" "(" "cloneInfo.offsetToKeyProp() <= (cloneDataSize - sizeof(uint64_t))"
")"); do { *((volatile int*)__null) = 18842; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
18842 (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"
, 18842); AnnotateMozCrashReason("MOZ_ASSERT" "(" "cloneInfo.offsetToKeyProp() <= (cloneDataSize - sizeof(uint64_t))"
")"); do { *((volatile int*)__null) = 18842; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18843
18844 // Special case where someone put an object into an autoIncrement'ing
18845 // objectStore with no key in its keyPath set. We needed to figure out
18846 // which row id we would get above before we could set that properly.
18847 uint64_t keyPropValue =
18848 ReinterpretDoubleAsUInt64(static_cast<double>(autoIncrementNum));
18849
18850 static const size_t keyPropSize = sizeof(uint64_t);
18851
18852 char keyPropBuffer[keyPropSize];
18853 LittleEndian::writeUint64(keyPropBuffer, keyPropValue);
18854
18855 auto iter = cloneData.Start();
18856 MOZ_ALWAYS_TRUE(cloneData.Advance(iter, cloneInfo.offsetToKeyProp()))do { if ((__builtin_expect(!!(cloneData.Advance(iter, cloneInfo
.offsetToKeyProp())), 1))) { } else { do { static_assert( mozilla
::detail::AssertionConditionType<decltype(false)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "cloneData.Advance(iter, cloneInfo.offsetToKeyProp())"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18856); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "cloneData.Advance(iter, cloneInfo.offsetToKeyProp())"
")"); do { *((volatile int*)__null) = 18856; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
18857 MOZ_ALWAYS_TRUE(do { if ((__builtin_expect(!!(cloneData.UpdateBytes(iter, keyPropBuffer
, keyPropSize)), 1))) { } else { do { static_assert( mozilla::
detail::AssertionConditionType<decltype(false)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "cloneData.UpdateBytes(iter, keyPropBuffer, keyPropSize)"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18858); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "cloneData.UpdateBytes(iter, keyPropBuffer, keyPropSize)"
")"); do { *((volatile int*)__null) = 18858; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
18858 cloneData.UpdateBytes(iter, keyPropBuffer, keyPropSize))do { if ((__builtin_expect(!!(cloneData.UpdateBytes(iter, keyPropBuffer
, keyPropSize)), 1))) { } else { do { static_assert( mozilla::
detail::AssertionConditionType<decltype(false)>::isValid
, "invalid assertion condition"); if ((__builtin_expect(!!(!(
!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "cloneData.UpdateBytes(iter, keyPropBuffer, keyPropSize)"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18858); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "cloneData.UpdateBytes(iter, keyPropBuffer, keyPropSize)"
")"); do { *((volatile int*)__null) = 18858; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
18859 }
18860 }
18861
18862 key.BindToStatement(&*stmt, kStmtParamNameKey);
18863
18864 if (mDataOverThreshold) {
18865 // The data we store in the SQLite database is a (signed) 64-bit integer.
18866 // The flags are left-shifted 32 bits so the max value is 0xFFFFFFFF.
18867 // The file_ids index occupies the lower 32 bits and its max is
18868 // 0xFFFFFFFF.
18869 static const uint32_t kCompressedFlag = (1 << 0);
18870
18871 uint32_t flags = 0;
18872 flags |= kCompressedFlag;
18873
18874 const uint32_t index = mStoredFileInfos.Length() - 1;
18875
18876 const int64_t data = (uint64_t(flags) << 32) | index;
18877
18878 QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByName(kStmtParamNameData, data))){auto tryResult1430 = (ToResult(stmt->BindInt64ByName(kStmtParamNameData
, data))); static_assert(std::is_empty_v<typename decltype
(tryResult1430)::ok_type>); if ((__builtin_expect(!!(tryResult1430
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByName(kStmtParamNameData, data))"
, tryResult1430.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18878, mozilla::dom::quota::Severity::Error); return tryResult1430
.propagateErr(); }}
;
18879 } else {
18880 AutoTArray<char, 4096> flatCloneData; // 4096 from JSStructuredCloneData
18881 QM_TRY(OkIf(flatCloneData.SetLength(cloneDataSize, fallible)),{auto tryResult1431 = (OkIf(flatCloneData.SetLength(cloneDataSize
, fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1431.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(flatCloneData.SetLength(cloneDataSize, fallible))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18882, 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)); }}
18882 Err(NS_ERROR_OUT_OF_MEMORY)){auto tryResult1431 = (OkIf(flatCloneData.SetLength(cloneDataSize
, fallible))); static_assert(std::is_empty_v<typename decltype
(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1431.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(flatCloneData.SetLength(cloneDataSize, fallible))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18882, 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)); }}
;
18883
18884 {
18885 auto iter = cloneData.Start();
18886 MOZ_ALWAYS_TRUE(do { if ((__builtin_expect(!!(cloneData.ReadBytes(iter, flatCloneData
.Elements(), cloneDataSize)), 1))) { } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "cloneData.ReadBytes(iter, flatCloneData.Elements(), cloneDataSize)"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18887); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "cloneData.ReadBytes(iter, flatCloneData.Elements(), cloneDataSize)"
")"); do { *((volatile int*)__null) = 18887; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
18887 cloneData.ReadBytes(iter, flatCloneData.Elements(), cloneDataSize))do { if ((__builtin_expect(!!(cloneData.ReadBytes(iter, flatCloneData
.Elements(), cloneDataSize)), 1))) { } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "cloneData.ReadBytes(iter, flatCloneData.Elements(), cloneDataSize)"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18887); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "cloneData.ReadBytes(iter, flatCloneData.Elements(), cloneDataSize)"
")"); do { *((volatile int*)__null) = 18887; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
18888 }
18889
18890 // Compress the bytes before adding into the database.
18891 const char* const uncompressed = flatCloneData.Elements();
18892 const size_t uncompressedLength = cloneDataSize;
18893
18894 size_t compressedLength = snappy::MaxCompressedLength(uncompressedLength);
18895
18896 UniqueFreePtr<char> compressed(
18897 static_cast<char*>(malloc(compressedLength)));
18898 if (NS_WARN_IF(!compressed)NS_warn_if_impl(!compressed, "!compressed", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18898)
) {
18899 return NS_ERROR_OUT_OF_MEMORY;
18900 }
18901
18902 snappy::RawCompress(uncompressed, uncompressedLength, compressed.get(),
18903 &compressedLength);
18904
18905 uint8_t* const dataBuffer =
18906 reinterpret_cast<uint8_t*>(compressed.release());
18907 const size_t dataBufferLength = compressedLength;
18908
18909 QM_TRY(MOZ_TO_RESULT(stmt->BindAdoptedBlobByName({auto tryResult1432 = (ToResult(stmt->BindAdoptedBlobByName
( kStmtParamNameData, dataBuffer, dataBufferLength))); static_assert
(std::is_empty_v<typename decltype(tryResult1432)::ok_type
>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt->BindAdoptedBlobByName( kStmtParamNameData, dataBuffer, dataBufferLength))"
, tryResult1432.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18910, mozilla::dom::quota::Severity::Error); return tryResult1432
.propagateErr(); }}
18910 kStmtParamNameData, dataBuffer, dataBufferLength))){auto tryResult1432 = (ToResult(stmt->BindAdoptedBlobByName
( kStmtParamNameData, dataBuffer, dataBufferLength))); static_assert
(std::is_empty_v<typename decltype(tryResult1432)::ok_type
>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(stmt->BindAdoptedBlobByName( kStmtParamNameData, dataBuffer, dataBufferLength))"
, tryResult1432.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18910, mozilla::dom::quota::Severity::Error); return tryResult1432
.propagateErr(); }}
;
18911 }
18912
18913 if (!mStoredFileInfos.IsEmpty()) {
18914 // Moved outside the loop to allow it to be cached when demanded by the
18915 // first write. (We may have mStoredFileInfos without any required
18916 // writes.)
18917 Maybe<FileHelper> fileHelper;
18918 nsAutoString fileIds;
18919
18920 for (auto& storedFileInfo : mStoredFileInfos) {
18921 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"
, 18921); AnnotateMozCrashReason("MOZ_ASSERT" "(" "storedFileInfo.IsValid()"
")"); do { *((volatile int*)__null) = 18921; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18922
18923 QM_TRY_INSPECT(const auto& inputStream,auto tryResult1433 = (storedFileInfo.GetInputStream()); if ((
__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom
::quota::HandleError("storedFileInfo.GetInputStream()", tryResult1433
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18924, mozilla::dom::quota::Severity::Error); return tryResult1433
.propagateErr(); } const auto& inputStream = tryResult1433
.inspect();
18924 storedFileInfo.GetInputStream())auto tryResult1433 = (storedFileInfo.GetInputStream()); if ((
__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom
::quota::HandleError("storedFileInfo.GetInputStream()", tryResult1433
.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18924, mozilla::dom::quota::Severity::Error); return tryResult1433
.propagateErr(); } const auto& inputStream = tryResult1433
.inspect();
;
18925
18926 if (inputStream) {
18927 if (fileHelper.isNothing()) {
18928 fileHelper.emplace(Transaction().GetDatabase().GetFileManagerPtr());
18929 QM_TRY(MOZ_TO_RESULT(fileHelper->Init()),{auto tryResult1434 = (ToResult(fileHelper->Init())); 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("ToResult(fileHelper->Init())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18931, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18931, "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); }}
18930 NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult1434 = (ToResult(fileHelper->Init())); 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("ToResult(fileHelper->Init())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18931, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18931, "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); }}
18931 IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1434 = (ToResult(fileHelper->Init())); 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("ToResult(fileHelper->Init())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18931, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18931, "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); }}
;
18932 }
18933
18934 const DatabaseFileInfo& fileInfo = storedFileInfo.GetFileInfo();
18935 const DatabaseFileManager& fileManager = fileInfo.Manager();
18936
18937 const auto file = fileHelper->GetFile(fileInfo);
18938 QM_TRY(OkIf(file), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult1435 = (OkIf(file)); static_assert(std::is_empty_v
<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { auto tryTempError = tryResult1435
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(file)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18939, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18939, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(file)", tryTempError
, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
18939 IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1435 = (OkIf(file)); static_assert(std::is_empty_v
<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect
(!!(tryResult1435.isErr()), 0))) { auto tryTempError = tryResult1435
.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(file)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18939, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18939, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(file)", tryTempError
, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
;
18940
18941 const auto journalFile = fileHelper->GetJournalFile(fileInfo);
18942 QM_TRY(OkIf(journalFile), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult1436 = (OkIf(journalFile)); 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("OkIf(journalFile)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18943, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18943, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(journalFile)", tryTempError
, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
18943 IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1436 = (OkIf(journalFile)); 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("OkIf(journalFile)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18943, mozilla::dom::quota::Severity::Error); [](const auto
&) { mozilla::dom::indexedDB::ReportInternalError("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18943, "UnknownErr"); }(tryTempError); constexpr const auto
& func __attribute__((__unused__)) = __func__; return mozilla
::dom::quota::HandleCustomRetVal(func, "OkIf(journalFile)", tryTempError
, NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); }}
;
18944
18945 nsCString fileKeyId;
18946 fileKeyId.AppendInt(fileInfo.Id());
18947
18948 const auto maybeKey =
18949 fileManager.IsInPrivateBrowsingMode()
18950 ? fileManager.MutableCipherKeyManagerRef().Get(fileKeyId)
18951 : Nothing();
18952
18953 QM_TRY(MOZ_TO_RESULT(fileHelper->CreateFileFromStream({auto tryResult1438 = (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"
, 18959, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1438)::ok_type>); if ((__builtin_expect
(!!(tryResult1438.isErr()), 0))) { auto tryTempError = tryResult1438
.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\", 18959, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18971, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1437 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1437)::ok_type>); if ((__builtin_expect
(!!(tryResult1437.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1437.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18970, 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\", 18959, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
18954 *file, *journalFile, *inputStream,{auto tryResult1438 = (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"
, 18959, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1438)::ok_type>); if ((__builtin_expect
(!!(tryResult1438.isErr()), 0))) { auto tryTempError = tryResult1438
.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\", 18959, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18971, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1437 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1437)::ok_type>); if ((__builtin_expect
(!!(tryResult1437.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1437.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18970, 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\", 18959, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
18955 storedFileInfo.ShouldCompress(), maybeKey)){auto tryResult1438 = (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"
, 18959, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1438)::ok_type>); if ((__builtin_expect
(!!(tryResult1438.isErr()), 0))) { auto tryTempError = tryResult1438
.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\", 18959, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18971, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1437 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1437)::ok_type>); if ((__builtin_expect
(!!(tryResult1437.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1437.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18970, 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\", 18959, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
18956 .mapErr([](const nsresult rv) {{auto tryResult1438 = (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"
, 18959, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1438)::ok_type>); if ((__builtin_expect
(!!(tryResult1438.isErr()), 0))) { auto tryTempError = tryResult1438
.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\", 18959, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18971, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1437 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1437)::ok_type>); if ((__builtin_expect
(!!(tryResult1437.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1437.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18970, 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\", 18959, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
18957 if (NS_ERROR_GET_MODULE(rv) !={auto tryResult1438 = (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"
, 18959, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1438)::ok_type>); if ((__builtin_expect
(!!(tryResult1438.isErr()), 0))) { auto tryTempError = tryResult1438
.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\", 18959, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18971, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1437 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1437)::ok_type>); if ((__builtin_expect
(!!(tryResult1437.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1437.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18970, 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\", 18959, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
18958 NS_ERROR_MODULE_DOM_INDEXEDDB) {{auto tryResult1438 = (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"
, 18959, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1438)::ok_type>); if ((__builtin_expect
(!!(tryResult1438.isErr()), 0))) { auto tryTempError = tryResult1438
.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\", 18959, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18971, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1437 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1437)::ok_type>); if ((__builtin_expect
(!!(tryResult1437.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1437.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18970, 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\", 18959, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
18959 IDB_REPORT_INTERNAL_ERR();{auto tryResult1438 = (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"
, 18959, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1438)::ok_type>); if ((__builtin_expect
(!!(tryResult1438.isErr()), 0))) { auto tryTempError = tryResult1438
.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\", 18959, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18971, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1437 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1437)::ok_type>); if ((__builtin_expect
(!!(tryResult1437.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1437.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18970, 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\", 18959, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
18960 return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;{auto tryResult1438 = (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"
, 18959, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1438)::ok_type>); if ((__builtin_expect
(!!(tryResult1438.isErr()), 0))) { auto tryTempError = tryResult1438
.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\", 18959, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18971, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1437 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1437)::ok_type>); if ((__builtin_expect
(!!(tryResult1437.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1437.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18970, 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\", 18959, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
18961 }{auto tryResult1438 = (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"
, 18959, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1438)::ok_type>); if ((__builtin_expect
(!!(tryResult1438.isErr()), 0))) { auto tryTempError = tryResult1438
.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\", 18959, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18971, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1437 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1437)::ok_type>); if ((__builtin_expect
(!!(tryResult1437.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1437.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18970, 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\", 18959, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
18962 return rv;{auto tryResult1438 = (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"
, 18959, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1438)::ok_type>); if ((__builtin_expect
(!!(tryResult1438.isErr()), 0))) { auto tryTempError = tryResult1438
.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\", 18959, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18971, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1437 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1437)::ok_type>); if ((__builtin_expect
(!!(tryResult1437.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1437.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18970, 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\", 18959, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
18963 }),{auto tryResult1438 = (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"
, 18959, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1438)::ok_type>); if ((__builtin_expect
(!!(tryResult1438.isErr()), 0))) { auto tryTempError = tryResult1438
.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\", 18959, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18971, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1437 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1437)::ok_type>); if ((__builtin_expect
(!!(tryResult1437.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1437.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18970, 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\", 18959, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
18964 QM_PROPAGATE,{auto tryResult1438 = (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"
, 18959, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1438)::ok_type>); if ((__builtin_expect
(!!(tryResult1438.isErr()), 0))) { auto tryTempError = tryResult1438
.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\", 18959, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18971, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1437 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1437)::ok_type>); if ((__builtin_expect
(!!(tryResult1437.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1437.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18970, 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\", 18959, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
18965 ([&fileManager, &file = *file,{auto tryResult1438 = (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"
, 18959, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1438)::ok_type>); if ((__builtin_expect
(!!(tryResult1438.isErr()), 0))) { auto tryTempError = tryResult1438
.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\", 18959, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18971, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1437 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1437)::ok_type>); if ((__builtin_expect
(!!(tryResult1437.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1437.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18970, 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\", 18959, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
18966 &journalFile = *journalFile](const auto) {{auto tryResult1438 = (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"
, 18959, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1438)::ok_type>); if ((__builtin_expect
(!!(tryResult1438.isErr()), 0))) { auto tryTempError = tryResult1438
.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\", 18959, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18971, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1437 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1437)::ok_type>); if ((__builtin_expect
(!!(tryResult1437.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1437.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18970, 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\", 18959, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
18967 // Try to remove the file if the copy failed.{auto tryResult1438 = (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"
, 18959, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1438)::ok_type>); if ((__builtin_expect
(!!(tryResult1438.isErr()), 0))) { auto tryTempError = tryResult1438
.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\", 18959, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18971, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1437 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1437)::ok_type>); if ((__builtin_expect
(!!(tryResult1437.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1437.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18970, 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\", 18959, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
18968 QM_TRY(MOZ_TO_RESULT({auto tryResult1438 = (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"
, 18959, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1438)::ok_type>); if ((__builtin_expect
(!!(tryResult1438.isErr()), 0))) { auto tryTempError = tryResult1438
.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\", 18959, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18971, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1437 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1437)::ok_type>); if ((__builtin_expect
(!!(tryResult1437.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1437.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18970, 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\", 18959, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
18969 fileManager.SyncDeleteFile(file, journalFile)),{auto tryResult1438 = (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"
, 18959, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1438)::ok_type>); if ((__builtin_expect
(!!(tryResult1438.isErr()), 0))) { auto tryTempError = tryResult1438
.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\", 18959, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18971, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1437 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1437)::ok_type>); if ((__builtin_expect
(!!(tryResult1437.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1437.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18970, 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\", 18959, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
18970 QM_VOID);{auto tryResult1438 = (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"
, 18959, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1438)::ok_type>); if ((__builtin_expect
(!!(tryResult1438.isErr()), 0))) { auto tryTempError = tryResult1438
.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\", 18959, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18971, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1437 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1437)::ok_type>); if ((__builtin_expect
(!!(tryResult1437.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1437.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18970, 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\", 18959, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
18971 })){auto tryResult1438 = (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"
, 18959, "UnknownErr"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR
; } return rv; })); static_assert(std::is_empty_v<typename
decltype(tryResult1438)::ok_type>); if ((__builtin_expect
(!!(tryResult1438.isErr()), 0))) { auto tryTempError = tryResult1438
.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\", 18959, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18971, mozilla::dom::quota::Severity::Error); ([&fileManager
, &file = *file, &journalFile = *journalFile](const auto
) { {auto tryResult1437 = (ToResult(fileManager.SyncDeleteFile
(file, journalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1437)::ok_type>); if ((__builtin_expect
(!!(tryResult1437.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1437.unwrapErr(); mozilla::dom::quota
::HandleError("ToResult(fileManager.SyncDeleteFile(file, journalFile))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18970, 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\", 18959, \"UnknownErr\"); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })"
, tryTempError, Err(tryTempError)); }}
;
18972
18973 storedFileInfo.NotifyWriteSucceeded();
18974 }
18975
18976 if (!fileIds.IsEmpty()) {
18977 fileIds.Append(' ');
18978 }
18979 storedFileInfo.Serialize(fileIds);
18980 }
18981
18982 QM_TRY(MOZ_TO_RESULT({auto tryResult1439 = (ToResult(stmt->BindStringByName(kStmtParamNameFileIds
, fileIds))); static_assert(std::is_empty_v<typename decltype
(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindStringByName(kStmtParamNameFileIds, fileIds))"
, tryResult1439.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18983, mozilla::dom::quota::Severity::Error); return tryResult1439
.propagateErr(); }}
18983 stmt->BindStringByName(kStmtParamNameFileIds, fileIds))){auto tryResult1439 = (ToResult(stmt->BindStringByName(kStmtParamNameFileIds
, fileIds))); static_assert(std::is_empty_v<typename decltype
(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439
.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindStringByName(kStmtParamNameFileIds, fileIds))"
, tryResult1439.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18983, mozilla::dom::quota::Severity::Error); return tryResult1439
.propagateErr(); }}
;
18984 } else {
18985 QM_TRY(MOZ_TO_RESULT(stmt->BindNullByName(kStmtParamNameFileIds))){auto tryResult1440 = (ToResult(stmt->BindNullByName(kStmtParamNameFileIds
))); static_assert(std::is_empty_v<typename decltype(tryResult1440
)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindNullByName(kStmtParamNameFileIds))"
, tryResult1440.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18985, mozilla::dom::quota::Severity::Error); return tryResult1440
.propagateErr(); }}
;
18986 }
18987
18988 QM_TRY(MOZ_TO_RESULT(stmt->Execute()), QM_PROPAGATE,{auto tryResult1441 = (ToResult(stmt->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult1441)::ok_type
>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) {
auto tryTempError = tryResult1441.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(stmt->Execute())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18993, 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"
, 18991); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset"
") (" "Generated key had a collision!" ")"); do { *((volatile
int*)__null) = 18991; __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)); }}
18989 [keyUnset = DebugOnly{keyUnset}](const nsresult rv) {{auto tryResult1441 = (ToResult(stmt->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult1441)::ok_type
>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) {
auto tryTempError = tryResult1441.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(stmt->Execute())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18993, 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"
, 18991); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset"
") (" "Generated key had a collision!" ")"); do { *((volatile
int*)__null) = 18991; __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)); }}
18990 if (rv == NS_ERROR_STORAGE_CONSTRAINT) {{auto tryResult1441 = (ToResult(stmt->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult1441)::ok_type
>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) {
auto tryTempError = tryResult1441.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(stmt->Execute())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18993, 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"
, 18991); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset"
") (" "Generated key had a collision!" ")"); do { *((volatile
int*)__null) = 18991; __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)); }}
18991 MOZ_ASSERT(!keyUnset, "Generated key had a collision!");{auto tryResult1441 = (ToResult(stmt->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult1441)::ok_type
>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) {
auto tryTempError = tryResult1441.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(stmt->Execute())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18993, 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"
, 18991); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset"
") (" "Generated key had a collision!" ")"); do { *((volatile
int*)__null) = 18991; __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)); }}
18992 }{auto tryResult1441 = (ToResult(stmt->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult1441)::ok_type
>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) {
auto tryTempError = tryResult1441.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(stmt->Execute())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18993, 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"
, 18991); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset"
") (" "Generated key had a collision!" ")"); do { *((volatile
int*)__null) = 18991; __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)); }}
18993 }){auto tryResult1441 = (ToResult(stmt->Execute())); static_assert
(std::is_empty_v<typename decltype(tryResult1441)::ok_type
>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) {
auto tryTempError = tryResult1441.unwrapErr(); mozilla::dom::
quota::HandleError("ToResult(stmt->Execute())", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 18993, 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"
, 18991); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset"
") (" "Generated key had a collision!" ")"); do { *((volatile
int*)__null) = 18991; __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)); }}
;
18994 }
18995
18996 // Update our indexes if needed.
18997 if (!mParams.indexUpdateInfos().IsEmpty()) {
18998 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"
, 18998); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mUniqueIndexTable.isSome()"
")"); do { *((volatile int*)__null) = 18998; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
18999
19000 // Write the index_data_values column.
19001 QM_TRY_INSPECT(const auto& indexValues,auto tryResult1442 = (IndexDataValuesFromUpdateInfos(mParams.
indexUpdateInfos(), mUniqueIndexTable.ref())); if ((__builtin_expect
(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError
("IndexDataValuesFromUpdateInfos(mParams.indexUpdateInfos(), mUniqueIndexTable.ref())"
, tryResult1442.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19003, mozilla::dom::quota::Severity::Error); return tryResult1442
.propagateErr(); } const auto& indexValues = tryResult1442
.inspect();
19002 IndexDataValuesFromUpdateInfos(mParams.indexUpdateInfos(),auto tryResult1442 = (IndexDataValuesFromUpdateInfos(mParams.
indexUpdateInfos(), mUniqueIndexTable.ref())); if ((__builtin_expect
(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError
("IndexDataValuesFromUpdateInfos(mParams.indexUpdateInfos(), mUniqueIndexTable.ref())"
, tryResult1442.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19003, mozilla::dom::quota::Severity::Error); return tryResult1442
.propagateErr(); } const auto& indexValues = tryResult1442
.inspect();
19003 mUniqueIndexTable.ref()))auto tryResult1442 = (IndexDataValuesFromUpdateInfos(mParams.
indexUpdateInfos(), mUniqueIndexTable.ref())); if ((__builtin_expect
(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError
("IndexDataValuesFromUpdateInfos(mParams.indexUpdateInfos(), mUniqueIndexTable.ref())"
, tryResult1442.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19003, mozilla::dom::quota::Severity::Error); return tryResult1442
.propagateErr(); } const auto& indexValues = tryResult1442
.inspect();
;
19004
19005 QM_TRY({auto tryResult1443 = (ToResult(UpdateIndexValues(aConnection
, osid, key, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect
(!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(UpdateIndexValues(aConnection, osid, key, indexValues))"
, tryResult1443.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19006, mozilla::dom::quota::Severity::Error); return tryResult1443
.propagateErr(); }}
19006 MOZ_TO_RESULT(UpdateIndexValues(aConnection, osid, key, indexValues))){auto tryResult1443 = (ToResult(UpdateIndexValues(aConnection
, osid, key, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect
(!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(UpdateIndexValues(aConnection, osid, key, indexValues))"
, tryResult1443.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19006, mozilla::dom::quota::Severity::Error); return tryResult1443
.propagateErr(); }}
;
19007
19008 QM_TRY(MOZ_TO_RESULT({auto tryResult1444 = (ToResult(InsertIndexTableRows(aConnection
, osid, key, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1444)::ok_type>); if ((__builtin_expect
(!!(tryResult1444.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(InsertIndexTableRows(aConnection, osid, key, indexValues))"
, tryResult1444.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19009, mozilla::dom::quota::Severity::Error); return tryResult1444
.propagateErr(); }}
19009 InsertIndexTableRows(aConnection, osid, key, indexValues))){auto tryResult1444 = (ToResult(InsertIndexTableRows(aConnection
, osid, key, indexValues))); static_assert(std::is_empty_v<
typename decltype(tryResult1444)::ok_type>); if ((__builtin_expect
(!!(tryResult1444.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(InsertIndexTableRows(aConnection, osid, key, indexValues))"
, tryResult1444.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19009, mozilla::dom::quota::Severity::Error); return tryResult1444
.propagateErr(); }}
;
19010 }
19011
19012 QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1445 = (ToResult(autoSave.Commit())); static_assert
(std::is_empty_v<typename decltype(tryResult1445)::ok_type
>); if ((__builtin_expect(!!(tryResult1445.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())"
, tryResult1445.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19012, mozilla::dom::quota::Severity::Error); return tryResult1445
.propagateErr(); }}
;
19013
19014 if (autoIncrementNum) {
19015 {
19016 auto&& lockedAutoIncrementIds = mMetadata->mAutoIncrementIds.Lock();
19017
19018 lockedAutoIncrementIds->next = autoIncrementNum + 1;
19019 }
19020
19021 Transaction().NoteModifiedAutoIncrementObjectStore(mMetadata);
19022 }
19023
19024 return NS_OK;
19025}
19026
19027void ObjectStoreAddOrPutRequestOp::GetResponse(RequestResponse& aResponse,
19028 size_t* aResponseSize) {
19029 AssertIsOnOwningThread();
19030
19031 if (mOverwrite) {
19032 aResponse = ObjectStorePutResponse(mResponse);
19033 *aResponseSize = mResponse.GetBuffer().Length();
19034 } else {
19035 aResponse = ObjectStoreAddResponse(mResponse);
19036 *aResponseSize = mResponse.GetBuffer().Length();
19037 }
19038}
19039
19040void ObjectStoreAddOrPutRequestOp::Cleanup() {
19041 AssertIsOnOwningThread();
19042
19043 mStoredFileInfos.Clear();
19044
19045 NormalTransactionOp::Cleanup();
19046}
19047
19048NS_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"
, 19048); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { *((volatile int*)__null) =
19048; __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"
, 19048); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"ObjectStoreAddOrPutRequestOp::SCInputStream\" != nullptr"
") (" "Must specify a name" ")"); do { *((volatile int*)__null
) = 19048; __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"
, 19048); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { *((volatile int*)__null) = 19048
; __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"
, 19048); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"ObjectStoreAddOrPutRequestOp::SCInputStream\" != nullptr"
") (" "Must specify a name" ")"); do { *((volatile int*)__null
) = 19048; __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"
, 19048); 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(
(sizeof(table) / sizeof(table[0])) > 1, "need at least 1 interface"
); rv = NS_TableDrivenQI(static_cast<void*>(this), aIID
, aInstancePtr, table); return rv; }
19049
19050NS_IMETHODIMPnsresult
19051ObjectStoreAddOrPutRequestOp::SCInputStream::Close() { return NS_OK; }
19052
19053NS_IMETHODIMPnsresult
19054ObjectStoreAddOrPutRequestOp::SCInputStream::Available(uint64_t* _retval) {
19055 return NS_ERROR_NOT_IMPLEMENTED;
19056}
19057
19058NS_IMETHODIMPnsresult
19059ObjectStoreAddOrPutRequestOp::SCInputStream::StreamStatus() { return NS_OK; }
19060
19061NS_IMETHODIMPnsresult
19062ObjectStoreAddOrPutRequestOp::SCInputStream::Read(char* aBuf, uint32_t aCount,
19063 uint32_t* _retval) {
19064 return ReadSegments(NS_CopySegmentToBuffer, aBuf, aCount, _retval);
19065}
19066
19067NS_IMETHODIMPnsresult
19068ObjectStoreAddOrPutRequestOp::SCInputStream::ReadSegments(
19069 nsWriteSegmentFun aWriter, void* aClosure, uint32_t aCount,
19070 uint32_t* _retval) {
19071 *_retval = 0;
19072
19073 while (aCount) {
19074 uint32_t count = std::min(uint32_t(mIter.RemainingInSegment()), aCount);
19075 if (!count) {
19076 // We've run out of data in the last segment.
19077 break;
19078 }
19079
19080 uint32_t written;
19081 nsresult rv =
19082 aWriter(this, aClosure, mIter.Data(), *_retval, count, &written);
19083 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"
, 19083)
) {
19084 // InputStreams do not propagate errors to caller.
19085 return NS_OK;
19086 }
19087
19088 // Writer should write what we asked it to write.
19089 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"
, 19089); AnnotateMozCrashReason("MOZ_ASSERT" "(" "written == count"
")"); do { *((volatile int*)__null) = 19089; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19090
19091 *_retval += count;
19092 aCount -= count;
19093
19094 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"
, 19094)
) {
19095 // InputStreams do not propagate errors to caller.
19096 return NS_OK;
19097 }
19098 }
19099
19100 return NS_OK;
19101}
19102
19103NS_IMETHODIMPnsresult
19104ObjectStoreAddOrPutRequestOp::SCInputStream::IsNonBlocking(bool* _retval) {
19105 *_retval = false;
19106 return NS_OK;
19107}
19108
19109ObjectStoreGetRequestOp::ObjectStoreGetRequestOp(
19110 SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId,
19111 const RequestParams& aParams, bool aGetAll)
19112 : NormalTransactionOp(std::move(aTransaction), aRequestId),
19113 mObjectStoreId(aGetAll
19114 ? aParams.get_ObjectStoreGetAllParams().objectStoreId()
19115 : aParams.get_ObjectStoreGetParams().objectStoreId()),
19116 mDatabase(Transaction().GetDatabasePtr()),
19117 mOptionalKeyRange(
19118 aGetAll ? aParams.get_ObjectStoreGetAllParams().optionalKeyRange()
19119 : Some(aParams.get_ObjectStoreGetParams().keyRange())),
19120 mBackgroundParent(Transaction().GetBackgroundParent()),
19121 mPreprocessInfoCount(0),
19122 mLimit(aGetAll ? aParams.get_ObjectStoreGetAllParams().limit() : 1),
19123 mGetAll(aGetAll) {
19124 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"
, 19125); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreGetParams || aParams.type() == RequestParams::TObjectStoreGetAllParams"
")"); do { *((volatile int*)__null) = 19125; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
19125 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"
, 19125); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreGetParams || aParams.type() == RequestParams::TObjectStoreGetAllParams"
")"); do { *((volatile int*)__null) = 19125; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19126 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"
, 19126); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mObjectStoreId"
")"); do { *((volatile int*)__null) = 19126; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19127 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"
, 19127); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase"
")"); do { *((volatile int*)__null) = 19127; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19128 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"
, 19128); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()"
")"); do { *((volatile int*)__null) = 19128; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19129 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"
, 19129); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mBackgroundParent"
")"); do { *((volatile int*)__null) = 19129; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19130}
19131
19132template <typename T>
19133Result<T, nsresult> ObjectStoreGetRequestOp::ConvertResponse(
19134 StructuredCloneReadInfoParent&& aInfo) {
19135 T result;
19136
19137 static_assert(std::is_same_v<T, SerializedStructuredCloneReadInfo> ||
19138 std::is_same_v<T, PreprocessInfo>);
19139
19140 if constexpr (std::is_same_v<T, SerializedStructuredCloneReadInfo>) {
19141 result.data().data = aInfo.ReleaseData();
19142 result.hasPreprocessInfo() = aInfo.HasPreprocessInfo();
19143 }
19144
19145 QM_TRY_UNWRAP(result.files(), SerializeStructuredCloneFiles(auto tryResult1446 = (SerializeStructuredCloneFiles( mDatabase
, aInfo.Files(), std::is_same_v<T, PreprocessInfo>)); if
((__builtin_expect(!!(tryResult1446.isErr()), 0))) { mozilla
::dom::quota::HandleError("SerializeStructuredCloneFiles( mDatabase, aInfo.Files(), std::is_same_v<T, PreprocessInfo>)"
, tryResult1446.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19147, mozilla::dom::quota::Severity::Error); return tryResult1446
.propagateErr(); } result.files() = tryResult1446.unwrap();
19146 mDatabase, aInfo.Files(),auto tryResult1446 = (SerializeStructuredCloneFiles( mDatabase
, aInfo.Files(), std::is_same_v<T, PreprocessInfo>)); if
((__builtin_expect(!!(tryResult1446.isErr()), 0))) { mozilla
::dom::quota::HandleError("SerializeStructuredCloneFiles( mDatabase, aInfo.Files(), std::is_same_v<T, PreprocessInfo>)"
, tryResult1446.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19147, mozilla::dom::quota::Severity::Error); return tryResult1446
.propagateErr(); } result.files() = tryResult1446.unwrap();
19147 std::is_same_v<T, PreprocessInfo>))auto tryResult1446 = (SerializeStructuredCloneFiles( mDatabase
, aInfo.Files(), std::is_same_v<T, PreprocessInfo>)); if
((__builtin_expect(!!(tryResult1446.isErr()), 0))) { mozilla
::dom::quota::HandleError("SerializeStructuredCloneFiles( mDatabase, aInfo.Files(), std::is_same_v<T, PreprocessInfo>)"
, tryResult1446.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19147, mozilla::dom::quota::Severity::Error); return tryResult1446
.propagateErr(); } result.files() = tryResult1446.unwrap();
;
19148
19149 return result;
19150}
19151
19152nsresult ObjectStoreGetRequestOp::DoDatabaseWork(
19153 DatabaseConnection* aConnection) {
19154 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"
, 19154); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 19154; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19155 aConnection->AssertIsOnConnectionThread();
19156 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"
, 19156); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()"
")"); do { *((volatile int*)__null) = 19156; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19157 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"
, 19157); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLimit == 1"
")"); do { *((volatile int*)__null) = 19157; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19158
19159 AUTO_PROFILER_LABEL("ObjectStoreGetRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19159( "ObjectStoreGetRequestOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
19160
19161 const nsCString query =
19162 "SELECT file_ids, data "
19163 "FROM object_data "
19164 "WHERE object_store_id = :"_ns +
19165 kStmtParamNameObjectStoreId +
19166 MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameKey) +
19167 " ORDER BY key ASC"_ns +
19168 (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString());
19169
19170 QM_TRY_INSPECT(const auto& stmt, aConnection->BorrowCachedStatement(query))auto tryResult1447 = (aConnection->BorrowCachedStatement(query
)); if ((__builtin_expect(!!(tryResult1447.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(query)"
, tryResult1447.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19170, mozilla::dom::quota::Severity::Error); return tryResult1447
.propagateErr(); } const auto& stmt = tryResult1447.inspect
();
;
19171
19172 QM_TRY(MOZ_TO_RESULT({auto tryResult1448 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId
, mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1448)::ok_type>); if ((__builtin_expect
(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))"
, tryResult1448.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19173, mozilla::dom::quota::Severity::Error); return tryResult1448
.propagateErr(); }}
19173 stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))){auto tryResult1448 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId
, mObjectStoreId))); static_assert(std::is_empty_v<typename
decltype(tryResult1448)::ok_type>); if ((__builtin_expect
(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))"
, tryResult1448.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19173, mozilla::dom::quota::Severity::Error); return tryResult1448
.propagateErr(); }}
;
19174
19175 if (mOptionalKeyRange.isSome()) {
19176 QM_TRY(MOZ_TO_RESULT({auto tryResult1449 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange
.ref(), &*stmt))); static_assert(std::is_empty_v<typename
decltype(tryResult1449)::ok_type>); if ((__builtin_expect
(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))"
, tryResult1449.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19177, mozilla::dom::quota::Severity::Error); return tryResult1449
.propagateErr(); }}
19177 BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))){auto tryResult1449 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange
.ref(), &*stmt))); static_assert(std::is_empty_v<typename
decltype(tryResult1449)::ok_type>); if ((__builtin_expect
(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))"
, tryResult1449.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19177, mozilla::dom::quota::Severity::Error); return tryResult1449
.propagateErr(); }}
;
19178 }
19179
19180 QM_TRY(CollectWhileHasResult({auto tryResult1452 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1450 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1450.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19184, mozilla::dom::quota::Severity::Error); return tryResult1450
.propagateErr(); } auto cloneInfo = tryResult1450.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1451 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1451)::ok_type>); if ((__builtin_expect
(!!(tryResult1451.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1451.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19191, 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(tryResult1452
)::ok_type>); if ((__builtin_expect(!!(tryResult1452.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1450 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1450.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19184, mozilla::dom::quota::Severity::Error); return tryResult1450.propagateErr(); } auto cloneInfo = tryResult1450.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1451 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1451)::ok_type>); if ((__builtin_expect(!!(tryResult1451.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1451.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19191, 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{}; })"
, tryResult1452.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19194, mozilla::dom::quota::Severity::Error); return tryResult1452
.propagateErr(); }}
19181 *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {{auto tryResult1452 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1450 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1450.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19184, mozilla::dom::quota::Severity::Error); return tryResult1450
.propagateErr(); } auto cloneInfo = tryResult1450.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1451 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1451)::ok_type>); if ((__builtin_expect
(!!(tryResult1451.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1451.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19191, 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(tryResult1452
)::ok_type>); if ((__builtin_expect(!!(tryResult1452.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1450 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1450.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19184, mozilla::dom::quota::Severity::Error); return tryResult1450.propagateErr(); } auto cloneInfo = tryResult1450.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1451 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1451)::ok_type>); if ((__builtin_expect(!!(tryResult1451.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1451.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19191, 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{}; })"
, tryResult1452.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19194, mozilla::dom::quota::Severity::Error); return tryResult1452
.propagateErr(); }}
19182 QM_TRY_UNWRAP(auto cloneInfo,{auto tryResult1452 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1450 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1450.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19184, mozilla::dom::quota::Severity::Error); return tryResult1450
.propagateErr(); } auto cloneInfo = tryResult1450.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1451 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1451)::ok_type>); if ((__builtin_expect
(!!(tryResult1451.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1451.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19191, 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(tryResult1452
)::ok_type>); if ((__builtin_expect(!!(tryResult1452.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1450 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1450.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19184, mozilla::dom::quota::Severity::Error); return tryResult1450.propagateErr(); } auto cloneInfo = tryResult1450.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1451 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1451)::ok_type>); if ((__builtin_expect(!!(tryResult1451.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1451.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19191, 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{}; })"
, tryResult1452.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19194, mozilla::dom::quota::Severity::Error); return tryResult1452
.propagateErr(); }}
19183 GetStructuredCloneReadInfoFromStatement({auto tryResult1452 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1450 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1450.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19184, mozilla::dom::quota::Severity::Error); return tryResult1450
.propagateErr(); } auto cloneInfo = tryResult1450.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1451 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1451)::ok_type>); if ((__builtin_expect
(!!(tryResult1451.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1451.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19191, 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(tryResult1452
)::ok_type>); if ((__builtin_expect(!!(tryResult1452.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1450 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1450.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19184, mozilla::dom::quota::Severity::Error); return tryResult1450.propagateErr(); } auto cloneInfo = tryResult1450.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1451 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1451)::ok_type>); if ((__builtin_expect(!!(tryResult1451.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1451.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19191, 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{}; })"
, tryResult1452.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19194, mozilla::dom::quota::Severity::Error); return tryResult1452
.propagateErr(); }}
19184 &stmt, 1, 0, mDatabase->GetFileManager()));{auto tryResult1452 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1450 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1450.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19184, mozilla::dom::quota::Severity::Error); return tryResult1450
.propagateErr(); } auto cloneInfo = tryResult1450.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1451 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1451)::ok_type>); if ((__builtin_expect
(!!(tryResult1451.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1451.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19191, 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(tryResult1452
)::ok_type>); if ((__builtin_expect(!!(tryResult1452.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1450 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1450.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19184, mozilla::dom::quota::Severity::Error); return tryResult1450.propagateErr(); } auto cloneInfo = tryResult1450.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1451 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1451)::ok_type>); if ((__builtin_expect(!!(tryResult1451.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1451.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19191, 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{}; })"
, tryResult1452.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19194, mozilla::dom::quota::Severity::Error); return tryResult1452
.propagateErr(); }}
19185
19186 if (cloneInfo.HasPreprocessInfo()) {{auto tryResult1452 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1450 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1450.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19184, mozilla::dom::quota::Severity::Error); return tryResult1450
.propagateErr(); } auto cloneInfo = tryResult1450.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1451 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1451)::ok_type>); if ((__builtin_expect
(!!(tryResult1451.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1451.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19191, 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(tryResult1452
)::ok_type>); if ((__builtin_expect(!!(tryResult1452.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1450 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1450.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19184, mozilla::dom::quota::Severity::Error); return tryResult1450.propagateErr(); } auto cloneInfo = tryResult1450.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1451 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1451)::ok_type>); if ((__builtin_expect(!!(tryResult1451.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1451.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19191, 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{}; })"
, tryResult1452.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19194, mozilla::dom::quota::Severity::Error); return tryResult1452
.propagateErr(); }}
19187 mPreprocessInfoCount++;{auto tryResult1452 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1450 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1450.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19184, mozilla::dom::quota::Severity::Error); return tryResult1450
.propagateErr(); } auto cloneInfo = tryResult1450.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1451 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1451)::ok_type>); if ((__builtin_expect
(!!(tryResult1451.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1451.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19191, 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(tryResult1452
)::ok_type>); if ((__builtin_expect(!!(tryResult1452.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1450 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1450.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19184, mozilla::dom::quota::Severity::Error); return tryResult1450.propagateErr(); } auto cloneInfo = tryResult1450.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1451 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1451)::ok_type>); if ((__builtin_expect(!!(tryResult1451.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1451.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19191, 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{}; })"
, tryResult1452.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19194, mozilla::dom::quota::Severity::Error); return tryResult1452
.propagateErr(); }}
19188 }{auto tryResult1452 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1450 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1450.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19184, mozilla::dom::quota::Severity::Error); return tryResult1450
.propagateErr(); } auto cloneInfo = tryResult1450.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1451 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1451)::ok_type>); if ((__builtin_expect
(!!(tryResult1451.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1451.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19191, 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(tryResult1452
)::ok_type>); if ((__builtin_expect(!!(tryResult1452.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1450 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1450.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19184, mozilla::dom::quota::Severity::Error); return tryResult1450.propagateErr(); } auto cloneInfo = tryResult1450.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1451 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1451)::ok_type>); if ((__builtin_expect(!!(tryResult1451.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1451.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19191, 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{}; })"
, tryResult1452.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19194, mozilla::dom::quota::Severity::Error); return tryResult1452
.propagateErr(); }}
19189
19190 QM_TRY(OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo))),{auto tryResult1452 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1450 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1450.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19184, mozilla::dom::quota::Severity::Error); return tryResult1450
.propagateErr(); } auto cloneInfo = tryResult1450.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1451 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1451)::ok_type>); if ((__builtin_expect
(!!(tryResult1451.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1451.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19191, 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(tryResult1452
)::ok_type>); if ((__builtin_expect(!!(tryResult1452.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1450 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1450.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19184, mozilla::dom::quota::Severity::Error); return tryResult1450.propagateErr(); } auto cloneInfo = tryResult1450.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1451 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1451)::ok_type>); if ((__builtin_expect(!!(tryResult1451.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1451.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19191, 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{}; })"
, tryResult1452.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19194, mozilla::dom::quota::Severity::Error); return tryResult1452
.propagateErr(); }}
19191 Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult1452 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1450 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1450.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19184, mozilla::dom::quota::Severity::Error); return tryResult1450
.propagateErr(); } auto cloneInfo = tryResult1450.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1451 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1451)::ok_type>); if ((__builtin_expect
(!!(tryResult1451.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1451.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19191, 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(tryResult1452
)::ok_type>); if ((__builtin_expect(!!(tryResult1452.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1450 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1450.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19184, mozilla::dom::quota::Severity::Error); return tryResult1450.propagateErr(); } auto cloneInfo = tryResult1450.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1451 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1451)::ok_type>); if ((__builtin_expect(!!(tryResult1451.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1451.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19191, 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{}; })"
, tryResult1452.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19194, mozilla::dom::quota::Severity::Error); return tryResult1452
.propagateErr(); }}
19192
19193 return Ok{};{auto tryResult1452 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1450 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1450.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19184, mozilla::dom::quota::Severity::Error); return tryResult1450
.propagateErr(); } auto cloneInfo = tryResult1450.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1451 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1451)::ok_type>); if ((__builtin_expect
(!!(tryResult1451.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1451.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19191, 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(tryResult1452
)::ok_type>); if ((__builtin_expect(!!(tryResult1452.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1450 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1450.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19184, mozilla::dom::quota::Severity::Error); return tryResult1450.propagateErr(); } auto cloneInfo = tryResult1450.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1451 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1451)::ok_type>); if ((__builtin_expect(!!(tryResult1451.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1451.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19191, 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{}; })"
, tryResult1452.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19194, mozilla::dom::quota::Severity::Error); return tryResult1452
.propagateErr(); }}
19194 })){auto tryResult1452 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1450 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1450.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19184, mozilla::dom::quota::Severity::Error); return tryResult1450
.propagateErr(); } auto cloneInfo = tryResult1450.unwrap();; if
(cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {
auto tryResult1451 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1451)::ok_type>); if ((__builtin_expect
(!!(tryResult1451.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1451.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19191, 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(tryResult1452
)::ok_type>); if ((__builtin_expect(!!(tryResult1452.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1450 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1450.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19184, mozilla::dom::quota::Severity::Error); return tryResult1450.propagateErr(); } auto cloneInfo = tryResult1450.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1451 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1451)::ok_type>); if ((__builtin_expect(!!(tryResult1451.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1451.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19191, 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{}; })"
, tryResult1452.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19194, mozilla::dom::quota::Severity::Error); return tryResult1452
.propagateErr(); }}
;
19195
19196 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"
, 19196); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1"
")"); do { *((volatile int*)__null) = 19196; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19197
19198 return NS_OK;
19199}
19200
19201bool ObjectStoreGetRequestOp::HasPreprocessInfo() {
19202 return mPreprocessInfoCount > 0;
19203}
19204
19205Result<PreprocessParams, nsresult>
19206ObjectStoreGetRequestOp::GetPreprocessParams() {
19207 AssertIsOnOwningThread();
19208 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"
, 19208); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mResponse.IsEmpty()"
")"); do { *((volatile int*)__null) = 19208; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19209
19210 if (mGetAll) {
19211 auto params = ObjectStoreGetAllPreprocessParams();
19212
19213 auto& preprocessInfos = params.preprocessInfos();
19214 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"
, 19215)
19215 !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"
, 19215)
) {
19216 return Err(NS_ERROR_OUT_OF_MEMORY);
19217 }
19218
19219 QM_TRY(TransformIfAbortOnErr({auto tryResult1453 = (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(tryResult1453)::ok_type>); if ((__builtin_expect
(!!(tryResult1453.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)); })"
, tryResult1453.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19226, mozilla::dom::quota::Severity::Error); return tryResult1453
.propagateErr(); }}
19220 std::make_move_iterator(mResponse.begin()),{auto tryResult1453 = (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(tryResult1453)::ok_type>); if ((__builtin_expect
(!!(tryResult1453.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)); })"
, tryResult1453.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19226, mozilla::dom::quota::Severity::Error); return tryResult1453
.propagateErr(); }}
19221 std::make_move_iterator(mResponse.end()),{auto tryResult1453 = (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(tryResult1453)::ok_type>); if ((__builtin_expect
(!!(tryResult1453.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)); })"
, tryResult1453.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19226, mozilla::dom::quota::Severity::Error); return tryResult1453
.propagateErr(); }}
19222 MakeBackInserter(preprocessInfos),{auto tryResult1453 = (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(tryResult1453)::ok_type>); if ((__builtin_expect
(!!(tryResult1453.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)); })"
, tryResult1453.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19226, mozilla::dom::quota::Severity::Error); return tryResult1453
.propagateErr(); }}
19223 [](const auto& info) { return info.HasPreprocessInfo(); },{auto tryResult1453 = (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(tryResult1453)::ok_type>); if ((__builtin_expect
(!!(tryResult1453.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)); })"
, tryResult1453.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19226, mozilla::dom::quota::Severity::Error); return tryResult1453
.propagateErr(); }}
19224 [&self = *this](StructuredCloneReadInfoParent&& info) {{auto tryResult1453 = (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(tryResult1453)::ok_type>); if ((__builtin_expect
(!!(tryResult1453.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)); })"
, tryResult1453.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19226, mozilla::dom::quota::Severity::Error); return tryResult1453
.propagateErr(); }}
19225 return self.ConvertResponse<PreprocessInfo>(std::move(info));{auto tryResult1453 = (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(tryResult1453)::ok_type>); if ((__builtin_expect
(!!(tryResult1453.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)); })"
, tryResult1453.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19226, mozilla::dom::quota::Severity::Error); return tryResult1453
.propagateErr(); }}
19226 })){auto tryResult1453 = (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(tryResult1453)::ok_type>); if ((__builtin_expect
(!!(tryResult1453.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)); })"
, tryResult1453.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19226, mozilla::dom::quota::Severity::Error); return tryResult1453
.propagateErr(); }}
;
19227
19228 return PreprocessParams{std::move(params)};
19229 }
19230
19231 auto params = ObjectStoreGetPreprocessParams();
19232
19233 QM_TRY_UNWRAP(params.preprocessInfo(),auto tryResult1454 = (ConvertResponse<PreprocessInfo>(std
::move(mResponse[0]))); if ((__builtin_expect(!!(tryResult1454
.isErr()), 0))) { mozilla::dom::quota::HandleError("ConvertResponse<PreprocessInfo>(std::move(mResponse[0]))"
, tryResult1454.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19234, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } params.preprocessInfo() = tryResult1454.unwrap
();
19234 ConvertResponse<PreprocessInfo>(std::move(mResponse[0])))auto tryResult1454 = (ConvertResponse<PreprocessInfo>(std
::move(mResponse[0]))); if ((__builtin_expect(!!(tryResult1454
.isErr()), 0))) { mozilla::dom::quota::HandleError("ConvertResponse<PreprocessInfo>(std::move(mResponse[0]))"
, tryResult1454.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19234, mozilla::dom::quota::Severity::Error); return tryResult1454
.propagateErr(); } params.preprocessInfo() = tryResult1454.unwrap
();
;
19235
19236 return PreprocessParams{std::move(params)};
19237}
19238
19239void ObjectStoreGetRequestOp::GetResponse(RequestResponse& aResponse,
19240 size_t* aResponseSize) {
19241 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"
, 19241); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= mLimit"
")"); do { *((volatile int*)__null) = 19241; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19242
19243 if (mGetAll) {
19244 aResponse = ObjectStoreGetAllResponse();
19245 *aResponseSize = 0;
19246
19247 if (!mResponse.IsEmpty()) {
19248 QM_TRY_UNWRAP(auto tryResult1455 = (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(!!(tryResult1455.isErr())
, 0))) { auto tryTempError = tryResult1455.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"
, 19259, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1455.unwrap();
19249 aResponse.get_ObjectStoreGetAllResponse().cloneInfos(),auto tryResult1455 = (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(!!(tryResult1455.isErr())
, 0))) { auto tryTempError = tryResult1455.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"
, 19259, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1455.unwrap();
19250 TransformIntoNewArrayAbortOnErr(auto tryResult1455 = (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(!!(tryResult1455.isErr())
, 0))) { auto tryTempError = tryResult1455.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"
, 19259, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1455.unwrap();
19251 std::make_move_iterator(mResponse.begin()),auto tryResult1455 = (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(!!(tryResult1455.isErr())
, 0))) { auto tryTempError = tryResult1455.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"
, 19259, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1455.unwrap();
19252 std::make_move_iterator(mResponse.end()),auto tryResult1455 = (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(!!(tryResult1455.isErr())
, 0))) { auto tryTempError = tryResult1455.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"
, 19259, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1455.unwrap();
19253 [this, &aResponseSize](StructuredCloneReadInfoParent&& info) {auto tryResult1455 = (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(!!(tryResult1455.isErr())
, 0))) { auto tryTempError = tryResult1455.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"
, 19259, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1455.unwrap();
19254 *aResponseSize += info.Size();auto tryResult1455 = (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(!!(tryResult1455.isErr())
, 0))) { auto tryTempError = tryResult1455.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"
, 19259, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1455.unwrap();
19255 return ConvertResponse<SerializedStructuredCloneReadInfo>(auto tryResult1455 = (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(!!(tryResult1455.isErr())
, 0))) { auto tryTempError = tryResult1455.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"
, 19259, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1455.unwrap();
19256 std::move(info));auto tryResult1455 = (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(!!(tryResult1455.isErr())
, 0))) { auto tryTempError = tryResult1455.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"
, 19259, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1455.unwrap();
19257 },auto tryResult1455 = (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(!!(tryResult1455.isErr())
, 0))) { auto tryTempError = tryResult1455.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"
, 19259, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1455.unwrap();
19258 fallible),auto tryResult1455 = (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(!!(tryResult1455.isErr())
, 0))) { auto tryTempError = tryResult1455.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"
, 19259, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1455.unwrap();
19259 QM_VOID, [&aResponse](const nsresult result) { aResponse = result; })auto tryResult1455 = (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(!!(tryResult1455.isErr())
, 0))) { auto tryTempError = tryResult1455.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"
, 19259, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_ObjectStoreGetAllResponse
().cloneInfos() = tryResult1455.unwrap();
;
19260 }
19261
19262 return;
19263 }
19264
19265 aResponse = ObjectStoreGetResponse();
19266 *aResponseSize = 0;
19267
19268 if (!mResponse.IsEmpty()) {
19269 SerializedStructuredCloneReadInfo& serializedInfo =
19270 aResponse.get_ObjectStoreGetResponse().cloneInfo();
19271
19272 *aResponseSize += mResponse[0].Size();
19273 QM_TRY_UNWRAP(serializedInfo,auto tryResult1456 = (ConvertResponse<SerializedStructuredCloneReadInfo
>( std::move(mResponse[0]))); if ((__builtin_expect(!!(tryResult1456
.isErr()), 0))) { auto tryTempError = tryResult1456.unwrapErr
(); mozilla::dom::quota::HandleError("ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(mResponse[0]))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19277, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } serializedInfo = tryResult1456.unwrap
();
19274 ConvertResponse<SerializedStructuredCloneReadInfo>(auto tryResult1456 = (ConvertResponse<SerializedStructuredCloneReadInfo
>( std::move(mResponse[0]))); if ((__builtin_expect(!!(tryResult1456
.isErr()), 0))) { auto tryTempError = tryResult1456.unwrapErr
(); mozilla::dom::quota::HandleError("ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(mResponse[0]))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19277, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } serializedInfo = tryResult1456.unwrap
();
19275 std::move(mResponse[0])),auto tryResult1456 = (ConvertResponse<SerializedStructuredCloneReadInfo
>( std::move(mResponse[0]))); if ((__builtin_expect(!!(tryResult1456
.isErr()), 0))) { auto tryTempError = tryResult1456.unwrapErr
(); mozilla::dom::quota::HandleError("ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(mResponse[0]))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19277, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } serializedInfo = tryResult1456.unwrap
();
19276 QM_VOID,auto tryResult1456 = (ConvertResponse<SerializedStructuredCloneReadInfo
>( std::move(mResponse[0]))); if ((__builtin_expect(!!(tryResult1456
.isErr()), 0))) { auto tryTempError = tryResult1456.unwrapErr
(); mozilla::dom::quota::HandleError("ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(mResponse[0]))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19277, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } serializedInfo = tryResult1456.unwrap
();
19277 [&aResponse](const nsresult result) { aResponse = result; })auto tryResult1456 = (ConvertResponse<SerializedStructuredCloneReadInfo
>( std::move(mResponse[0]))); if ((__builtin_expect(!!(tryResult1456
.isErr()), 0))) { auto tryTempError = tryResult1456.unwrapErr
(); mozilla::dom::quota::HandleError("ConvertResponse<SerializedStructuredCloneReadInfo>( std::move(mResponse[0]))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19277, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } serializedInfo = tryResult1456.unwrap
();
;
19278 }
19279}
19280
19281ObjectStoreGetKeyRequestOp::ObjectStoreGetKeyRequestOp(
19282 SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId,
19283 const RequestParams& aParams, bool aGetAll)
19284 : NormalTransactionOp(std::move(aTransaction), aRequestId),
19285 mObjectStoreId(
19286 aGetAll ? aParams.get_ObjectStoreGetAllKeysParams().objectStoreId()
19287 : aParams.get_ObjectStoreGetKeyParams().objectStoreId()),
19288 mOptionalKeyRange(
19289 aGetAll ? aParams.get_ObjectStoreGetAllKeysParams().optionalKeyRange()
19290 : Some(aParams.get_ObjectStoreGetKeyParams().keyRange())),
19291 mLimit(aGetAll ? aParams.get_ObjectStoreGetAllKeysParams().limit() : 1),
19292 mGetAll(aGetAll) {
19293 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"
, 19294); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreGetKeyParams || aParams.type() == RequestParams::TObjectStoreGetAllKeysParams"
")"); do { *((volatile int*)__null) = 19294; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
19294 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"
, 19294); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreGetKeyParams || aParams.type() == RequestParams::TObjectStoreGetAllKeysParams"
")"); do { *((volatile int*)__null) = 19294; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19295 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"
, 19295); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mObjectStoreId"
")"); do { *((volatile int*)__null) = 19295; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19296 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"
, 19296); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()"
")"); do { *((volatile int*)__null) = 19296; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19297}
19298
19299nsresult ObjectStoreGetKeyRequestOp::DoDatabaseWork(
19300 DatabaseConnection* aConnection) {
19301 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"
, 19301); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 19301; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19302 aConnection->AssertIsOnConnectionThread();
19303
19304 AUTO_PROFILER_LABEL("ObjectStoreGetKeyRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19304( "ObjectStoreGetKeyRequestOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
19305
19306 const nsCString query =
19307 "SELECT key "
19308 "FROM object_data "
19309 "WHERE object_store_id = :"_ns +
19310 kStmtParamNameObjectStoreId +
19311 MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameKey) +
19312 " ORDER BY key ASC"_ns +
19313 (mLimit ? " LIMIT "_ns + IntToCString(mLimit) : EmptyCString());
19314
19315 QM_TRY_INSPECT(const auto& stmt, aConnection->BorrowCachedStatement(query))auto tryResult1457 = (aConnection->BorrowCachedStatement(query
)); if ((__builtin_expect(!!(tryResult1457.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(query)"
, tryResult1457.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19315, mozilla::dom::quota::Severity::Error); return tryResult1457
.propagateErr(); } const auto& stmt = tryResult1457.inspect
();
;
19316
19317 nsresult rv =
19318 stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId);
19319 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"
, 19319)
) {
19320 return rv;
19321 }
19322
19323 if (mOptionalKeyRange.isSome()) {
19324 rv = BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt);
19325 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"
, 19325)
) {
19326 return rv;
19327 }
19328 }
19329
19330 QM_TRY(CollectWhileHasResult({auto tryResult1460 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1458
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19333, 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 tryResult1459 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1459)::ok_type>);
if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1459.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19334, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect
(!!(tryResult1460.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1458 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19333, 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 tryResult1459 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1459.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19334, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; return Ok{}; })"
, tryResult1460.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19337, mozilla::dom::quota::Severity::Error); return tryResult1460
.propagateErr(); }}
19331 *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {{auto tryResult1460 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1458
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19333, 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 tryResult1459 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1459)::ok_type>);
if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1459.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19334, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect
(!!(tryResult1460.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1458 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19333, 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 tryResult1459 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1459.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19334, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; return Ok{}; })"
, tryResult1460.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19337, mozilla::dom::quota::Severity::Error); return tryResult1460
.propagateErr(); }}
19332 Key* const key = mResponse.AppendElement(fallible);{auto tryResult1460 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1458
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19333, 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 tryResult1459 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1459)::ok_type>);
if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1459.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19334, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect
(!!(tryResult1460.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1458 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19333, 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 tryResult1459 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1459.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19334, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; return Ok{}; })"
, tryResult1460.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19337, mozilla::dom::quota::Severity::Error); return tryResult1460
.propagateErr(); }}
19333 QM_TRY(OkIf(key), Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult1460 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1458
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19333, 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 tryResult1459 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1459)::ok_type>);
if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1459.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19334, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect
(!!(tryResult1460.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1458 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19333, 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 tryResult1459 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1459.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19334, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; return Ok{}; })"
, tryResult1460.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19337, mozilla::dom::quota::Severity::Error); return tryResult1460
.propagateErr(); }}
19334 QM_TRY(MOZ_TO_RESULT(key->SetFromStatement(&stmt, 0)));{auto tryResult1460 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1458
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19333, 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 tryResult1459 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1459)::ok_type>);
if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1459.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19334, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect
(!!(tryResult1460.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1458 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19333, 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 tryResult1459 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1459.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19334, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; return Ok{}; })"
, tryResult1460.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19337, mozilla::dom::quota::Severity::Error); return tryResult1460
.propagateErr(); }}
19335
19336 return Ok{};{auto tryResult1460 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1458
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19333, 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 tryResult1459 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1459)::ok_type>);
if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1459.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19334, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect
(!!(tryResult1460.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1458 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19333, 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 tryResult1459 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1459.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19334, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; return Ok{}; })"
, tryResult1460.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19337, mozilla::dom::quota::Severity::Error); return tryResult1460
.propagateErr(); }}
19337 })){auto tryResult1460 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1458
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19333, 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 tryResult1459 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1459)::ok_type>);
if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1459.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19334, mozilla::dom::quota::Severity::Error); return tryResult1459
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1460)::ok_type>); if ((__builtin_expect
(!!(tryResult1460.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1458 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1458)::ok_type>); if ((__builtin_expect(!!(tryResult1458.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1458.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19333, 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 tryResult1459 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1459)::ok_type>); if ((__builtin_expect(!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1459.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19334, mozilla::dom::quota::Severity::Error); return tryResult1459.propagateErr(); }}; return Ok{}; })"
, tryResult1460.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19337, mozilla::dom::quota::Severity::Error); return tryResult1460
.propagateErr(); }}
;
19338
19339 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"
, 19339); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1"
")"); do { *((volatile int*)__null) = 19339; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19340
19341 return NS_OK;
19342}
19343
19344void ObjectStoreGetKeyRequestOp::GetResponse(RequestResponse& aResponse,
19345 size_t* aResponseSize) {
19346 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"
, 19346); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= mLimit"
")"); do { *((volatile int*)__null) = 19346; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19347
19348 if (mGetAll) {
19349 aResponse = ObjectStoreGetAllKeysResponse();
19350 *aResponseSize = std::accumulate(mResponse.begin(), mResponse.end(), 0u,
19351 [](size_t old, const auto& entry) {
19352 return old + entry.GetBuffer().Length();
19353 });
19354
19355 aResponse.get_ObjectStoreGetAllKeysResponse().keys() = std::move(mResponse);
19356
19357 return;
19358 }
19359
19360 aResponse = ObjectStoreGetKeyResponse();
19361 *aResponseSize = 0;
19362
19363 if (!mResponse.IsEmpty()) {
19364 *aResponseSize = mResponse[0].GetBuffer().Length();
19365 aResponse.get_ObjectStoreGetKeyResponse().key() = std::move(mResponse[0]);
19366 }
19367}
19368
19369ObjectStoreDeleteRequestOp::ObjectStoreDeleteRequestOp(
19370 SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId,
19371 const ObjectStoreDeleteParams& aParams)
19372 : NormalTransactionOp(std::move(aTransaction), aRequestId),
19373 mParams(aParams),
19374 mObjectStoreMayHaveIndexes(false) {
19375 AssertIsOnBackgroundThread();
19376
19377 SafeRefPtr<FullObjectStoreMetadata> metadata =
19378 Transaction().GetMetadataForObjectStoreId(mParams.objectStoreId());
19379 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"
, 19379); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 19379; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
19380
19381 mObjectStoreMayHaveIndexes = metadata->HasLiveIndexes();
19382}
19383
19384nsresult ObjectStoreDeleteRequestOp::DoDatabaseWork(
19385 DatabaseConnection* aConnection) {
19386 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"
, 19386); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 19386; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19387 aConnection->AssertIsOnConnectionThread();
19388 AUTO_PROFILER_LABEL("ObjectStoreDeleteRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19388( "ObjectStoreDeleteRequestOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
19389
19390 DatabaseConnection::AutoSavepoint autoSave;
19391 QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1461 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461
.isErr()), 0))) { auto tryTempError = tryResult1461.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19396, 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)); }}
19392#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1461 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461
.isErr()), 0))) { auto tryTempError = tryResult1461.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19396, 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)); }}
19393 ,{auto tryResult1461 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461
.isErr()), 0))) { auto tryTempError = tryResult1461.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19396, 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)); }}
19394 QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1461 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461
.isErr()), 0))) { auto tryTempError = tryResult1461.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19396, 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)); }}
19395#endif{auto tryResult1461 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461
.isErr()), 0))) { auto tryTempError = tryResult1461.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19396, 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)); }}
19396 ){auto tryResult1461 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461
.isErr()), 0))) { auto tryTempError = tryResult1461.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19396, 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)); }}
;
19397
19398 QM_TRY_INSPECT(const bool& objectStoreHasIndexes,auto tryResult1462 = (ObjectStoreHasIndexes(*aConnection, mParams
.objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)"
, tryResult1462.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19400, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); } const bool& objectStoreHasIndexes = tryResult1462
.inspect();
19399 ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(),auto tryResult1462 = (ObjectStoreHasIndexes(*aConnection, mParams
.objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)"
, tryResult1462.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19400, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); } const bool& objectStoreHasIndexes = tryResult1462
.inspect();
19400 mObjectStoreMayHaveIndexes))auto tryResult1462 = (ObjectStoreHasIndexes(*aConnection, mParams
.objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect
(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError
("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)"
, tryResult1462.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19400, mozilla::dom::quota::Severity::Error); return tryResult1462
.propagateErr(); } const bool& objectStoreHasIndexes = tryResult1462
.inspect();
;
19401
19402 if (objectStoreHasIndexes) {
19403 QM_TRY(MOZ_TO_RESULT(DeleteObjectStoreDataTableRowsWithIndexes({auto tryResult1463 = (ToResult(DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mParams.objectStoreId(), Some(mParams.keyRange
())))); static_assert(std::is_empty_v<typename decltype(tryResult1463
)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Some(mParams.keyRange())))"
, tryResult1463.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19404, mozilla::dom::quota::Severity::Error); return tryResult1463
.propagateErr(); }}
19404 aConnection, mParams.objectStoreId(), Some(mParams.keyRange())))){auto tryResult1463 = (ToResult(DeleteObjectStoreDataTableRowsWithIndexes
( aConnection, mParams.objectStoreId(), Some(mParams.keyRange
())))); static_assert(std::is_empty_v<typename decltype(tryResult1463
)::ok_type>); if ((__builtin_expect(!!(tryResult1463.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Some(mParams.keyRange())))"
, tryResult1463.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19404, mozilla::dom::quota::Severity::Error); return tryResult1463
.propagateErr(); }}
;
19405 } else {
19406 const auto keyRangeClause =
19407 GetBindingClauseForKeyRange(mParams.keyRange(), kColumnNameKey);
19408
19409 QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1466 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1464 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1464
)::ok_type>); if ((__builtin_expect(!!(tryResult1464.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1464.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19416, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); }}; {auto tryResult1465 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect
(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1465.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19419, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect
(!!(tryResult1466.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 tryResult1464 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1464)::ok_type>); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1464.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19416, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); }}; {auto tryResult1465 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1465.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19419, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; return Ok{}; }))"
, tryResult1466.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19422, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}
19410 "DELETE FROM object_data "{auto tryResult1466 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1464 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1464
)::ok_type>); if ((__builtin_expect(!!(tryResult1464.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1464.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19416, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); }}; {auto tryResult1465 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect
(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1465.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19419, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect
(!!(tryResult1466.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 tryResult1464 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1464)::ok_type>); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1464.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19416, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); }}; {auto tryResult1465 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1465.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19419, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; return Ok{}; }))"
, tryResult1466.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19422, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}
19411 "WHERE object_store_id = :"_ns +{auto tryResult1466 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1464 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1464
)::ok_type>); if ((__builtin_expect(!!(tryResult1464.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1464.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19416, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); }}; {auto tryResult1465 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect
(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1465.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19419, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect
(!!(tryResult1466.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 tryResult1464 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1464)::ok_type>); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1464.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19416, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); }}; {auto tryResult1465 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1465.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19419, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; return Ok{}; }))"
, tryResult1466.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19422, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}
19412 kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns,{auto tryResult1466 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1464 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1464
)::ok_type>); if ((__builtin_expect(!!(tryResult1464.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1464.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19416, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); }}; {auto tryResult1465 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect
(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1465.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19419, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect
(!!(tryResult1466.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 tryResult1464 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1464)::ok_type>); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1464.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19416, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); }}; {auto tryResult1465 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1465.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19419, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; return Ok{}; }))"
, tryResult1466.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19422, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}
19413 [&params = mParams]({auto tryResult1466 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1464 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1464
)::ok_type>); if ((__builtin_expect(!!(tryResult1464.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1464.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19416, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); }}; {auto tryResult1465 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect
(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1465.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19419, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect
(!!(tryResult1466.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 tryResult1464 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1464)::ok_type>); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1464.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19416, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); }}; {auto tryResult1465 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1465.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19419, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; return Ok{}; }))"
, tryResult1466.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19422, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}
19414 mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> {{auto tryResult1466 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1464 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1464
)::ok_type>); if ((__builtin_expect(!!(tryResult1464.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1464.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19416, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); }}; {auto tryResult1465 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect
(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1465.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19419, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect
(!!(tryResult1466.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 tryResult1464 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1464)::ok_type>); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1464.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19416, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); }}; {auto tryResult1465 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1465.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19419, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; return Ok{}; }))"
, tryResult1466.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19422, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}
19415 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByName(kStmtParamNameObjectStoreId,{auto tryResult1466 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1464 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1464
)::ok_type>); if ((__builtin_expect(!!(tryResult1464.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1464.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19416, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); }}; {auto tryResult1465 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect
(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1465.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19419, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect
(!!(tryResult1466.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 tryResult1464 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1464)::ok_type>); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1464.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19416, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); }}; {auto tryResult1465 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1465.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19419, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; return Ok{}; }))"
, tryResult1466.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19422, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}
19416 params.objectStoreId())));{auto tryResult1466 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1464 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1464
)::ok_type>); if ((__builtin_expect(!!(tryResult1464.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1464.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19416, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); }}; {auto tryResult1465 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect
(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1465.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19419, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect
(!!(tryResult1466.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 tryResult1464 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1464)::ok_type>); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1464.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19416, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); }}; {auto tryResult1465 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1465.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19419, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; return Ok{}; }))"
, tryResult1466.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19422, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}
19417
19418 QM_TRY({auto tryResult1466 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1464 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1464
)::ok_type>); if ((__builtin_expect(!!(tryResult1464.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1464.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19416, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); }}; {auto tryResult1465 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect
(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1465.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19419, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect
(!!(tryResult1466.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 tryResult1464 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1464)::ok_type>); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1464.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19416, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); }}; {auto tryResult1465 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1465.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19419, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; return Ok{}; }))"
, tryResult1466.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19422, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}
19419 MOZ_TO_RESULT(BindKeyRangeToStatement(params.keyRange(), &stmt)));{auto tryResult1466 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1464 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1464
)::ok_type>); if ((__builtin_expect(!!(tryResult1464.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1464.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19416, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); }}; {auto tryResult1465 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect
(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1465.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19419, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect
(!!(tryResult1466.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 tryResult1464 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1464)::ok_type>); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1464.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19416, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); }}; {auto tryResult1465 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1465.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19419, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; return Ok{}; }))"
, tryResult1466.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19422, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}
19420
19421 return Ok{};{auto tryResult1466 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1464 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1464
)::ok_type>); if ((__builtin_expect(!!(tryResult1464.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1464.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19416, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); }}; {auto tryResult1465 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect
(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1465.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19419, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect
(!!(tryResult1466.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 tryResult1464 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1464)::ok_type>); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1464.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19416, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); }}; {auto tryResult1465 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1465.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19419, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; return Ok{}; }))"
, tryResult1466.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19422, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}
19422 }))){auto tryResult1466 = (ToResult(aConnection->ExecuteCachedStatement
( "DELETE FROM object_data " "WHERE object_store_id = :"_ns +
kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [&
params = mParams]( mozIStorageStatement& stmt) -> mozilla
::Result<Ok, nsresult> { {auto tryResult1464 = (ToResult
(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId
()))); static_assert(std::is_empty_v<typename decltype(tryResult1464
)::ok_type>); if ((__builtin_expect(!!(tryResult1464.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1464.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19416, mozilla::dom::quota::Severity::Error); return tryResult1464
.propagateErr(); }}; {auto tryResult1465 = (ToResult(BindKeyRangeToStatement
(params.keyRange(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect
(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))"
, tryResult1465.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19419, mozilla::dom::quota::Severity::Error); return tryResult1465
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1466)::ok_type>); if ((__builtin_expect
(!!(tryResult1466.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 tryResult1464 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1464)::ok_type>); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1464.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19416, mozilla::dom::quota::Severity::Error); return tryResult1464.propagateErr(); }}; {auto tryResult1465 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect(!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1465.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19419, mozilla::dom::quota::Severity::Error); return tryResult1465.propagateErr(); }}; return Ok{}; }))"
, tryResult1466.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19422, mozilla::dom::quota::Severity::Error); return tryResult1466
.propagateErr(); }}
;
19423 }
19424
19425 QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1467 = (ToResult(autoSave.Commit())); static_assert
(std::is_empty_v<typename decltype(tryResult1467)::ok_type
>); if ((__builtin_expect(!!(tryResult1467.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())"
, tryResult1467.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19425, mozilla::dom::quota::Severity::Error); return tryResult1467
.propagateErr(); }}
;
19426
19427 return NS_OK;
19428}
19429
19430ObjectStoreClearRequestOp::ObjectStoreClearRequestOp(
19431 SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId,
19432 const ObjectStoreClearParams& aParams)
19433 : NormalTransactionOp(std::move(aTransaction), aRequestId),
19434 mParams(aParams),
19435 mObjectStoreMayHaveIndexes(false) {
19436 AssertIsOnBackgroundThread();
19437
19438 SafeRefPtr<FullObjectStoreMetadata> metadata =
19439 Transaction().GetMetadataForObjectStoreId(mParams.objectStoreId());
19440 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"
, 19440); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")"
); do { *((volatile int*)__null) = 19440; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
19441
19442 mObjectStoreMayHaveIndexes = metadata->HasLiveIndexes();
19443}
19444
19445nsresult ObjectStoreClearRequestOp::DoDatabaseWork(
19446 DatabaseConnection* aConnection) {
19447 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"
, 19447); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 19447; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19448 aConnection->AssertIsOnConnectionThread();
19449
19450 AUTO_PROFILER_LABEL("ObjectStoreClearRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19450( "ObjectStoreClearRequestOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
19451
19452 DatabaseConnection::AutoSavepoint autoSave;
19453 QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1468 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { auto tryTempError = tryResult1468.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19458, 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)); }}
19454#ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1468 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { auto tryTempError = tryResult1468.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19458, 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)); }}
19455 ,{auto tryResult1468 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { auto tryTempError = tryResult1468.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19458, 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)); }}
19456 QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1468 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { auto tryTempError = tryResult1468.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19458, 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)); }}
19457#endif{auto tryResult1468 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { auto tryTempError = tryResult1468.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19458, 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)); }}
19458 ){auto tryResult1468 = (ToResult(autoSave.Start(Transaction())
)ifdef 1); static_assert(std::is_empty_v<typename decltype
(tryResult1468)::ok_type>); if ((__builtin_expect(!!(tryResult1468
.isErr()), 0))) { auto tryTempError = tryResult1468.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19458, 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)); }}
;
19459
19460 QM_TRY_INSPECT(const bool& objectStoreHasIndexes,auto tryResult1469 = (ObjectStoreHasIndexes(*aConnection, mParams
.objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)"
, tryResult1469.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19462, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); } const bool& objectStoreHasIndexes = tryResult1469
.inspect();
19461 ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(),auto tryResult1469 = (ObjectStoreHasIndexes(*aConnection, mParams
.objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)"
, tryResult1469.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19462, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); } const bool& objectStoreHasIndexes = tryResult1469
.inspect();
19462 mObjectStoreMayHaveIndexes))auto tryResult1469 = (ObjectStoreHasIndexes(*aConnection, mParams
.objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect
(!!(tryResult1469.isErr()), 0))) { mozilla::dom::quota::HandleError
("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)"
, tryResult1469.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19462, mozilla::dom::quota::Severity::Error); return tryResult1469
.propagateErr(); } const bool& objectStoreHasIndexes = tryResult1469
.inspect();
;
19463
19464 // The parameter names are not used, parameters are bound by index only
19465 // locally in the same function.
19466 QM_TRY(MOZ_TO_RESULT({auto tryResult1471 = (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
tryResult1470 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1470
)::ok_type>); if ((__builtin_expect(!!(tryResult1470.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1470.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19477, mozilla::dom::quota::Severity::Error); return tryResult1470
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect
(!!(tryResult1471.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 tryResult1470 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1470)::ok_type>); if ((__builtin_expect(!!(tryResult1470.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1470.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19477, mozilla::dom::quota::Severity::Error); return tryResult1470.propagateErr(); }}; return Ok{}; }))"
, tryResult1471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19480, mozilla::dom::quota::Severity::Error); return tryResult1471
.propagateErr(); }}
19467 objectStoreHasIndexes{auto tryResult1471 = (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
tryResult1470 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1470
)::ok_type>); if ((__builtin_expect(!!(tryResult1470.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1470.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19477, mozilla::dom::quota::Severity::Error); return tryResult1470
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect
(!!(tryResult1471.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 tryResult1470 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1470)::ok_type>); if ((__builtin_expect(!!(tryResult1470.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1470.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19477, mozilla::dom::quota::Severity::Error); return tryResult1470.propagateErr(); }}; return Ok{}; }))"
, tryResult1471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19480, mozilla::dom::quota::Severity::Error); return tryResult1471
.propagateErr(); }}
19468 ? DeleteObjectStoreDataTableRowsWithIndexes({auto tryResult1471 = (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
tryResult1470 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1470
)::ok_type>); if ((__builtin_expect(!!(tryResult1470.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1470.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19477, mozilla::dom::quota::Severity::Error); return tryResult1470
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect
(!!(tryResult1471.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 tryResult1470 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1470)::ok_type>); if ((__builtin_expect(!!(tryResult1470.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1470.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19477, mozilla::dom::quota::Severity::Error); return tryResult1470.propagateErr(); }}; return Ok{}; }))"
, tryResult1471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19480, mozilla::dom::quota::Severity::Error); return tryResult1471
.propagateErr(); }}
19469 aConnection, mParams.objectStoreId(), Nothing()){auto tryResult1471 = (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
tryResult1470 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1470
)::ok_type>); if ((__builtin_expect(!!(tryResult1470.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1470.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19477, mozilla::dom::quota::Severity::Error); return tryResult1470
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect
(!!(tryResult1471.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 tryResult1470 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1470)::ok_type>); if ((__builtin_expect(!!(tryResult1470.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1470.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19477, mozilla::dom::quota::Severity::Error); return tryResult1470.propagateErr(); }}; return Ok{}; }))"
, tryResult1471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19480, mozilla::dom::quota::Severity::Error); return tryResult1471
.propagateErr(); }}
19470 : aConnection->ExecuteCachedStatement({auto tryResult1471 = (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
tryResult1470 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1470
)::ok_type>); if ((__builtin_expect(!!(tryResult1470.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1470.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19477, mozilla::dom::quota::Severity::Error); return tryResult1470
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect
(!!(tryResult1471.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 tryResult1470 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1470)::ok_type>); if ((__builtin_expect(!!(tryResult1470.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1470.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19477, mozilla::dom::quota::Severity::Error); return tryResult1470.propagateErr(); }}; return Ok{}; }))"
, tryResult1471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19480, mozilla::dom::quota::Severity::Error); return tryResult1471
.propagateErr(); }}
19471 "DELETE FROM object_data "{auto tryResult1471 = (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
tryResult1470 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1470
)::ok_type>); if ((__builtin_expect(!!(tryResult1470.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1470.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19477, mozilla::dom::quota::Severity::Error); return tryResult1470
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect
(!!(tryResult1471.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 tryResult1470 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1470)::ok_type>); if ((__builtin_expect(!!(tryResult1470.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1470.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19477, mozilla::dom::quota::Severity::Error); return tryResult1470.propagateErr(); }}; return Ok{}; }))"
, tryResult1471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19480, mozilla::dom::quota::Severity::Error); return tryResult1471
.propagateErr(); }}
19472 "WHERE object_store_id = :object_store_id;"_ns,{auto tryResult1471 = (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
tryResult1470 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1470
)::ok_type>); if ((__builtin_expect(!!(tryResult1470.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1470.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19477, mozilla::dom::quota::Severity::Error); return tryResult1470
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect
(!!(tryResult1471.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 tryResult1470 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1470)::ok_type>); if ((__builtin_expect(!!(tryResult1470.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1470.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19477, mozilla::dom::quota::Severity::Error); return tryResult1470.propagateErr(); }}; return Ok{}; }))"
, tryResult1471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19480, mozilla::dom::quota::Severity::Error); return tryResult1471
.propagateErr(); }}
19473 [objectStoreId ={auto tryResult1471 = (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
tryResult1470 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1470
)::ok_type>); if ((__builtin_expect(!!(tryResult1470.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1470.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19477, mozilla::dom::quota::Severity::Error); return tryResult1470
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect
(!!(tryResult1471.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 tryResult1470 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1470)::ok_type>); if ((__builtin_expect(!!(tryResult1470.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1470.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19477, mozilla::dom::quota::Severity::Error); return tryResult1470.propagateErr(); }}; return Ok{}; }))"
, tryResult1471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19480, mozilla::dom::quota::Severity::Error); return tryResult1471
.propagateErr(); }}
19474 mParams.objectStoreId()](mozIStorageStatement& stmt){auto tryResult1471 = (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
tryResult1470 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1470
)::ok_type>); if ((__builtin_expect(!!(tryResult1470.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1470.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19477, mozilla::dom::quota::Severity::Error); return tryResult1470
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect
(!!(tryResult1471.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 tryResult1470 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1470)::ok_type>); if ((__builtin_expect(!!(tryResult1470.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1470.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19477, mozilla::dom::quota::Severity::Error); return tryResult1470.propagateErr(); }}; return Ok{}; }))"
, tryResult1471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19480, mozilla::dom::quota::Severity::Error); return tryResult1471
.propagateErr(); }}
19475 -> mozilla::Result<Ok, nsresult> {{auto tryResult1471 = (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
tryResult1470 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1470
)::ok_type>); if ((__builtin_expect(!!(tryResult1470.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1470.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19477, mozilla::dom::quota::Severity::Error); return tryResult1470
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect
(!!(tryResult1471.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 tryResult1470 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1470)::ok_type>); if ((__builtin_expect(!!(tryResult1470.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1470.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19477, mozilla::dom::quota::Severity::Error); return tryResult1470.propagateErr(); }}; return Ok{}; }))"
, tryResult1471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19480, mozilla::dom::quota::Severity::Error); return tryResult1471
.propagateErr(); }}
19476 QM_TRY({auto tryResult1471 = (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
tryResult1470 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1470
)::ok_type>); if ((__builtin_expect(!!(tryResult1470.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1470.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19477, mozilla::dom::quota::Severity::Error); return tryResult1470
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect
(!!(tryResult1471.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 tryResult1470 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1470)::ok_type>); if ((__builtin_expect(!!(tryResult1470.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1470.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19477, mozilla::dom::quota::Severity::Error); return tryResult1470.propagateErr(); }}; return Ok{}; }))"
, tryResult1471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19480, mozilla::dom::quota::Severity::Error); return tryResult1471
.propagateErr(); }}
19477 MOZ_TO_RESULT(stmt.BindInt64ByIndex(0, objectStoreId)));{auto tryResult1471 = (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
tryResult1470 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1470
)::ok_type>); if ((__builtin_expect(!!(tryResult1470.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1470.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19477, mozilla::dom::quota::Severity::Error); return tryResult1470
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect
(!!(tryResult1471.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 tryResult1470 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1470)::ok_type>); if ((__builtin_expect(!!(tryResult1470.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1470.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19477, mozilla::dom::quota::Severity::Error); return tryResult1470.propagateErr(); }}; return Ok{}; }))"
, tryResult1471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19480, mozilla::dom::quota::Severity::Error); return tryResult1471
.propagateErr(); }}
19478
19479 return Ok{};{auto tryResult1471 = (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
tryResult1470 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1470
)::ok_type>); if ((__builtin_expect(!!(tryResult1470.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1470.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19477, mozilla::dom::quota::Severity::Error); return tryResult1470
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect
(!!(tryResult1471.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 tryResult1470 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1470)::ok_type>); if ((__builtin_expect(!!(tryResult1470.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1470.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19477, mozilla::dom::quota::Severity::Error); return tryResult1470.propagateErr(); }}; return Ok{}; }))"
, tryResult1471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19480, mozilla::dom::quota::Severity::Error); return tryResult1471
.propagateErr(); }}
19480 }))){auto tryResult1471 = (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
tryResult1470 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId
))); static_assert(std::is_empty_v<typename decltype(tryResult1470
)::ok_type>); if ((__builtin_expect(!!(tryResult1470.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))"
, tryResult1470.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19477, mozilla::dom::quota::Severity::Error); return tryResult1470
.propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v
<typename decltype(tryResult1471)::ok_type>); if ((__builtin_expect
(!!(tryResult1471.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 tryResult1470 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1470)::ok_type>); if ((__builtin_expect(!!(tryResult1470.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1470.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19477, mozilla::dom::quota::Severity::Error); return tryResult1470.propagateErr(); }}; return Ok{}; }))"
, tryResult1471.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19480, mozilla::dom::quota::Severity::Error); return tryResult1471
.propagateErr(); }}
;
19481
19482 QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1472 = (ToResult(autoSave.Commit())); static_assert
(std::is_empty_v<typename decltype(tryResult1472)::ok_type
>); if ((__builtin_expect(!!(tryResult1472.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())"
, tryResult1472.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19482, mozilla::dom::quota::Severity::Error); return tryResult1472
.propagateErr(); }}
;
19483
19484 return NS_OK;
19485}
19486
19487nsresult ObjectStoreCountRequestOp::DoDatabaseWork(
19488 DatabaseConnection* aConnection) {
19489 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"
, 19489); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 19489; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19490 aConnection->AssertIsOnConnectionThread();
19491
19492 AUTO_PROFILER_LABEL("ObjectStoreCountRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19492( "ObjectStoreCountRequestOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
19493
19494 const auto keyRangeClause = MaybeGetBindingClauseForKeyRange(
19495 mParams.optionalKeyRange(), kColumnNameKey);
19496
19497 QM_TRY_INSPECT(auto tryResult1475 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1473 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect
(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1473.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19506, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1474 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect
(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1474.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19510, mozilla::dom::quota::Severity::Error); return tryResult1474
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1475.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 tryResult1473 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1473.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19506, mozilla::dom::quota::Severity::Error); return tryResult1473.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1474 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1474.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19510, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; } return Ok{}; })"
, tryResult1475.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19514, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); } const auto& maybeStmt = tryResult1475.
inspect();
19498 const auto& maybeStmt,auto tryResult1475 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1473 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect
(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1473.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19506, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1474 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect
(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1474.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19510, mozilla::dom::quota::Severity::Error); return tryResult1474
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1475.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 tryResult1473 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1473.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19506, mozilla::dom::quota::Severity::Error); return tryResult1473.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1474 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1474.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19510, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; } return Ok{}; })"
, tryResult1475.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19514, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); } const auto& maybeStmt = tryResult1475.
inspect();
19499 aConnection->BorrowAndExecuteSingleStepStatement(auto tryResult1475 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1473 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect
(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1473.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19506, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1474 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect
(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1474.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19510, mozilla::dom::quota::Severity::Error); return tryResult1474
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1475.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 tryResult1473 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1473.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19506, mozilla::dom::quota::Severity::Error); return tryResult1473.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1474 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1474.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19510, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; } return Ok{}; })"
, tryResult1475.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19514, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); } const auto& maybeStmt = tryResult1475.
inspect();
19500 "SELECT count(*) "auto tryResult1475 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1473 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect
(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1473.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19506, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1474 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect
(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1474.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19510, mozilla::dom::quota::Severity::Error); return tryResult1474
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1475.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 tryResult1473 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1473.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19506, mozilla::dom::quota::Severity::Error); return tryResult1473.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1474 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1474.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19510, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; } return Ok{}; })"
, tryResult1475.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19514, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); } const auto& maybeStmt = tryResult1475.
inspect();
19501 "FROM object_data "auto tryResult1475 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1473 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect
(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1473.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19506, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1474 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect
(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1474.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19510, mozilla::dom::quota::Severity::Error); return tryResult1474
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1475.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 tryResult1473 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1473.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19506, mozilla::dom::quota::Severity::Error); return tryResult1473.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1474 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1474.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19510, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; } return Ok{}; })"
, tryResult1475.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19514, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); } const auto& maybeStmt = tryResult1475.
inspect();
19502 "WHERE object_store_id = :"_ns +auto tryResult1475 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1473 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect
(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1473.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19506, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1474 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect
(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1474.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19510, mozilla::dom::quota::Severity::Error); return tryResult1474
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1475.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 tryResult1473 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1473.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19506, mozilla::dom::quota::Severity::Error); return tryResult1473.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1474 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1474.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19510, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; } return Ok{}; })"
, tryResult1475.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19514, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); } const auto& maybeStmt = tryResult1475.
inspect();
19503 kStmtParamNameObjectStoreId + keyRangeClause,auto tryResult1475 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1473 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect
(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1473.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19506, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1474 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect
(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1474.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19510, mozilla::dom::quota::Severity::Error); return tryResult1474
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1475.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 tryResult1473 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1473.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19506, mozilla::dom::quota::Severity::Error); return tryResult1473.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1474 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1474.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19510, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; } return Ok{}; })"
, tryResult1475.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19514, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); } const auto& maybeStmt = tryResult1475.
inspect();
19504 [&params = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> {auto tryResult1475 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1473 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect
(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1473.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19506, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1474 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect
(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1474.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19510, mozilla::dom::quota::Severity::Error); return tryResult1474
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1475.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 tryResult1473 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1473.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19506, mozilla::dom::quota::Severity::Error); return tryResult1473.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1474 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1474.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19510, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; } return Ok{}; })"
, tryResult1475.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19514, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); } const auto& maybeStmt = tryResult1475.
inspect();
19505 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByName(auto tryResult1475 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1473 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect
(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1473.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19506, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1474 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect
(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1474.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19510, mozilla::dom::quota::Severity::Error); return tryResult1474
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1475.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 tryResult1473 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1473.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19506, mozilla::dom::quota::Severity::Error); return tryResult1473.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1474 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1474.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19510, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; } return Ok{}; })"
, tryResult1475.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19514, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); } const auto& maybeStmt = tryResult1475.
inspect();
19506 kStmtParamNameObjectStoreId, params.objectStoreId())));auto tryResult1475 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1473 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect
(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1473.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19506, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1474 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect
(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1474.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19510, mozilla::dom::quota::Severity::Error); return tryResult1474
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1475.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 tryResult1473 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1473.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19506, mozilla::dom::quota::Severity::Error); return tryResult1473.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1474 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1474.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19510, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; } return Ok{}; })"
, tryResult1475.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19514, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); } const auto& maybeStmt = tryResult1475.
inspect();
19507
19508 if (params.optionalKeyRange().isSome()) {auto tryResult1475 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1473 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect
(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1473.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19506, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1474 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect
(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1474.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19510, mozilla::dom::quota::Severity::Error); return tryResult1474
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1475.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 tryResult1473 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1473.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19506, mozilla::dom::quota::Severity::Error); return tryResult1473.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1474 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1474.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19510, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; } return Ok{}; })"
, tryResult1475.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19514, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); } const auto& maybeStmt = tryResult1475.
inspect();
19509 QM_TRY(MOZ_TO_RESULT(BindKeyRangeToStatement(auto tryResult1475 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1473 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect
(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1473.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19506, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1474 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect
(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1474.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19510, mozilla::dom::quota::Severity::Error); return tryResult1474
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1475.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 tryResult1473 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1473.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19506, mozilla::dom::quota::Severity::Error); return tryResult1473.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1474 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1474.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19510, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; } return Ok{}; })"
, tryResult1475.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19514, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); } const auto& maybeStmt = tryResult1475.
inspect();
19510 params.optionalKeyRange().ref(), &stmt)));auto tryResult1475 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1473 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect
(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1473.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19506, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1474 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect
(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1474.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19510, mozilla::dom::quota::Severity::Error); return tryResult1474
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1475.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 tryResult1473 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1473.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19506, mozilla::dom::quota::Severity::Error); return tryResult1473.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1474 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1474.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19510, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; } return Ok{}; })"
, tryResult1475.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19514, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); } const auto& maybeStmt = tryResult1475.
inspect();
19511 }auto tryResult1475 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1473 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect
(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1473.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19506, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1474 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect
(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1474.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19510, mozilla::dom::quota::Severity::Error); return tryResult1474
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1475.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 tryResult1473 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1473.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19506, mozilla::dom::quota::Severity::Error); return tryResult1473.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1474 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1474.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19510, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; } return Ok{}; })"
, tryResult1475.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19514, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); } const auto& maybeStmt = tryResult1475.
inspect();
19512
19513 return Ok{};auto tryResult1475 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1473 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect
(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1473.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19506, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1474 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect
(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1474.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19510, mozilla::dom::quota::Severity::Error); return tryResult1474
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1475.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 tryResult1473 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1473.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19506, mozilla::dom::quota::Severity::Error); return tryResult1473.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1474 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1474.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19510, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; } return Ok{}; })"
, tryResult1475.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19514, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); } const auto& maybeStmt = tryResult1475.
inspect();
19514 }))auto tryResult1475 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns
+ kStmtParamNameObjectStoreId + keyRangeClause, [&params
= mParams](auto& stmt) -> mozilla::Result<Ok, nsresult
> { {auto tryResult1473 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId
, params.objectStoreId()))); static_assert(std::is_empty_v<
typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect
(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))"
, tryResult1473.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19506, mozilla::dom::quota::Severity::Error); return tryResult1473
.propagateErr(); }}; if (params.optionalKeyRange().isSome()) {
{auto tryResult1474 = (ToResult(BindKeyRangeToStatement( params
.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v
<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect
(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))"
, tryResult1474.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19510, mozilla::dom::quota::Severity::Error); return tryResult1474
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1475.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 tryResult1473 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect(!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1473.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19506, mozilla::dom::quota::Severity::Error); return tryResult1473.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1474 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1474.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19510, mozilla::dom::quota::Severity::Error); return tryResult1474.propagateErr(); }}; } return Ok{}; })"
, tryResult1475.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19514, mozilla::dom::quota::Severity::Error); return tryResult1475
.propagateErr(); } const auto& maybeStmt = tryResult1475.
inspect();
;
19515
19516 QM_TRY(OkIf(maybeStmt.isSome()), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult1476 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1476)::ok_type
>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) {
auto tryTempError = tryResult1476.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19522, 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"
, 19520); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19520; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19521, "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); }}
19517 [](const auto) {{auto tryResult1476 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1476)::ok_type
>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) {
auto tryTempError = tryResult1476.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19522, 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"
, 19520); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19520; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19521, "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); }}
19518 // XXX Why do we have an assertion here, but not at most other{auto tryResult1476 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1476)::ok_type
>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) {
auto tryTempError = tryResult1476.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19522, 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"
, 19520); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19520; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19521, "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); }}
19519 // places using IDB_REPORT_INTERNAL_ERR(_LAMBDA)?{auto tryResult1476 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1476)::ok_type
>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) {
auto tryTempError = tryResult1476.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19522, 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"
, 19520); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19520; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19521, "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); }}
19520 MOZ_ASSERT(false, "This should never be possible!");{auto tryResult1476 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1476)::ok_type
>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) {
auto tryTempError = tryResult1476.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19522, 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"
, 19520); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19520; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19521, "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); }}
19521 IDB_REPORT_INTERNAL_ERR();{auto tryResult1476 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1476)::ok_type
>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) {
auto tryTempError = tryResult1476.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19522, 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"
, 19520); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19520; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19521, "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); }}
19522 }){auto tryResult1476 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1476)::ok_type
>); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) {
auto tryTempError = tryResult1476.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19522, 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"
, 19520); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19520; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19521, "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); }}
;
19523
19524 const auto& stmt = *maybeStmt;
19525
19526 const int64_t count = stmt->AsInt64(0);
19527 QM_TRY(OkIf(count >= 0), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, [](const auto) {{auto tryResult1477 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1477)::ok_type>
); if ((__builtin_expect(!!(tryResult1477.isErr()), 0))) { auto
tryTempError = tryResult1477.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19532, 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"
, 19530); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19530; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19531, "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); }}
19528 // XXX Why do we have an assertion here, but not at most other places using{auto tryResult1477 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1477)::ok_type>
); if ((__builtin_expect(!!(tryResult1477.isErr()), 0))) { auto
tryTempError = tryResult1477.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19532, 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"
, 19530); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19530; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19531, "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); }}
19529 // IDB_REPORT_INTERNAL_ERR(_LAMBDA)?{auto tryResult1477 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1477)::ok_type>
); if ((__builtin_expect(!!(tryResult1477.isErr()), 0))) { auto
tryTempError = tryResult1477.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19532, 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"
, 19530); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19530; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19531, "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); }}
19530 MOZ_ASSERT(false, "This should never be possible!");{auto tryResult1477 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1477)::ok_type>
); if ((__builtin_expect(!!(tryResult1477.isErr()), 0))) { auto
tryTempError = tryResult1477.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19532, 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"
, 19530); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19530; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19531, "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); }}
19531 IDB_REPORT_INTERNAL_ERR();{auto tryResult1477 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1477)::ok_type>
); if ((__builtin_expect(!!(tryResult1477.isErr()), 0))) { auto
tryTempError = tryResult1477.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19532, 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"
, 19530); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19530; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19531, "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); }}
19532 }){auto tryResult1477 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1477)::ok_type>
); if ((__builtin_expect(!!(tryResult1477.isErr()), 0))) { auto
tryTempError = tryResult1477.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19532, 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"
, 19530); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19530; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19531, "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); }}
;
19533
19534 mResponse.count() = count;
19535
19536 return NS_OK;
19537}
19538
19539// static
19540SafeRefPtr<FullIndexMetadata> IndexRequestOpBase::IndexMetadataForParams(
19541 const TransactionBase& aTransaction, const RequestParams& aParams) {
19542 AssertIsOnBackgroundThread();
19543 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"
, 19547); 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) = 19547; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
19544 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"
, 19547); 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) = 19547; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
19545 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"
, 19547); 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) = 19547; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
19546 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"
, 19547); 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) = 19547; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
19547 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"
, 19547); 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) = 19547; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19548
19549 IndexOrObjectStoreId objectStoreId;
19550 IndexOrObjectStoreId indexId;
19551
19552 switch (aParams.type()) {
19553 case RequestParams::TIndexGetParams: {
19554 const IndexGetParams& params = aParams.get_IndexGetParams();
19555 objectStoreId = params.objectStoreId();
19556 indexId = params.indexId();
19557 break;
19558 }
19559
19560 case RequestParams::TIndexGetKeyParams: {
19561 const IndexGetKeyParams& params = aParams.get_IndexGetKeyParams();
19562 objectStoreId = params.objectStoreId();
19563 indexId = params.indexId();
19564 break;
19565 }
19566
19567 case RequestParams::TIndexGetAllParams: {
19568 const IndexGetAllParams& params = aParams.get_IndexGetAllParams();
19569 objectStoreId = params.objectStoreId();
19570 indexId = params.indexId();
19571 break;
19572 }
19573
19574 case RequestParams::TIndexGetAllKeysParams: {
19575 const IndexGetAllKeysParams& params = aParams.get_IndexGetAllKeysParams();
19576 objectStoreId = params.objectStoreId();
19577 indexId = params.indexId();
19578 break;
19579 }
19580
19581 case RequestParams::TIndexCountParams: {
19582 const IndexCountParams& params = aParams.get_IndexCountParams();
19583 objectStoreId = params.objectStoreId();
19584 indexId = params.indexId();
19585 break;
19586 }
19587
19588 default:
19589 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"
, 19589); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 19589; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
19590 }
19591
19592 const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata =
19593 aTransaction.GetMetadataForObjectStoreId(objectStoreId);
19594 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"
, 19594); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreMetadata"
")"); do { *((volatile int*)__null) = 19594; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19595
19596 SafeRefPtr<FullIndexMetadata> indexMetadata =
19597 aTransaction.GetMetadataForIndexId(*objectStoreMetadata, indexId);
19598 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"
, 19598); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata"
")"); do { *((volatile int*)__null) = 19598; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19599
19600 return indexMetadata;
19601}
19602
19603IndexGetRequestOp::IndexGetRequestOp(SafeRefPtr<TransactionBase> aTransaction,
19604 const int64_t aRequestId,
19605 const RequestParams& aParams, bool aGetAll)
19606 : IndexRequestOpBase(std::move(aTransaction), aRequestId, aParams),
19607 mDatabase(Transaction().GetDatabasePtr()),
19608 mOptionalKeyRange(aGetAll
19609 ? aParams.get_IndexGetAllParams().optionalKeyRange()
19610 : Some(aParams.get_IndexGetParams().keyRange())),
19611 mBackgroundParent(Transaction().GetBackgroundParent()),
19612 mLimit(aGetAll ? aParams.get_IndexGetAllParams().limit() : 1),
19613 mGetAll(aGetAll) {
19614 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"
, 19615); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetAllParams"
")"); do { *((volatile int*)__null) = 19615; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
19615 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"
, 19615); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetAllParams"
")"); do { *((volatile int*)__null) = 19615; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19616 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"
, 19616); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase"
")"); do { *((volatile int*)__null) = 19616; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19617 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"
, 19617); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()"
")"); do { *((volatile int*)__null) = 19617; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19618 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"
, 19618); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mBackgroundParent"
")"); do { *((volatile int*)__null) = 19618; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19619}
19620
19621nsresult IndexGetRequestOp::DoDatabaseWork(DatabaseConnection* aConnection) {
19622 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"
, 19622); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 19622; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19623 aConnection->AssertIsOnConnectionThread();
19624 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"
, 19624); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()"
")"); do { *((volatile int*)__null) = 19624; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19625 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"
, 19625); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLimit == 1"
")"); do { *((volatile int*)__null) = 19625; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19626
19627 AUTO_PROFILER_LABEL("IndexGetRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19627( "IndexGetRequestOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
19628
19629 const auto indexTable = mMetadata->mCommonMetadata.unique()
19630 ? "unique_index_data "_ns
19631 : "index_data "_ns;
19632
19633 QM_TRY_INSPECT(auto tryResult1478 = (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(!!(tryResult1478
.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()))"
, tryResult1478.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19649, mozilla::dom::quota::Severity::Error); return tryResult1478
.propagateErr(); } const auto& stmt = tryResult1478.inspect
();
19634 const auto& stmt,auto tryResult1478 = (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(!!(tryResult1478
.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()))"
, tryResult1478.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19649, mozilla::dom::quota::Severity::Error); return tryResult1478
.propagateErr(); } const auto& stmt = tryResult1478.inspect
();
19635 aConnection->BorrowCachedStatement(auto tryResult1478 = (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(!!(tryResult1478
.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()))"
, tryResult1478.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19649, mozilla::dom::quota::Severity::Error); return tryResult1478
.propagateErr(); } const auto& stmt = tryResult1478.inspect
();
19636 "SELECT file_ids, data "auto tryResult1478 = (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(!!(tryResult1478
.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()))"
, tryResult1478.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19649, mozilla::dom::quota::Severity::Error); return tryResult1478
.propagateErr(); } const auto& stmt = tryResult1478.inspect
();
19637 "FROM object_data "auto tryResult1478 = (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(!!(tryResult1478
.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()))"
, tryResult1478.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19649, mozilla::dom::quota::Severity::Error); return tryResult1478
.propagateErr(); } const auto& stmt = tryResult1478.inspect
();
19638 "INNER JOIN "_ns +auto tryResult1478 = (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(!!(tryResult1478
.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()))"
, tryResult1478.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19649, mozilla::dom::quota::Severity::Error); return tryResult1478
.propagateErr(); } const auto& stmt = tryResult1478.inspect
();
19639 indexTable +auto tryResult1478 = (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(!!(tryResult1478
.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()))"
, tryResult1478.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19649, mozilla::dom::quota::Severity::Error); return tryResult1478
.propagateErr(); } const auto& stmt = tryResult1478.inspect
();
19640 "AS index_table "auto tryResult1478 = (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(!!(tryResult1478
.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()))"
, tryResult1478.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19649, mozilla::dom::quota::Severity::Error); return tryResult1478
.propagateErr(); } const auto& stmt = tryResult1478.inspect
();
19641 "ON object_data.object_store_id = "auto tryResult1478 = (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(!!(tryResult1478
.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()))"
, tryResult1478.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19649, mozilla::dom::quota::Severity::Error); return tryResult1478
.propagateErr(); } const auto& stmt = tryResult1478.inspect
();
19642 "index_table.object_store_id "auto tryResult1478 = (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(!!(tryResult1478
.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()))"
, tryResult1478.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19649, mozilla::dom::quota::Severity::Error); return tryResult1478
.propagateErr(); } const auto& stmt = tryResult1478.inspect
();
19643 "AND object_data.key = "auto tryResult1478 = (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(!!(tryResult1478
.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()))"
, tryResult1478.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19649, mozilla::dom::quota::Severity::Error); return tryResult1478
.propagateErr(); } const auto& stmt = tryResult1478.inspect
();
19644 "index_table.object_data_key "auto tryResult1478 = (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(!!(tryResult1478
.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()))"
, tryResult1478.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19649, mozilla::dom::quota::Severity::Error); return tryResult1478
.propagateErr(); } const auto& stmt = tryResult1478.inspect
();
19645 "WHERE index_id = :"_ns +auto tryResult1478 = (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(!!(tryResult1478
.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()))"
, tryResult1478.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19649, mozilla::dom::quota::Severity::Error); return tryResult1478
.propagateErr(); } const auto& stmt = tryResult1478.inspect
();
19646 kStmtParamNameIndexId +auto tryResult1478 = (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(!!(tryResult1478
.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()))"
, tryResult1478.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19649, mozilla::dom::quota::Severity::Error); return tryResult1478
.propagateErr(); } const auto& stmt = tryResult1478.inspect
();
19647 MaybeGetBindingClauseForKeyRange(mOptionalKeyRange,auto tryResult1478 = (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(!!(tryResult1478
.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()))"
, tryResult1478.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19649, mozilla::dom::quota::Severity::Error); return tryResult1478
.propagateErr(); } const auto& stmt = tryResult1478.inspect
();
19648 kColumnNameValue) +auto tryResult1478 = (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(!!(tryResult1478
.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()))"
, tryResult1478.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19649, mozilla::dom::quota::Severity::Error); return tryResult1478
.propagateErr(); } const auto& stmt = tryResult1478.inspect
();
19649 (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString())))auto tryResult1478 = (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(!!(tryResult1478
.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()))"
, tryResult1478.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19649, mozilla::dom::quota::Severity::Error); return tryResult1478
.propagateErr(); } const auto& stmt = tryResult1478.inspect
();
;
19650
19651 QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByName(kStmtParamNameIndexId,{auto tryResult1479 = (ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId
, mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v
<typename decltype(tryResult1479)::ok_type>); if ((__builtin_expect
(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId, mMetadata->mCommonMetadata.id()))"
, tryResult1479.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19652, mozilla::dom::quota::Severity::Error); return tryResult1479
.propagateErr(); }}
19652 mMetadata->mCommonMetadata.id()))){auto tryResult1479 = (ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId
, mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v
<typename decltype(tryResult1479)::ok_type>); if ((__builtin_expect
(!!(tryResult1479.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId, mMetadata->mCommonMetadata.id()))"
, tryResult1479.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19652, mozilla::dom::quota::Severity::Error); return tryResult1479
.propagateErr(); }}
;
19653
19654 if (mOptionalKeyRange.isSome()) {
19655 QM_TRY(MOZ_TO_RESULT({auto tryResult1480 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange
.ref(), &*stmt))); static_assert(std::is_empty_v<typename
decltype(tryResult1480)::ok_type>); if ((__builtin_expect
(!!(tryResult1480.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))"
, tryResult1480.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19656, mozilla::dom::quota::Severity::Error); return tryResult1480
.propagateErr(); }}
19656 BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))){auto tryResult1480 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange
.ref(), &*stmt))); static_assert(std::is_empty_v<typename
decltype(tryResult1480)::ok_type>); if ((__builtin_expect
(!!(tryResult1480.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))"
, tryResult1480.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19656, mozilla::dom::quota::Severity::Error); return tryResult1480
.propagateErr(); }}
;
19657 }
19658
19659 QM_TRY(CollectWhileHasResult({auto tryResult1483 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1481 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1481.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19663, mozilla::dom::quota::Severity::Error); return tryResult1481
.propagateErr(); } auto cloneInfo = tryResult1481.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"
, 19666, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19666); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); }
{auto tryResult1482 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1482)::ok_type>); if ((__builtin_expect
(!!(tryResult1482.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1482.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19671, 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(tryResult1483
)::ok_type>); if ((__builtin_expect(!!(tryResult1483.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1481 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1481.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19663, mozilla::dom::quota::Severity::Error); return tryResult1481.propagateErr(); } auto cloneInfo = tryResult1481.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\", 19666, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19666); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1482 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1482)::ok_type>); if ((__builtin_expect(!!(tryResult1482.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1482.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19671, 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{}; })"
, tryResult1483.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19674, mozilla::dom::quota::Severity::Error); return tryResult1483
.propagateErr(); }}
19660 *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {{auto tryResult1483 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1481 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1481.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19663, mozilla::dom::quota::Severity::Error); return tryResult1481
.propagateErr(); } auto cloneInfo = tryResult1481.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"
, 19666, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19666); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); }
{auto tryResult1482 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1482)::ok_type>); if ((__builtin_expect
(!!(tryResult1482.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1482.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19671, 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(tryResult1483
)::ok_type>); if ((__builtin_expect(!!(tryResult1483.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1481 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1481.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19663, mozilla::dom::quota::Severity::Error); return tryResult1481.propagateErr(); } auto cloneInfo = tryResult1481.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\", 19666, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19666); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1482 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1482)::ok_type>); if ((__builtin_expect(!!(tryResult1482.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1482.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19671, 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{}; })"
, tryResult1483.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19674, mozilla::dom::quota::Severity::Error); return tryResult1483
.propagateErr(); }}
19661 QM_TRY_UNWRAP(auto cloneInfo,{auto tryResult1483 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1481 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1481.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19663, mozilla::dom::quota::Severity::Error); return tryResult1481
.propagateErr(); } auto cloneInfo = tryResult1481.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"
, 19666, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19666); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); }
{auto tryResult1482 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1482)::ok_type>); if ((__builtin_expect
(!!(tryResult1482.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1482.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19671, 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(tryResult1483
)::ok_type>); if ((__builtin_expect(!!(tryResult1483.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1481 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1481.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19663, mozilla::dom::quota::Severity::Error); return tryResult1481.propagateErr(); } auto cloneInfo = tryResult1481.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\", 19666, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19666); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1482 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1482)::ok_type>); if ((__builtin_expect(!!(tryResult1482.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1482.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19671, 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{}; })"
, tryResult1483.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19674, mozilla::dom::quota::Severity::Error); return tryResult1483
.propagateErr(); }}
19662 GetStructuredCloneReadInfoFromStatement({auto tryResult1483 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1481 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1481.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19663, mozilla::dom::quota::Severity::Error); return tryResult1481
.propagateErr(); } auto cloneInfo = tryResult1481.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"
, 19666, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19666); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); }
{auto tryResult1482 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1482)::ok_type>); if ((__builtin_expect
(!!(tryResult1482.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1482.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19671, 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(tryResult1483
)::ok_type>); if ((__builtin_expect(!!(tryResult1483.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1481 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1481.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19663, mozilla::dom::quota::Severity::Error); return tryResult1481.propagateErr(); } auto cloneInfo = tryResult1481.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\", 19666, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19666); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1482 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1482)::ok_type>); if ((__builtin_expect(!!(tryResult1482.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1482.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19671, 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{}; })"
, tryResult1483.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19674, mozilla::dom::quota::Severity::Error); return tryResult1483
.propagateErr(); }}
19663 &stmt, 1, 0, mDatabase->GetFileManager()));{auto tryResult1483 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1481 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1481.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19663, mozilla::dom::quota::Severity::Error); return tryResult1481
.propagateErr(); } auto cloneInfo = tryResult1481.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"
, 19666, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19666); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); }
{auto tryResult1482 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1482)::ok_type>); if ((__builtin_expect
(!!(tryResult1482.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1482.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19671, 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(tryResult1483
)::ok_type>); if ((__builtin_expect(!!(tryResult1483.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1481 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1481.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19663, mozilla::dom::quota::Severity::Error); return tryResult1481.propagateErr(); } auto cloneInfo = tryResult1481.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\", 19666, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19666); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1482 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1482)::ok_type>); if ((__builtin_expect(!!(tryResult1482.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1482.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19671, 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{}; })"
, tryResult1483.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19674, mozilla::dom::quota::Severity::Error); return tryResult1483
.propagateErr(); }}
19664
19665 if (cloneInfo.HasPreprocessInfo()) {{auto tryResult1483 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1481 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1481.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19663, mozilla::dom::quota::Severity::Error); return tryResult1481
.propagateErr(); } auto cloneInfo = tryResult1481.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"
, 19666, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19666); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); }
{auto tryResult1482 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1482)::ok_type>); if ((__builtin_expect
(!!(tryResult1482.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1482.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19671, 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(tryResult1483
)::ok_type>); if ((__builtin_expect(!!(tryResult1483.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1481 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1481.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19663, mozilla::dom::quota::Severity::Error); return tryResult1481.propagateErr(); } auto cloneInfo = tryResult1481.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\", 19666, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19666); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1482 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1482)::ok_type>); if ((__builtin_expect(!!(tryResult1482.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1482.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19671, 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{}; })"
, tryResult1483.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19674, mozilla::dom::quota::Severity::Error); return tryResult1483
.propagateErr(); }}
19666 IDB_WARNING("Preprocessing for indexes not yet implemented!");{auto tryResult1483 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1481 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1481.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19663, mozilla::dom::quota::Severity::Error); return tryResult1481
.propagateErr(); } auto cloneInfo = tryResult1481.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"
, 19666, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19666); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); }
{auto tryResult1482 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1482)::ok_type>); if ((__builtin_expect
(!!(tryResult1482.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1482.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19671, 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(tryResult1483
)::ok_type>); if ((__builtin_expect(!!(tryResult1483.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1481 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1481.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19663, mozilla::dom::quota::Severity::Error); return tryResult1481.propagateErr(); } auto cloneInfo = tryResult1481.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\", 19666, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19666); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1482 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1482)::ok_type>); if ((__builtin_expect(!!(tryResult1482.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1482.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19671, 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{}; })"
, tryResult1483.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19674, mozilla::dom::quota::Severity::Error); return tryResult1483
.propagateErr(); }}
19667 return Err(NS_ERROR_NOT_IMPLEMENTED);{auto tryResult1483 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1481 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1481.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19663, mozilla::dom::quota::Severity::Error); return tryResult1481
.propagateErr(); } auto cloneInfo = tryResult1481.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"
, 19666, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19666); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); }
{auto tryResult1482 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1482)::ok_type>); if ((__builtin_expect
(!!(tryResult1482.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1482.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19671, 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(tryResult1483
)::ok_type>); if ((__builtin_expect(!!(tryResult1483.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1481 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1481.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19663, mozilla::dom::quota::Severity::Error); return tryResult1481.propagateErr(); } auto cloneInfo = tryResult1481.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\", 19666, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19666); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1482 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1482)::ok_type>); if ((__builtin_expect(!!(tryResult1482.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1482.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19671, 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{}; })"
, tryResult1483.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19674, mozilla::dom::quota::Severity::Error); return tryResult1483
.propagateErr(); }}
19668 }{auto tryResult1483 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1481 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1481.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19663, mozilla::dom::quota::Severity::Error); return tryResult1481
.propagateErr(); } auto cloneInfo = tryResult1481.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"
, 19666, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19666); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); }
{auto tryResult1482 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1482)::ok_type>); if ((__builtin_expect
(!!(tryResult1482.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1482.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19671, 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(tryResult1483
)::ok_type>); if ((__builtin_expect(!!(tryResult1483.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1481 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1481.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19663, mozilla::dom::quota::Severity::Error); return tryResult1481.propagateErr(); } auto cloneInfo = tryResult1481.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\", 19666, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19666); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1482 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1482)::ok_type>); if ((__builtin_expect(!!(tryResult1482.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1482.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19671, 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{}; })"
, tryResult1483.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19674, mozilla::dom::quota::Severity::Error); return tryResult1483
.propagateErr(); }}
19669
19670 QM_TRY(OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo))),{auto tryResult1483 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1481 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1481.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19663, mozilla::dom::quota::Severity::Error); return tryResult1481
.propagateErr(); } auto cloneInfo = tryResult1481.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"
, 19666, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19666); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); }
{auto tryResult1482 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1482)::ok_type>); if ((__builtin_expect
(!!(tryResult1482.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1482.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19671, 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(tryResult1483
)::ok_type>); if ((__builtin_expect(!!(tryResult1483.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1481 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1481.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19663, mozilla::dom::quota::Severity::Error); return tryResult1481.propagateErr(); } auto cloneInfo = tryResult1481.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\", 19666, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19666); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1482 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1482)::ok_type>); if ((__builtin_expect(!!(tryResult1482.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1482.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19671, 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{}; })"
, tryResult1483.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19674, mozilla::dom::quota::Severity::Error); return tryResult1483
.propagateErr(); }}
19671 Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult1483 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1481 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1481.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19663, mozilla::dom::quota::Severity::Error); return tryResult1481
.propagateErr(); } auto cloneInfo = tryResult1481.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"
, 19666, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19666); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); }
{auto tryResult1482 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1482)::ok_type>); if ((__builtin_expect
(!!(tryResult1482.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1482.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19671, 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(tryResult1483
)::ok_type>); if ((__builtin_expect(!!(tryResult1483.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1481 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1481.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19663, mozilla::dom::quota::Severity::Error); return tryResult1481.propagateErr(); } auto cloneInfo = tryResult1481.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\", 19666, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19666); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1482 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1482)::ok_type>); if ((__builtin_expect(!!(tryResult1482.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1482.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19671, 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{}; })"
, tryResult1483.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19674, mozilla::dom::quota::Severity::Error); return tryResult1483
.propagateErr(); }}
19672
19673 return Ok{};{auto tryResult1483 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1481 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1481.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19663, mozilla::dom::quota::Severity::Error); return tryResult1481
.propagateErr(); } auto cloneInfo = tryResult1481.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"
, 19666, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19666); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); }
{auto tryResult1482 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1482)::ok_type>); if ((__builtin_expect
(!!(tryResult1482.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1482.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19671, 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(tryResult1483
)::ok_type>); if ((__builtin_expect(!!(tryResult1483.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1481 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1481.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19663, mozilla::dom::quota::Severity::Error); return tryResult1481.propagateErr(); } auto cloneInfo = tryResult1481.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\", 19666, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19666); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1482 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1482)::ok_type>); if ((__builtin_expect(!!(tryResult1482.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1482.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19671, 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{}; })"
, tryResult1483.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19674, mozilla::dom::quota::Severity::Error); return tryResult1483
.propagateErr(); }}
19674 })){auto tryResult1483 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ auto tryResult1481 = (GetStructuredCloneReadInfoFromStatement
( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect
(!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError
("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())"
, tryResult1481.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19663, mozilla::dom::quota::Severity::Error); return tryResult1481
.propagateErr(); } auto cloneInfo = tryResult1481.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"
, 19666, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19666); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); }
{auto tryResult1482 = (OkIf(mResponse.EmplaceBack(fallible, std
::move(cloneInfo)))); static_assert(std::is_empty_v<typename
decltype(tryResult1482)::ok_type>); if ((__builtin_expect
(!!(tryResult1482.isErr()), 0))) { auto tryTempError __attribute__
((__unused__)) = tryResult1482.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19671, 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(tryResult1483
)::ok_type>); if ((__builtin_expect(!!(tryResult1483.isErr
()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1481 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1481.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1481.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19663, mozilla::dom::quota::Severity::Error); return tryResult1481.propagateErr(); } auto cloneInfo = tryResult1481.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\", 19666, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19666); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1482 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1482)::ok_type>); if ((__builtin_expect(!!(tryResult1482.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1482.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19671, 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{}; })"
, tryResult1483.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19674, mozilla::dom::quota::Severity::Error); return tryResult1483
.propagateErr(); }}
;
19675
19676 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"
, 19676); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1"
")"); do { *((volatile int*)__null) = 19676; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19677
19678 return NS_OK;
19679}
19680
19681// XXX This is more or less a duplicate of ObjectStoreGetRequestOp::GetResponse
19682void IndexGetRequestOp::GetResponse(RequestResponse& aResponse,
19683 size_t* aResponseSize) {
19684 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"
, 19684); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1"
")"); do { *((volatile int*)__null) = 19684; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19685
19686 auto convertResponse = [this](StructuredCloneReadInfoParent&& info)
19687 -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> {
19688 SerializedStructuredCloneReadInfo result;
19689
19690 result.data().data = info.ReleaseData();
19691
19692 QM_TRY_UNWRAP(result.files(), SerializeStructuredCloneFiles(auto tryResult1484 = (SerializeStructuredCloneFiles( mDatabase
, info.Files(), false)); if ((__builtin_expect(!!(tryResult1484
.isErr()), 0))) { mozilla::dom::quota::HandleError("SerializeStructuredCloneFiles( mDatabase, info.Files(), false)"
, tryResult1484.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19693, mozilla::dom::quota::Severity::Error); return tryResult1484
.propagateErr(); } result.files() = tryResult1484.unwrap();
19693 mDatabase, info.Files(), false))auto tryResult1484 = (SerializeStructuredCloneFiles( mDatabase
, info.Files(), false)); if ((__builtin_expect(!!(tryResult1484
.isErr()), 0))) { mozilla::dom::quota::HandleError("SerializeStructuredCloneFiles( mDatabase, info.Files(), false)"
, tryResult1484.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19693, mozilla::dom::quota::Severity::Error); return tryResult1484
.propagateErr(); } result.files() = tryResult1484.unwrap();
;
19694
19695 return result;
19696 };
19697
19698 if (mGetAll) {
19699 aResponse = IndexGetAllResponse();
19700 *aResponseSize = 0;
19701
19702 if (!mResponse.IsEmpty()) {
19703 QM_TRY_UNWRAP(auto tryResult1485 = (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(!!(tryResult1485
.isErr()), 0))) { auto tryTempError = tryResult1485.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"
, 19714, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos
() = tryResult1485.unwrap();
19704 aResponse.get_IndexGetAllResponse().cloneInfos(),auto tryResult1485 = (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(!!(tryResult1485
.isErr()), 0))) { auto tryTempError = tryResult1485.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"
, 19714, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos
() = tryResult1485.unwrap();
19705 TransformIntoNewArrayAbortOnErr(auto tryResult1485 = (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(!!(tryResult1485
.isErr()), 0))) { auto tryTempError = tryResult1485.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"
, 19714, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos
() = tryResult1485.unwrap();
19706 std::make_move_iterator(mResponse.begin()),auto tryResult1485 = (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(!!(tryResult1485
.isErr()), 0))) { auto tryTempError = tryResult1485.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"
, 19714, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos
() = tryResult1485.unwrap();
19707 std::make_move_iterator(mResponse.end()),auto tryResult1485 = (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(!!(tryResult1485
.isErr()), 0))) { auto tryTempError = tryResult1485.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"
, 19714, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos
() = tryResult1485.unwrap();
19708 [convertResponse,auto tryResult1485 = (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(!!(tryResult1485
.isErr()), 0))) { auto tryTempError = tryResult1485.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"
, 19714, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos
() = tryResult1485.unwrap();
19709 &aResponseSize](StructuredCloneReadInfoParent&& info) {auto tryResult1485 = (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(!!(tryResult1485
.isErr()), 0))) { auto tryTempError = tryResult1485.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"
, 19714, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos
() = tryResult1485.unwrap();
19710 *aResponseSize += info.Size();auto tryResult1485 = (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(!!(tryResult1485
.isErr()), 0))) { auto tryTempError = tryResult1485.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"
, 19714, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos
() = tryResult1485.unwrap();
19711 return convertResponse(std::move(info));auto tryResult1485 = (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(!!(tryResult1485
.isErr()), 0))) { auto tryTempError = tryResult1485.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"
, 19714, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos
() = tryResult1485.unwrap();
19712 },auto tryResult1485 = (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(!!(tryResult1485
.isErr()), 0))) { auto tryTempError = tryResult1485.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"
, 19714, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos
() = tryResult1485.unwrap();
19713 fallible),auto tryResult1485 = (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(!!(tryResult1485
.isErr()), 0))) { auto tryTempError = tryResult1485.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"
, 19714, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos
() = tryResult1485.unwrap();
19714 QM_VOID, [&aResponse](const nsresult result) { aResponse = result; })auto tryResult1485 = (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(!!(tryResult1485
.isErr()), 0))) { auto tryTempError = tryResult1485.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"
, 19714, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } aResponse.get_IndexGetAllResponse().cloneInfos
() = tryResult1485.unwrap();
;
19715 }
19716
19717 return;
19718 }
19719
19720 aResponse = IndexGetResponse();
19721 *aResponseSize = 0;
19722
19723 if (!mResponse.IsEmpty()) {
19724 SerializedStructuredCloneReadInfo& serializedInfo =
19725 aResponse.get_IndexGetResponse().cloneInfo();
19726
19727 *aResponseSize += mResponse[0].Size();
19728 QM_TRY_UNWRAP(serializedInfo, convertResponse(std::move(mResponse[0])),auto tryResult1486 = (convertResponse(std::move(mResponse[0])
)); if ((__builtin_expect(!!(tryResult1486.isErr()), 0))) { auto
tryTempError = tryResult1486.unwrapErr(); mozilla::dom::quota
::HandleError("convertResponse(std::move(mResponse[0]))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19730, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } serializedInfo = tryResult1486.unwrap
();
19729 QM_VOID,auto tryResult1486 = (convertResponse(std::move(mResponse[0])
)); if ((__builtin_expect(!!(tryResult1486.isErr()), 0))) { auto
tryTempError = tryResult1486.unwrapErr(); mozilla::dom::quota
::HandleError("convertResponse(std::move(mResponse[0]))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19730, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } serializedInfo = tryResult1486.unwrap
();
19730 [&aResponse](const nsresult result) { aResponse = result; })auto tryResult1486 = (convertResponse(std::move(mResponse[0])
)); if ((__builtin_expect(!!(tryResult1486.isErr()), 0))) { auto
tryTempError = tryResult1486.unwrapErr(); mozilla::dom::quota
::HandleError("convertResponse(std::move(mResponse[0]))", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19730, mozilla::dom::quota::Severity::Error); [&aResponse
](const nsresult result) { aResponse = result; }(tryTempError
); constexpr const auto& func __attribute__((__unused__))
= __func__; return ; } serializedInfo = tryResult1486.unwrap
();
;
19731 }
19732}
19733
19734IndexGetKeyRequestOp::IndexGetKeyRequestOp(
19735 SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId,
19736 const RequestParams& aParams, bool aGetAll)
19737 : IndexRequestOpBase(std::move(aTransaction), aRequestId, aParams),
19738 mOptionalKeyRange(
19739 aGetAll ? aParams.get_IndexGetAllKeysParams().optionalKeyRange()
19740 : Some(aParams.get_IndexGetKeyParams().keyRange())),
19741 mLimit(aGetAll ? aParams.get_IndexGetAllKeysParams().limit() : 1),
19742 mGetAll(aGetAll) {
19743 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"
, 19744); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllKeysParams"
")"); do { *((volatile int*)__null) = 19744; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
19744 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"
, 19744); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllKeysParams"
")"); do { *((volatile int*)__null) = 19744; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19745 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"
, 19745); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()"
")"); do { *((volatile int*)__null) = 19745; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19746}
19747
19748nsresult IndexGetKeyRequestOp::DoDatabaseWork(DatabaseConnection* aConnection) {
19749 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"
, 19749); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 19749; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19750 aConnection->AssertIsOnConnectionThread();
19751 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"
, 19751); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()"
")"); do { *((volatile int*)__null) = 19751; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19752 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"
, 19752); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLimit == 1"
")"); do { *((volatile int*)__null) = 19752; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19753
19754 AUTO_PROFILER_LABEL("IndexGetKeyRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19754( "IndexGetKeyRequestOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
19755
19756 const bool hasKeyRange = mOptionalKeyRange.isSome();
19757
19758 const auto indexTable = mMetadata->mCommonMetadata.unique()
19759 ? "unique_index_data "_ns
19760 : "index_data "_ns;
19761
19762 const nsCString query =
19763 "SELECT object_data_key "
19764 "FROM "_ns +
19765 indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId +
19766 MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) +
19767 (mLimit ? kOpenLimit + IntToCString(mLimit) : EmptyCString());
19768
19769 QM_TRY_INSPECT(const auto& stmt, aConnection->BorrowCachedStatement(query))auto tryResult1487 = (aConnection->BorrowCachedStatement(query
)); if ((__builtin_expect(!!(tryResult1487.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(query)"
, tryResult1487.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19769, mozilla::dom::quota::Severity::Error); return tryResult1487
.propagateErr(); } const auto& stmt = tryResult1487.inspect
();
;
19770
19771 QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByName(kStmtParamNameIndexId,{auto tryResult1488 = (ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId
, mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v
<typename decltype(tryResult1488)::ok_type>); if ((__builtin_expect
(!!(tryResult1488.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId, mMetadata->mCommonMetadata.id()))"
, tryResult1488.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19772, mozilla::dom::quota::Severity::Error); return tryResult1488
.propagateErr(); }}
19772 mMetadata->mCommonMetadata.id()))){auto tryResult1488 = (ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId
, mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v
<typename decltype(tryResult1488)::ok_type>); if ((__builtin_expect
(!!(tryResult1488.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId, mMetadata->mCommonMetadata.id()))"
, tryResult1488.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19772, mozilla::dom::quota::Severity::Error); return tryResult1488
.propagateErr(); }}
;
19773
19774 if (hasKeyRange) {
19775 QM_TRY(MOZ_TO_RESULT({auto tryResult1489 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange
.ref(), &*stmt))); static_assert(std::is_empty_v<typename
decltype(tryResult1489)::ok_type>); if ((__builtin_expect
(!!(tryResult1489.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))"
, tryResult1489.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19776, mozilla::dom::quota::Severity::Error); return tryResult1489
.propagateErr(); }}
19776 BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))){auto tryResult1489 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange
.ref(), &*stmt))); static_assert(std::is_empty_v<typename
decltype(tryResult1489)::ok_type>); if ((__builtin_expect
(!!(tryResult1489.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))"
, tryResult1489.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19776, mozilla::dom::quota::Severity::Error); return tryResult1489
.propagateErr(); }}
;
19777 }
19778
19779 QM_TRY(CollectWhileHasResult({auto tryResult1492 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1490
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1490)::ok_type>); if ((__builtin_expect(!!(tryResult1490
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1490.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19782, 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 tryResult1491 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1491)::ok_type>);
if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1491.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19783, mozilla::dom::quota::Severity::Error); return tryResult1491
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect
(!!(tryResult1492.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1490 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1490)::ok_type>); if ((__builtin_expect(!!(tryResult1490.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1490.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19782, 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 tryResult1491 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1491)::ok_type>); if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1491.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19783, mozilla::dom::quota::Severity::Error); return tryResult1491.propagateErr(); }}; return Ok{}; })"
, tryResult1492.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19786, mozilla::dom::quota::Severity::Error); return tryResult1492
.propagateErr(); }}
19780 *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {{auto tryResult1492 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1490
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1490)::ok_type>); if ((__builtin_expect(!!(tryResult1490
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1490.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19782, 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 tryResult1491 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1491)::ok_type>);
if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1491.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19783, mozilla::dom::quota::Severity::Error); return tryResult1491
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect
(!!(tryResult1492.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1490 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1490)::ok_type>); if ((__builtin_expect(!!(tryResult1490.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1490.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19782, 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 tryResult1491 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1491)::ok_type>); if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1491.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19783, mozilla::dom::quota::Severity::Error); return tryResult1491.propagateErr(); }}; return Ok{}; })"
, tryResult1492.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19786, mozilla::dom::quota::Severity::Error); return tryResult1492
.propagateErr(); }}
19781 Key* const key = mResponse.AppendElement(fallible);{auto tryResult1492 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1490
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1490)::ok_type>); if ((__builtin_expect(!!(tryResult1490
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1490.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19782, 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 tryResult1491 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1491)::ok_type>);
if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1491.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19783, mozilla::dom::quota::Severity::Error); return tryResult1491
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect
(!!(tryResult1492.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1490 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1490)::ok_type>); if ((__builtin_expect(!!(tryResult1490.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1490.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19782, 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 tryResult1491 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1491)::ok_type>); if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1491.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19783, mozilla::dom::quota::Severity::Error); return tryResult1491.propagateErr(); }}; return Ok{}; })"
, tryResult1492.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19786, mozilla::dom::quota::Severity::Error); return tryResult1492
.propagateErr(); }}
19782 QM_TRY(OkIf(key), Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult1492 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1490
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1490)::ok_type>); if ((__builtin_expect(!!(tryResult1490
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1490.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19782, 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 tryResult1491 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1491)::ok_type>);
if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1491.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19783, mozilla::dom::quota::Severity::Error); return tryResult1491
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect
(!!(tryResult1492.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1490 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1490)::ok_type>); if ((__builtin_expect(!!(tryResult1490.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1490.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19782, 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 tryResult1491 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1491)::ok_type>); if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1491.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19783, mozilla::dom::quota::Severity::Error); return tryResult1491.propagateErr(); }}; return Ok{}; })"
, tryResult1492.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19786, mozilla::dom::quota::Severity::Error); return tryResult1492
.propagateErr(); }}
19783 QM_TRY(MOZ_TO_RESULT(key->SetFromStatement(&stmt, 0)));{auto tryResult1492 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1490
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1490)::ok_type>); if ((__builtin_expect(!!(tryResult1490
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1490.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19782, 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 tryResult1491 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1491)::ok_type>);
if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1491.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19783, mozilla::dom::quota::Severity::Error); return tryResult1491
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect
(!!(tryResult1492.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1490 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1490)::ok_type>); if ((__builtin_expect(!!(tryResult1490.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1490.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19782, 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 tryResult1491 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1491)::ok_type>); if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1491.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19783, mozilla::dom::quota::Severity::Error); return tryResult1491.propagateErr(); }}; return Ok{}; })"
, tryResult1492.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19786, mozilla::dom::quota::Severity::Error); return tryResult1492
.propagateErr(); }}
19784
19785 return Ok{};{auto tryResult1492 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1490
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1490)::ok_type>); if ((__builtin_expect(!!(tryResult1490
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1490.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19782, 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 tryResult1491 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1491)::ok_type>);
if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1491.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19783, mozilla::dom::quota::Severity::Error); return tryResult1491
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect
(!!(tryResult1492.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1490 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1490)::ok_type>); if ((__builtin_expect(!!(tryResult1490.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1490.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19782, 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 tryResult1491 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1491)::ok_type>); if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1491.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19783, mozilla::dom::quota::Severity::Error); return tryResult1491.propagateErr(); }}; return Ok{}; })"
, tryResult1492.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19786, mozilla::dom::quota::Severity::Error); return tryResult1492
.propagateErr(); }}
19786 })){auto tryResult1492 = (CollectWhileHasResult( *stmt, [this](auto
& stmt) mutable -> mozilla::Result<Ok, nsresult>
{ Key* const key = mResponse.AppendElement(fallible); {auto tryResult1490
= (OkIf(key)); static_assert(std::is_empty_v<typename decltype
(tryResult1490)::ok_type>); if ((__builtin_expect(!!(tryResult1490
.isErr()), 0))) { auto tryTempError __attribute__((__unused__
)) = tryResult1490.unwrapErr(); mozilla::dom::quota::HandleError
("OkIf(key)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19782, 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 tryResult1491 = (ToResult
(key->SetFromStatement(&stmt, 0))); static_assert(std::
is_empty_v<typename decltype(tryResult1491)::ok_type>);
if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))"
, tryResult1491.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19783, mozilla::dom::quota::Severity::Error); return tryResult1491
.propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v
<typename decltype(tryResult1492)::ok_type>); if ((__builtin_expect
(!!(tryResult1492.isErr()), 0))) { mozilla::dom::quota::HandleError
("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1490 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1490)::ok_type>); if ((__builtin_expect(!!(tryResult1490.isErr()), 0))) { auto tryTempError __attribute__((__unused__)) = tryResult1490.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19782, 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 tryResult1491 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1491)::ok_type>); if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1491.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19783, mozilla::dom::quota::Severity::Error); return tryResult1491.propagateErr(); }}; return Ok{}; })"
, tryResult1492.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19786, mozilla::dom::quota::Severity::Error); return tryResult1492
.propagateErr(); }}
;
19787
19788 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"
, 19788); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1"
")"); do { *((volatile int*)__null) = 19788; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19789
19790 return NS_OK;
19791}
19792
19793void IndexGetKeyRequestOp::GetResponse(RequestResponse& aResponse,
19794 size_t* aResponseSize) {
19795 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"
, 19795); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1"
")"); do { *((volatile int*)__null) = 19795; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19796
19797 if (mGetAll) {
19798 aResponse = IndexGetAllKeysResponse();
19799 *aResponseSize = std::accumulate(mResponse.begin(), mResponse.end(), 0u,
19800 [](size_t old, const auto& entry) {
19801 return old + entry.GetBuffer().Length();
19802 });
19803
19804 aResponse.get_IndexGetAllKeysResponse().keys() = std::move(mResponse);
19805
19806 return;
19807 }
19808
19809 aResponse = IndexGetKeyResponse();
19810 *aResponseSize = 0;
19811
19812 if (!mResponse.IsEmpty()) {
19813 *aResponseSize = mResponse[0].GetBuffer().Length();
19814 aResponse.get_IndexGetKeyResponse().key() = std::move(mResponse[0]);
19815 }
19816}
19817
19818nsresult IndexCountRequestOp::DoDatabaseWork(DatabaseConnection* aConnection) {
19819 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"
, 19819); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 19819; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19820 aConnection->AssertIsOnConnectionThread();
19821
19822 AUTO_PROFILER_LABEL("IndexCountRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19822( "IndexCountRequestOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
19823
19824 const auto indexTable = mMetadata->mCommonMetadata.unique()
19825 ? "unique_index_data "_ns
19826 : "index_data "_ns;
19827
19828 const auto keyRangeClause = MaybeGetBindingClauseForKeyRange(
19829 mParams.optionalKeyRange(), kColumnNameValue);
19830
19831 QM_TRY_INSPECT(auto tryResult1495 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1493 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1493)::ok_type>
); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1493.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19840, mozilla::dom::quota::Severity::Error); return tryResult1493
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1494 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1494)::ok_type
>); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1494.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19844, mozilla::dom::quota::Severity::Error); return tryResult1494
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1495.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 tryResult1493 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1493.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19840, mozilla::dom::quota::Severity::Error); return tryResult1493.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1494 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1494)::ok_type>); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1494.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19844, mozilla::dom::quota::Severity::Error); return tryResult1494.propagateErr(); }}; } return Ok{}; })"
, tryResult1495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19848, mozilla::dom::quota::Severity::Error); return tryResult1495
.propagateErr(); } const auto& maybeStmt = tryResult1495.
inspect();
19832 const auto& maybeStmt,auto tryResult1495 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1493 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1493)::ok_type>
); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1493.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19840, mozilla::dom::quota::Severity::Error); return tryResult1493
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1494 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1494)::ok_type
>); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1494.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19844, mozilla::dom::quota::Severity::Error); return tryResult1494
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1495.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 tryResult1493 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1493.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19840, mozilla::dom::quota::Severity::Error); return tryResult1493.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1494 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1494)::ok_type>); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1494.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19844, mozilla::dom::quota::Severity::Error); return tryResult1494.propagateErr(); }}; } return Ok{}; })"
, tryResult1495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19848, mozilla::dom::quota::Severity::Error); return tryResult1495
.propagateErr(); } const auto& maybeStmt = tryResult1495.
inspect();
19833 aConnection->BorrowAndExecuteSingleStepStatement(auto tryResult1495 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1493 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1493)::ok_type>
); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1493.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19840, mozilla::dom::quota::Severity::Error); return tryResult1493
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1494 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1494)::ok_type
>); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1494.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19844, mozilla::dom::quota::Severity::Error); return tryResult1494
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1495.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 tryResult1493 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1493.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19840, mozilla::dom::quota::Severity::Error); return tryResult1493.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1494 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1494)::ok_type>); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1494.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19844, mozilla::dom::quota::Severity::Error); return tryResult1494.propagateErr(); }}; } return Ok{}; })"
, tryResult1495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19848, mozilla::dom::quota::Severity::Error); return tryResult1495
.propagateErr(); } const auto& maybeStmt = tryResult1495.
inspect();
19834 "SELECT count(*) "auto tryResult1495 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1493 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1493)::ok_type>
); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1493.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19840, mozilla::dom::quota::Severity::Error); return tryResult1493
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1494 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1494)::ok_type
>); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1494.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19844, mozilla::dom::quota::Severity::Error); return tryResult1494
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1495.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 tryResult1493 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1493.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19840, mozilla::dom::quota::Severity::Error); return tryResult1493.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1494 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1494)::ok_type>); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1494.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19844, mozilla::dom::quota::Severity::Error); return tryResult1494.propagateErr(); }}; } return Ok{}; })"
, tryResult1495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19848, mozilla::dom::quota::Severity::Error); return tryResult1495
.propagateErr(); } const auto& maybeStmt = tryResult1495.
inspect();
19835 "FROM "_ns +auto tryResult1495 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1493 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1493)::ok_type>
); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1493.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19840, mozilla::dom::quota::Severity::Error); return tryResult1493
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1494 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1494)::ok_type
>); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1494.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19844, mozilla::dom::quota::Severity::Error); return tryResult1494
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1495.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 tryResult1493 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1493.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19840, mozilla::dom::quota::Severity::Error); return tryResult1493.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1494 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1494)::ok_type>); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1494.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19844, mozilla::dom::quota::Severity::Error); return tryResult1494.propagateErr(); }}; } return Ok{}; })"
, tryResult1495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19848, mozilla::dom::quota::Severity::Error); return tryResult1495
.propagateErr(); } const auto& maybeStmt = tryResult1495.
inspect();
19836 indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId +auto tryResult1495 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1493 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1493)::ok_type>
); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1493.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19840, mozilla::dom::quota::Severity::Error); return tryResult1493
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1494 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1494)::ok_type
>); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1494.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19844, mozilla::dom::quota::Severity::Error); return tryResult1494
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1495.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 tryResult1493 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1493.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19840, mozilla::dom::quota::Severity::Error); return tryResult1493.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1494 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1494)::ok_type>); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1494.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19844, mozilla::dom::quota::Severity::Error); return tryResult1494.propagateErr(); }}; } return Ok{}; })"
, tryResult1495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19848, mozilla::dom::quota::Severity::Error); return tryResult1495
.propagateErr(); } const auto& maybeStmt = tryResult1495.
inspect();
19837 keyRangeClause,auto tryResult1495 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1493 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1493)::ok_type>
); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1493.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19840, mozilla::dom::quota::Severity::Error); return tryResult1493
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1494 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1494)::ok_type
>); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1494.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19844, mozilla::dom::quota::Severity::Error); return tryResult1494
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1495.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 tryResult1493 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1493.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19840, mozilla::dom::quota::Severity::Error); return tryResult1493.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1494 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1494)::ok_type>); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1494.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19844, mozilla::dom::quota::Severity::Error); return tryResult1494.propagateErr(); }}; } return Ok{}; })"
, tryResult1495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19848, mozilla::dom::quota::Severity::Error); return tryResult1495
.propagateErr(); } const auto& maybeStmt = tryResult1495.
inspect();
19838 [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> {auto tryResult1495 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1493 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1493)::ok_type>
); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1493.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19840, mozilla::dom::quota::Severity::Error); return tryResult1493
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1494 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1494)::ok_type
>); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1494.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19844, mozilla::dom::quota::Severity::Error); return tryResult1494
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1495.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 tryResult1493 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1493.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19840, mozilla::dom::quota::Severity::Error); return tryResult1493.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1494 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1494)::ok_type>); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1494.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19844, mozilla::dom::quota::Severity::Error); return tryResult1494.propagateErr(); }}; } return Ok{}; })"
, tryResult1495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19848, mozilla::dom::quota::Severity::Error); return tryResult1495
.propagateErr(); } const auto& maybeStmt = tryResult1495.
inspect();
19839 QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByName(auto tryResult1495 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1493 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1493)::ok_type>
); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1493.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19840, mozilla::dom::quota::Severity::Error); return tryResult1493
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1494 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1494)::ok_type
>); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1494.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19844, mozilla::dom::quota::Severity::Error); return tryResult1494
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1495.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 tryResult1493 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1493.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19840, mozilla::dom::quota::Severity::Error); return tryResult1493.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1494 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1494)::ok_type>); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1494.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19844, mozilla::dom::quota::Severity::Error); return tryResult1494.propagateErr(); }}; } return Ok{}; })"
, tryResult1495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19848, mozilla::dom::quota::Severity::Error); return tryResult1495
.propagateErr(); } const auto& maybeStmt = tryResult1495.
inspect();
19840 kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id())));auto tryResult1495 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1493 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1493)::ok_type>
); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1493.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19840, mozilla::dom::quota::Severity::Error); return tryResult1493
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1494 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1494)::ok_type
>); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1494.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19844, mozilla::dom::quota::Severity::Error); return tryResult1494
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1495.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 tryResult1493 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1493.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19840, mozilla::dom::quota::Severity::Error); return tryResult1493.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1494 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1494)::ok_type>); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1494.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19844, mozilla::dom::quota::Severity::Error); return tryResult1494.propagateErr(); }}; } return Ok{}; })"
, tryResult1495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19848, mozilla::dom::quota::Severity::Error); return tryResult1495
.propagateErr(); } const auto& maybeStmt = tryResult1495.
inspect();
19841
19842 if (self.mParams.optionalKeyRange().isSome()) {auto tryResult1495 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1493 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1493)::ok_type>
); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1493.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19840, mozilla::dom::quota::Severity::Error); return tryResult1493
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1494 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1494)::ok_type
>); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1494.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19844, mozilla::dom::quota::Severity::Error); return tryResult1494
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1495.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 tryResult1493 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1493.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19840, mozilla::dom::quota::Severity::Error); return tryResult1493.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1494 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1494)::ok_type>); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1494.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19844, mozilla::dom::quota::Severity::Error); return tryResult1494.propagateErr(); }}; } return Ok{}; })"
, tryResult1495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19848, mozilla::dom::quota::Severity::Error); return tryResult1495
.propagateErr(); } const auto& maybeStmt = tryResult1495.
inspect();
19843 QM_TRY(MOZ_TO_RESULT(BindKeyRangeToStatement(auto tryResult1495 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1493 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1493)::ok_type>
); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1493.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19840, mozilla::dom::quota::Severity::Error); return tryResult1493
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1494 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1494)::ok_type
>); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1494.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19844, mozilla::dom::quota::Severity::Error); return tryResult1494
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1495.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 tryResult1493 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1493.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19840, mozilla::dom::quota::Severity::Error); return tryResult1493.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1494 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1494)::ok_type>); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1494.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19844, mozilla::dom::quota::Severity::Error); return tryResult1494.propagateErr(); }}; } return Ok{}; })"
, tryResult1495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19848, mozilla::dom::quota::Severity::Error); return tryResult1495
.propagateErr(); } const auto& maybeStmt = tryResult1495.
inspect();
19844 self.mParams.optionalKeyRange().ref(), &stmt)));auto tryResult1495 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1493 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1493)::ok_type>
); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1493.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19840, mozilla::dom::quota::Severity::Error); return tryResult1493
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1494 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1494)::ok_type
>); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1494.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19844, mozilla::dom::quota::Severity::Error); return tryResult1494
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1495.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 tryResult1493 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1493.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19840, mozilla::dom::quota::Severity::Error); return tryResult1493.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1494 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1494)::ok_type>); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1494.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19844, mozilla::dom::quota::Severity::Error); return tryResult1494.propagateErr(); }}; } return Ok{}; })"
, tryResult1495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19848, mozilla::dom::quota::Severity::Error); return tryResult1495
.propagateErr(); } const auto& maybeStmt = tryResult1495.
inspect();
19845 }auto tryResult1495 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1493 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1493)::ok_type>
); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1493.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19840, mozilla::dom::quota::Severity::Error); return tryResult1493
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1494 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1494)::ok_type
>); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1494.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19844, mozilla::dom::quota::Severity::Error); return tryResult1494
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1495.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 tryResult1493 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1493.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19840, mozilla::dom::quota::Severity::Error); return tryResult1493.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1494 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1494)::ok_type>); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1494.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19844, mozilla::dom::quota::Severity::Error); return tryResult1494.propagateErr(); }}; } return Ok{}; })"
, tryResult1495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19848, mozilla::dom::quota::Severity::Error); return tryResult1495
.propagateErr(); } const auto& maybeStmt = tryResult1495.
inspect();
19846
19847 return Ok{};auto tryResult1495 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1493 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1493)::ok_type>
); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1493.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19840, mozilla::dom::quota::Severity::Error); return tryResult1493
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1494 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1494)::ok_type
>); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1494.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19844, mozilla::dom::quota::Severity::Error); return tryResult1494
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1495.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 tryResult1493 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1493.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19840, mozilla::dom::quota::Severity::Error); return tryResult1493.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1494 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1494)::ok_type>); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1494.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19844, mozilla::dom::quota::Severity::Error); return tryResult1494.propagateErr(); }}; } return Ok{}; })"
, tryResult1495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19848, mozilla::dom::quota::Severity::Error); return tryResult1495
.propagateErr(); } const auto& maybeStmt = tryResult1495.
inspect();
19848 }))auto tryResult1495 = (aConnection->BorrowAndExecuteSingleStepStatement
( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns
+ kStmtParamNameIndexId + keyRangeClause, [&self = *this
](auto& stmt) -> mozilla::Result<Ok, nsresult> {
{auto tryResult1493 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId
, self.mMetadata->mCommonMetadata.id()))); static_assert(std
::is_empty_v<typename decltype(tryResult1493)::ok_type>
); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))"
, tryResult1493.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19840, mozilla::dom::quota::Severity::Error); return tryResult1493
.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome
()) { {auto tryResult1494 = (ToResult(BindKeyRangeToStatement
( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert
(std::is_empty_v<typename decltype(tryResult1494)::ok_type
>); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) {
mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))"
, tryResult1494.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19844, mozilla::dom::quota::Severity::Error); return tryResult1494
.propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect
(!!(tryResult1495.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 tryResult1493 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect(!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1493.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19840, mozilla::dom::quota::Severity::Error); return tryResult1493.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1494 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1494)::ok_type>); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1494.inspectErr(), \"/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp\", 19844, mozilla::dom::quota::Severity::Error); return tryResult1494.propagateErr(); }}; } return Ok{}; })"
, tryResult1495.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19848, mozilla::dom::quota::Severity::Error); return tryResult1495
.propagateErr(); } const auto& maybeStmt = tryResult1495.
inspect();
;
19849
19850 QM_TRY(OkIf(maybeStmt.isSome()), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult1496 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1496)::ok_type
>); if ((__builtin_expect(!!(tryResult1496.isErr()), 0))) {
auto tryTempError = tryResult1496.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19856, 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"
, 19854); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19854; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19855, "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); }}
19851 [](const auto) {{auto tryResult1496 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1496)::ok_type
>); if ((__builtin_expect(!!(tryResult1496.isErr()), 0))) {
auto tryTempError = tryResult1496.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19856, 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"
, 19854); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19854; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19855, "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); }}
19852 // XXX Why do we have an assertion here, but not at most other{auto tryResult1496 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1496)::ok_type
>); if ((__builtin_expect(!!(tryResult1496.isErr()), 0))) {
auto tryTempError = tryResult1496.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19856, 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"
, 19854); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19854; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19855, "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); }}
19853 // places using IDB_REPORT_INTERNAL_ERR(_LAMBDA)?{auto tryResult1496 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1496)::ok_type
>); if ((__builtin_expect(!!(tryResult1496.isErr()), 0))) {
auto tryTempError = tryResult1496.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19856, 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"
, 19854); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19854; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19855, "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); }}
19854 MOZ_ASSERT(false, "This should never be possible!");{auto tryResult1496 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1496)::ok_type
>); if ((__builtin_expect(!!(tryResult1496.isErr()), 0))) {
auto tryTempError = tryResult1496.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19856, 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"
, 19854); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19854; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19855, "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); }}
19855 IDB_REPORT_INTERNAL_ERR();{auto tryResult1496 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1496)::ok_type
>); if ((__builtin_expect(!!(tryResult1496.isErr()), 0))) {
auto tryTempError = tryResult1496.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19856, 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"
, 19854); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19854; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19855, "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); }}
19856 }){auto tryResult1496 = (OkIf(maybeStmt.isSome())); static_assert
(std::is_empty_v<typename decltype(tryResult1496)::ok_type
>); if ((__builtin_expect(!!(tryResult1496.isErr()), 0))) {
auto tryTempError = tryResult1496.unwrapErr(); mozilla::dom::
quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19856, 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"
, 19854); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19854; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19855, "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); }}
;
19857
19858 const auto& stmt = *maybeStmt;
19859
19860 const int64_t count = stmt->AsInt64(0);
19861 QM_TRY(OkIf(count >= 0), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, [](const auto) {{auto tryResult1497 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1497)::ok_type>
); if ((__builtin_expect(!!(tryResult1497.isErr()), 0))) { auto
tryTempError = tryResult1497.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19866, 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"
, 19864); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19864; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19865, "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); }}
19862 // XXX Why do we have an assertion here, but not at most other places using{auto tryResult1497 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1497)::ok_type>
); if ((__builtin_expect(!!(tryResult1497.isErr()), 0))) { auto
tryTempError = tryResult1497.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19866, 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"
, 19864); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19864; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19865, "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); }}
19863 // IDB_REPORT_INTERNAL_ERR(_LAMBDA)?{auto tryResult1497 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1497)::ok_type>
); if ((__builtin_expect(!!(tryResult1497.isErr()), 0))) { auto
tryTempError = tryResult1497.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19866, 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"
, 19864); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19864; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19865, "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); }}
19864 MOZ_ASSERT(false, "This should never be possible!");{auto tryResult1497 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1497)::ok_type>
); if ((__builtin_expect(!!(tryResult1497.isErr()), 0))) { auto
tryTempError = tryResult1497.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19866, 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"
, 19864); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19864; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19865, "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); }}
19865 IDB_REPORT_INTERNAL_ERR();{auto tryResult1497 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1497)::ok_type>
); if ((__builtin_expect(!!(tryResult1497.isErr()), 0))) { auto
tryTempError = tryResult1497.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19866, 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"
, 19864); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19864; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19865, "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); }}
19866 }){auto tryResult1497 = (OkIf(count >= 0)); static_assert(std
::is_empty_v<typename decltype(tryResult1497)::ok_type>
); if ((__builtin_expect(!!(tryResult1497.isErr()), 0))) { auto
tryTempError = tryResult1497.unwrapErr(); mozilla::dom::quota
::HandleError("OkIf(count >= 0)", tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19866, 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"
, 19864); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") ("
"This should never be possible!" ")"); do { *((volatile int*
)__null) = 19864; __attribute__((nomerge)) ::abort(); } while
(false); } } while (false); mozilla::dom::indexedDB::ReportInternalError
("/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19865, "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); }}
;
19867
19868 mResponse.count() = count;
19869
19870 return NS_OK;
19871}
19872
19873template <IDBCursorType CursorType>
19874bool Cursor<CursorType>::CursorOpBase::SendFailureResult(nsresult aResultCode) {
19875 AssertIsOnOwningThread();
19876 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"
, 19876); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aResultCode)), 0)))"
")"); do { *((volatile int*)__null) = 19876; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19877 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"
, 19877); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor" ")"
); do { *((volatile int*)__null) = 19877; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
19878 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"
, 19878); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mCurrentlyRunningOp == this"
")"); do { *((volatile int*)__null) = 19878; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19879 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"
, 19879); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mResponseSent"
")"); do { *((volatile int*)__null) = 19879; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
19880
19881 if (!IsActorDestroyed()) {
19882 mResponse = ClampResultCode(aResultCode);
19883
19884 // This is an expected race when the transaction is invalidated after
19885 // data is retrieved from database.
19886 //
19887 // TODO: There seem to be other cases when mFiles is non-empty here, which
19888 // have been present before adding cursor preloading, but with cursor
19889 // preloading they have become more frequent (also during startup). One
19890 // possible cause with cursor preloading is to be addressed by Bug 1597191.
19891 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"
, 19893); } } while (false)
19892 !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"
, 19893); } } while (false)
19893 "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"
, 19893); } } while (false)
;
19894
19895 // SendResponseInternal will assert when mResponse.type() is
19896 // CursorResponse::Tnsresult and mFiles is non-empty, so we clear mFiles
19897 // here.
19898 mFiles.Clear();
19899
19900 mCursor->SendResponseInternal(mResponse, mFiles);
19901 }
19902
19903#ifdef DEBUG1
19904 mResponseSent = true;
19905#endif
19906 return false;
19907}
19908
19909template <IDBCursorType CursorType>
19910void Cursor<CursorType>::CursorOpBase::Cleanup() {
19911 AssertIsOnOwningThread();
19912 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"
, 19912); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor" ")"
); do { *((volatile int*)__null) = 19912; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
19913 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"
, 19913); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponseSent"
")"); do { *((volatile int*)__null) = 19913; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19914
19915 mCursor = nullptr;
19916
19917#ifdef DEBUG1
19918 // A bit hacky but the CursorOp request is not generated in response to a
19919 // child request like most other database operations. Do this to make our
19920 // assertions happy.
19921 NoteActorDestroyed();
19922#endif
19923
19924 TransactionDatabaseOperationBase::Cleanup();
19925}
19926
19927template <IDBCursorType CursorType>
19928ResponseSizeOrError
19929CursorOpBaseHelperBase<CursorType>::PopulateResponseFromStatement(
19930 mozIStorageStatement* const aStmt, const bool aInitializeResponse,
19931 Key* const aOptOutSortKey) {
19932 mOp.Transaction().AssertIsOnConnectionThread();
19933 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"
, 19934); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp.mResponse.type() == CursorResponse::T__None"
")"); do { *((volatile int*)__null) = 19934; __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
19934 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"
, 19934); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp.mResponse.type() == CursorResponse::T__None"
")"); do { *((volatile int*)__null) = 19934; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19935 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"
, 19936); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp.mResponse.type() != CursorResponse::T__None"
")"); do { *((volatile int*)__null) = 19936; __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
19936 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"
, 19936); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp.mResponse.type() != CursorResponse::T__None"
")"); do { *((volatile int*)__null) = 19936; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19937 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"
, 19942); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse"
")"); do { *((volatile int*)__null) = 19942; __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
19938 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"
, 19942); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse"
")"); do { *((volatile int*)__null) = 19942; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
19939 (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"
, 19942); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse"
")"); do { *((volatile int*)__null) = 19942; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
19940 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"
, 19942); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse"
")"); do { *((volatile int*)__null) = 19942; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
19941 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"
, 19942); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse"
")"); do { *((volatile int*)__null) = 19942; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
19942 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"
, 19942); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse"
")"); do { *((volatile int*)__null) = 19942; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
19943
19944 auto populateResponseHelper = PopulateResponseHelper<CursorType>{mOp};
19945 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
19946
19947 QM_TRY(MOZ_TO_RESULT(populateResponseHelper.GetKeys(aStmt, aOptOutSortKey))){auto tryResult1498 = (ToResult(populateResponseHelper.GetKeys
(aStmt, aOptOutSortKey))); static_assert(std::is_empty_v<typename
decltype(tryResult1498)::ok_type>); if ((__builtin_expect
(!!(tryResult1498.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(populateResponseHelper.GetKeys(aStmt, aOptOutSortKey))"
, tryResult1498.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19947, mozilla::dom::quota::Severity::Error); return tryResult1498
.propagateErr(); }}
;
19948
19949 // aOptOutSortKey must be set iff the cursor is a unique cursor. For unique
19950 // cursors, we need to skip records with the same key. The SQL queries
19951 // currently do not filter these out.
19952 if (aOptOutSortKey
41.1
'aOptOutSortKey' is non-null
&& !previousKey.IsUnset() &&
42
Assuming the condition is true
44
Taking true branch
19953 previousKey == *aOptOutSortKey) {
43
Assuming the condition is true
19954 return 0;
19955 }
19956
19957 QM_TRY(MOZ_TO_RESULT({auto tryResult1499 = (ToResult(populateResponseHelper.MaybeGetCloneInfo
(aStmt, GetCursor()))); static_assert(std::is_empty_v<typename
decltype(tryResult1499)::ok_type>); if ((__builtin_expect
(!!(tryResult1499.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(populateResponseHelper.MaybeGetCloneInfo(aStmt, GetCursor()))"
, tryResult1499.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19958, mozilla::dom::quota::Severity::Error); return tryResult1499
.propagateErr(); }}
19958 populateResponseHelper.MaybeGetCloneInfo(aStmt, GetCursor()))){auto tryResult1499 = (ToResult(populateResponseHelper.MaybeGetCloneInfo
(aStmt, GetCursor()))); static_assert(std::is_empty_v<typename
decltype(tryResult1499)::ok_type>); if ((__builtin_expect
(!!(tryResult1499.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(populateResponseHelper.MaybeGetCloneInfo(aStmt, GetCursor()))"
, tryResult1499.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 19958, mozilla::dom::quota::Severity::Error); return tryResult1499
.propagateErr(); }}
;
19959
19960 // CAUTION: It is important that only the part of the function above this
19961 // comment may fail, and modifications to the data structure (in particular
19962 // mResponse and mFiles) may only be made below. This is necessary to allow to
19963 // discard entries that were attempted to be preloaded without causing an
19964 // inconsistent state.
19965
19966 if (aInitializeResponse) {
19967 mOp.mResponse = std::remove_reference_t<
19968 decltype(populateResponseHelper.GetTypedResponse(&mOp.mResponse))>();
19969 }
19970
19971 auto& responses = populateResponseHelper.GetTypedResponse(&mOp.mResponse);
19972 auto& response = *responses.AppendElement();
19973
19974 populateResponseHelper.FillKeys(response);
19975 if constexpr (!CursorTypeTraits<CursorType>::IsKeyOnlyCursor) {
19976 populateResponseHelper.MaybeFillCloneInfo(response, &mOp.mFiles);
19977 }
19978
19979 return populateResponseHelper.GetKeySize(response) +
19980 populateResponseHelper.MaybeGetCloneInfoSize(response);
19981}
19982
19983template <IDBCursorType CursorType>
19984void CursorOpBaseHelperBase<CursorType>::PopulateExtraResponses(
19985 mozIStorageStatement* const aStmt, const uint32_t aMaxExtraCount,
19986 const size_t aInitialResponseSize, const nsACString& aOperation,
19987 Key* const aOptPreviousSortKey) {
19988 mOp.AssertIsOnConnectionThread();
19989
19990 const auto extraCount = [&]() -> uint32_t {
48
Calling 'operator()'
19991 auto accumulatedResponseSize = aInitialResponseSize;
19992 uint32_t extraCount = 0;
19993
19994 do {
19995 bool hasResult;
19996 nsresult rv = aStmt->ExecuteStep(&hasResult);
19997 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"
, 19997)
) {
49
Assuming the condition is true
50
Taking false branch
19998 // In case of a failure on one step, do not attempt to execute further
19999 // steps, but use the results already populated.
20000
20001 break;
20002 }
20003
20004 if (!hasResult) {
51
Assuming 'hasResult' is true
52
Taking false branch
20005 break;
20006 }
20007
20008 // PopulateResponseFromStatement does not modify the data in case of
20009 // failure, so we can just use the results already populated, and discard
20010 // any remaining entries, and signal overall success. Probably, future
20011 // attempts to access the same entry will fail as well, but it might never
20012 // be accessed by the application.
20013 QM_TRY_INSPECT(auto tryResult1500 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1500
.isErr()), 0))) { auto tryTempError = tryResult1500.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20024, 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 =
tryResult1500.inspect();
53
Calling 'CursorOpBaseHelperBase::PopulateResponseFromStatement'
20014 const auto& responseSize,auto tryResult1500 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1500
.isErr()), 0))) { auto tryTempError = tryResult1500.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20024, 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 =
tryResult1500.inspect();
20015 PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey),auto tryResult1500 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1500
.isErr()), 0))) { auto tryTempError = tryResult1500.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20024, 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 =
tryResult1500.inspect();
20016 extraCount, [](const auto&) {auto tryResult1500 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1500
.isErr()), 0))) { auto tryTempError = tryResult1500.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20024, 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 =
tryResult1500.inspect();
20017 // TODO: Maybe disable preloading for this cursor? The problem willauto tryResult1500 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1500
.isErr()), 0))) { auto tryTempError = tryResult1500.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20024, 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 =
tryResult1500.inspect();
20018 // probably reoccur on the next attempt, and disabling preloadingauto tryResult1500 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1500
.isErr()), 0))) { auto tryTempError = tryResult1500.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20024, 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 =
tryResult1500.inspect();
20019 // will reduce latency. However, if some problematic entry will beauto tryResult1500 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1500
.isErr()), 0))) { auto tryTempError = tryResult1500.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20024, 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 =
tryResult1500.inspect();
20020 // skipped over, after that it might be fine again. To judge this,auto tryResult1500 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1500
.isErr()), 0))) { auto tryTempError = tryResult1500.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20024, 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 =
tryResult1500.inspect();
20021 // the causes for such failures would need to be analyzed moreauto tryResult1500 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1500
.isErr()), 0))) { auto tryTempError = tryResult1500.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20024, 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 =
tryResult1500.inspect();
20022 // thoroughly. Since this seems to be rare, maybe no further actionauto tryResult1500 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1500
.isErr()), 0))) { auto tryTempError = tryResult1500.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20024, 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 =
tryResult1500.inspect();
20023 // is necessary at all.auto tryResult1500 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1500
.isErr()), 0))) { auto tryTempError = tryResult1500.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20024, 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 =
tryResult1500.inspect();
20024 })auto tryResult1500 = (PopulateResponseFromStatement(aStmt, false
, aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1500
.isErr()), 0))) { auto tryTempError = tryResult1500.unwrapErr
(); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20024, 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 =
tryResult1500.inspect();
;
20025
20026 // Check accumulated size of individual responses and maybe break early.
20027 accumulatedResponseSize += responseSize;
20028 if (accumulatedResponseSize > IPC::Channel::kMaximumMessageSize / 2) {
20029 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)
20030 "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)
20031 "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)
20032 "%.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)
20033 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)
20034 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)
20035 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)
20036 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)
;
20037
20038 break;
20039 }
20040
20041 // TODO: Do not count entries skipped for unique cursors.
20042 ++extraCount;
20043 } while (true);
20044
20045 return extraCount;
20046 }();
20047
20048 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)
20049 "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)
20050 "%.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)
20051 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)
20052 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)
20053 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)
;
20054}
20055
20056template <IDBCursorType CursorType>
20057void Cursor<CursorType>::SetOptionalKeyRange(
20058 const Maybe<SerializedKeyRange>& aOptionalKeyRange, bool* const aOpen) {
20059 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"
, 20059); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aOpen" ")"
); do { *((volatile int*)__null) = 20059; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
20060
20061 Key localeAwareRangeBound;
20062
20063 if (aOptionalKeyRange.isSome()) {
20064 const SerializedKeyRange& range = aOptionalKeyRange.ref();
20065
20066 const bool lowerBound = !IsIncreasingOrder(mDirection);
20067 *aOpen =
20068 !range.isOnly() && (lowerBound ? range.lowerOpen() : range.upperOpen());
20069
20070 const auto& bound =
20071 (range.isOnly() || lowerBound) ? range.lower() : range.upper();
20072 if constexpr (IsIndexCursor) {
20073 if (this->IsLocaleAware()) {
20074 // XXX Don't we need to propagate the error?
20075 QM_TRY_UNWRAP(localeAwareRangeBound,auto tryResult1501 = (bound.ToLocaleAwareKey(this->mLocale
)); if ((__builtin_expect(!!(tryResult1501.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1501.unwrapErr
(); mozilla::dom::quota::HandleError("bound.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20076, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } localeAwareRangeBound = tryResult1501.unwrap();
20076 bound.ToLocaleAwareKey(this->mLocale), QM_VOID)auto tryResult1501 = (bound.ToLocaleAwareKey(this->mLocale
)); if ((__builtin_expect(!!(tryResult1501.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1501.unwrapErr
(); mozilla::dom::quota::HandleError("bound.ToLocaleAwareKey(this->mLocale)"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20076, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
; } localeAwareRangeBound = tryResult1501.unwrap();
;
20077 } else {
20078 localeAwareRangeBound = bound;
20079 }
20080 } else {
20081 localeAwareRangeBound = bound;
20082 }
20083 } else {
20084 *aOpen = false;
20085 }
20086
20087 this->mLocaleAwareRangeBound.init(std::move(localeAwareRangeBound));
20088}
20089
20090template <IDBCursorType CursorType>
20091void ObjectStoreOpenOpHelper<CursorType>::PrepareKeyConditionClauses(
20092 const nsACString& aDirectionClause, const nsACString& aQueryStart) {
20093 const bool isIncreasingOrder = IsIncreasingOrder(GetCursor().mDirection);
20094
20095 nsAutoCString keyRangeClause;
20096 nsAutoCString continueToKeyRangeClause;
20097 AppendConditionClause(kStmtParamNameKey, kStmtParamNameCurrentKey,
20098 !isIncreasingOrder, false, keyRangeClause);
20099 AppendConditionClause(kStmtParamNameKey, kStmtParamNameCurrentKey,
20100 !isIncreasingOrder, true, continueToKeyRangeClause);
20101
20102 {
20103 bool open;
20104 GetCursor().SetOptionalKeyRange(GetOptionalKeyRange(), &open);
20105
20106 if (GetOptionalKeyRange().isSome() &&
20107 !GetCursor().mLocaleAwareRangeBound->IsUnset()) {
20108 AppendConditionClause(kStmtParamNameKey, kStmtParamNameRangeBound,
20109 isIncreasingOrder, !open, keyRangeClause);
20110 AppendConditionClause(kStmtParamNameKey, kStmtParamNameRangeBound,
20111 isIncreasingOrder, !open, continueToKeyRangeClause);
20112 }
20113 }
20114
20115 const nsAutoCString suffix =
20116 aDirectionClause + kOpenLimit + ":"_ns + kStmtParamNameLimit;
20117
20118 GetCursor().mContinueQueries.init(
20119 aQueryStart + keyRangeClause + suffix,
20120 aQueryStart + continueToKeyRangeClause + suffix);
20121}
20122
20123template <IDBCursorType CursorType>
20124void IndexOpenOpHelper<CursorType>::PrepareIndexKeyConditionClause(
20125 const nsACString& aDirectionClause,
20126 const nsLiteralCString& aObjectDataKeyPrefix, nsAutoCString aQueryStart) {
20127 const bool isIncreasingOrder = IsIncreasingOrder(GetCursor().mDirection);
20128
20129 {
20130 bool open;
20131 GetCursor().SetOptionalKeyRange(GetOptionalKeyRange(), &open);
20132 if (GetOptionalKeyRange().isSome() &&
20133 !GetCursor().mLocaleAwareRangeBound->IsUnset()) {
20134 AppendConditionClause(kColumnNameAliasSortKey, kStmtParamNameRangeBound,
20135 isIncreasingOrder, !open, aQueryStart);
20136 }
20137 }
20138
20139 nsCString continueQuery, continueToQuery, continuePrimaryKeyQuery;
20140
20141 continueToQuery =
20142 aQueryStart + " AND "_ns +
20143 GetSortKeyClause(isIncreasingOrder ? ComparisonOperator::GreaterOrEquals
20144 : ComparisonOperator::LessOrEquals,
20145 kStmtParamNameCurrentKey);
20146
20147 switch (GetCursor().mDirection) {
20148 case IDBCursorDirection::Next:
20149 case IDBCursorDirection::Prev:
20150 continueQuery =
20151 aQueryStart + " AND "_ns +
20152 GetSortKeyClause(isIncreasingOrder
20153 ? ComparisonOperator::GreaterOrEquals
20154 : ComparisonOperator::LessOrEquals,
20155 kStmtParamNameCurrentKey) +
20156 " AND ( "_ns +
20157 GetSortKeyClause(isIncreasingOrder ? ComparisonOperator::GreaterThan
20158 : ComparisonOperator::LessThan,
20159 kStmtParamNameCurrentKey) +
20160 " OR "_ns +
20161 GetKeyClause(aObjectDataKeyPrefix + "object_data_key"_ns,
20162 isIncreasingOrder ? ComparisonOperator::GreaterThan
20163 : ComparisonOperator::LessThan,
20164 kStmtParamNameObjectStorePosition) +
20165 " ) "_ns;
20166
20167 continuePrimaryKeyQuery =
20168 aQueryStart +
20169 " AND ("
20170 "("_ns +
20171 GetSortKeyClause(ComparisonOperator::Equals,
20172 kStmtParamNameCurrentKey) +
20173 " AND "_ns +
20174 GetKeyClause(aObjectDataKeyPrefix + "object_data_key"_ns,
20175 isIncreasingOrder ? ComparisonOperator::GreaterOrEquals
20176 : ComparisonOperator::LessOrEquals,
20177 kStmtParamNameObjectStorePosition) +
20178 ") OR "_ns +
20179 GetSortKeyClause(isIncreasingOrder ? ComparisonOperator::GreaterThan
20180 : ComparisonOperator::LessThan,
20181 kStmtParamNameCurrentKey) +
20182 ")"_ns;
20183 break;
20184
20185 case IDBCursorDirection::Nextunique:
20186 case IDBCursorDirection::Prevunique:
20187 continueQuery =
20188 aQueryStart + " AND "_ns +
20189 GetSortKeyClause(isIncreasingOrder ? ComparisonOperator::GreaterThan
20190 : ComparisonOperator::LessThan,
20191 kStmtParamNameCurrentKey);
20192 break;
20193
20194 default:
20195 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"
, 20195); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 20195; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
20196 }
20197
20198 const nsAutoCString suffix =
20199 aDirectionClause + kOpenLimit + ":"_ns + kStmtParamNameLimit;
20200 continueQuery += suffix;
20201 continueToQuery += suffix;
20202 if (!continuePrimaryKeyQuery.IsEmpty()) {
20203 continuePrimaryKeyQuery += suffix;
20204 }
20205
20206 GetCursor().mContinueQueries.init(std::move(continueQuery),
20207 std::move(continueToQuery),
20208 std::move(continuePrimaryKeyQuery));
20209}
20210
20211template <IDBCursorType CursorType>
20212nsresult CommonOpenOpHelper<CursorType>::ProcessStatementSteps(
20213 mozIStorageStatement* const aStmt) {
20214 QM_TRY_INSPECT(const bool& hasResult,auto tryResult1502 = (::mozilla::ToResultInvokeMember( (aStmt
), &::mozilla::detail::DerefedType<decltype(aStmt)>
::ExecuteStep)); if ((__builtin_expect(!!(tryResult1502.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aStmt), &::mozilla::detail::DerefedType<decltype(aStmt)>::ExecuteStep)"
, tryResult1502.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20215, mozilla::dom::quota::Severity::Error); return tryResult1502
.propagateErr(); } const bool& hasResult = tryResult1502.
inspect();
26
Taking false branch
20215 MOZ_TO_RESULT_INVOKE_MEMBER(aStmt, ExecuteStep))auto tryResult1502 = (::mozilla::ToResultInvokeMember( (aStmt
), &::mozilla::detail::DerefedType<decltype(aStmt)>
::ExecuteStep)); if ((__builtin_expect(!!(tryResult1502.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aStmt), &::mozilla::detail::DerefedType<decltype(aStmt)>::ExecuteStep)"
, tryResult1502.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20215, mozilla::dom::quota::Severity::Error); return tryResult1502
.propagateErr(); } const bool& hasResult = tryResult1502.
inspect();
;
20216
20217 if (!hasResult) {
27
Assuming 'hasResult' is true
28
Taking false branch
20218 SetResponse(void_t{});
20219 return NS_OK;
20220 }
20221
20222 Key previousKey;
20223 auto* optPreviousKey =
20224 IsUnique(GetCursor().mDirection) ? &previousKey : nullptr;
29
'?' condition is true
20225
20226 QM_TRY_INSPECT(const auto& responseSize,auto tryResult1503 = (PopulateResponseFromStatement(aStmt, true
, optPreviousKey)); if ((__builtin_expect(!!(tryResult1503.isErr
()), 0))) { mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, true, optPreviousKey)"
, tryResult1503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20227, mozilla::dom::quota::Severity::Error); return tryResult1503
.propagateErr(); } const auto& responseSize = tryResult1503
.inspect();
30
Calling 'CursorOpBaseHelperBase::PopulateResponseFromStatement'
45
Returning from 'CursorOpBaseHelperBase::PopulateResponseFromStatement'
46
Taking false branch
20227 PopulateResponseFromStatement(aStmt, true, optPreviousKey))auto tryResult1503 = (PopulateResponseFromStatement(aStmt, true
, optPreviousKey)); if ((__builtin_expect(!!(tryResult1503.isErr
()), 0))) { mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, true, optPreviousKey)"
, tryResult1503.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20227, mozilla::dom::quota::Severity::Error); return tryResult1503
.propagateErr(); } const auto& responseSize = tryResult1503
.inspect();
;
20228
20229 // The degree to which extra responses on OpenOp can actually be used depends
20230 // on the parameters of subsequent ContinueOp operations, see also comment in
20231 // ContinueOp::DoDatabaseWork.
20232 //
20233 // TODO: We should somehow evaluate the effects of this. Maybe use a smaller
20234 // extra count than for ContinueOp?
20235 PopulateExtraResponses(aStmt, GetCursor().mMaxExtraCount, responseSize,
47
Calling 'CursorOpBaseHelperBase::PopulateExtraResponses'
20236 "OpenOp"_ns, optPreviousKey);
20237
20238 return NS_OK;
20239}
20240
20241nsresult OpenOpHelper<IDBCursorType::ObjectStore>::DoDatabaseWork(
20242 DatabaseConnection* aConnection) {
20243 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"
, 20243); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 20243; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20244 aConnection->AssertIsOnConnectionThread();
20245 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"
, 20245); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mObjectStoreId"
")"); do { *((volatile int*)__null) = 20245; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20246
20247 AUTO_PROFILER_LABEL("Cursor::OpenOp::DoObjectStoreDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20247( "Cursor::OpenOp::DoObjectStoreDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
20248
20249 const bool usingKeyRange = GetOptionalKeyRange().isSome();
20250
20251 const nsCString queryStart = "SELECT "_ns + kColumnNameKey +
20252 ", file_ids, data "
20253 "FROM object_data "
20254 "WHERE object_store_id = :"_ns +
20255 kStmtParamNameId;
20256
20257 const auto keyRangeClause =
20258 DatabaseOperationBase::MaybeGetBindingClauseForKeyRange(
20259 GetOptionalKeyRange(), kColumnNameKey);
20260
20261 const auto& directionClause = MakeDirectionClause(GetCursor().mDirection);
20262
20263 // Note: Changing the number or order of SELECT columns in the query will
20264 // require changes to CursorOpBase::PopulateResponseFromStatement.
20265 const nsCString firstQuery = queryStart + keyRangeClause + directionClause +
20266 kOpenLimit +
20267 IntToCString(1 + GetCursor().mMaxExtraCount);
20268
20269 QM_TRY_INSPECT(const auto& stmt,auto tryResult1504 = (aConnection->BorrowCachedStatement(firstQuery
)); if ((__builtin_expect(!!(tryResult1504.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)"
, tryResult1504.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20270, mozilla::dom::quota::Severity::Error); return tryResult1504
.propagateErr(); } const auto& stmt = tryResult1504.inspect
();
20270 aConnection->BorrowCachedStatement(firstQuery))auto tryResult1504 = (aConnection->BorrowCachedStatement(firstQuery
)); if ((__builtin_expect(!!(tryResult1504.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)"
, tryResult1504.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20270, mozilla::dom::quota::Severity::Error); return tryResult1504
.propagateErr(); } const auto& stmt = tryResult1504.inspect
();
;
20271
20272 QM_TRY(MOZ_TO_RESULT({auto tryResult1505 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId
, GetCursor().mObjectStoreId))); static_assert(std::is_empty_v
<typename decltype(tryResult1505)::ok_type>); if ((__builtin_expect
(!!(tryResult1505.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))"
, tryResult1505.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20273, mozilla::dom::quota::Severity::Error); return tryResult1505
.propagateErr(); }}
20273 stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))){auto tryResult1505 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId
, GetCursor().mObjectStoreId))); static_assert(std::is_empty_v
<typename decltype(tryResult1505)::ok_type>); if ((__builtin_expect
(!!(tryResult1505.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))"
, tryResult1505.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20273, mozilla::dom::quota::Severity::Error); return tryResult1505
.propagateErr(); }}
;
20274
20275 if (usingKeyRange) {
20276 QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult1506 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std
::is_empty_v<typename decltype(tryResult1506)::ok_type>
); if ((__builtin_expect(!!(tryResult1506.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))"
, tryResult1506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20277, mozilla::dom::quota::Severity::Error); return tryResult1506
.propagateErr(); }}
20277 GetOptionalKeyRange().ref(), &*stmt))){auto tryResult1506 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std
::is_empty_v<typename decltype(tryResult1506)::ok_type>
); if ((__builtin_expect(!!(tryResult1506.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))"
, tryResult1506.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20277, mozilla::dom::quota::Severity::Error); return tryResult1506
.propagateErr(); }}
;
20278 }
20279
20280 // Now we need to make the query for ContinueOp.
20281 PrepareKeyConditionClauses(directionClause, queryStart);
20282
20283 return ProcessStatementSteps(&*stmt);
20284}
20285
20286nsresult OpenOpHelper<IDBCursorType::ObjectStoreKey>::DoDatabaseWork(
20287 DatabaseConnection* aConnection) {
20288 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"
, 20288); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 20288; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20289 aConnection->AssertIsOnConnectionThread();
20290 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"
, 20290); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mObjectStoreId"
")"); do { *((volatile int*)__null) = 20290; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20291
20292 AUTO_PROFILER_LABEL("Cursor::OpenOp::DoObjectStoreKeyDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20292( "Cursor::OpenOp::DoObjectStoreKeyDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
20293
20294 const bool usingKeyRange = GetOptionalKeyRange().isSome();
20295
20296 const nsCString queryStart = "SELECT "_ns + kColumnNameKey +
20297 " FROM object_data "
20298 "WHERE object_store_id = :"_ns +
20299 kStmtParamNameId;
20300
20301 const auto keyRangeClause =
20302 DatabaseOperationBase::MaybeGetBindingClauseForKeyRange(
20303 GetOptionalKeyRange(), kColumnNameKey);
20304
20305 const auto& directionClause = MakeDirectionClause(GetCursor().mDirection);
20306
20307 // Note: Changing the number or order of SELECT columns in the query will
20308 // require changes to CursorOpBase::PopulateResponseFromStatement.
20309 const nsCString firstQuery =
20310 queryStart + keyRangeClause + directionClause + kOpenLimit + "1"_ns;
20311
20312 QM_TRY_INSPECT(const auto& stmt,auto tryResult1507 = (aConnection->BorrowCachedStatement(firstQuery
)); if ((__builtin_expect(!!(tryResult1507.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)"
, tryResult1507.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20313, mozilla::dom::quota::Severity::Error); return tryResult1507
.propagateErr(); } const auto& stmt = tryResult1507.inspect
();
20313 aConnection->BorrowCachedStatement(firstQuery))auto tryResult1507 = (aConnection->BorrowCachedStatement(firstQuery
)); if ((__builtin_expect(!!(tryResult1507.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)"
, tryResult1507.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20313, mozilla::dom::quota::Severity::Error); return tryResult1507
.propagateErr(); } const auto& stmt = tryResult1507.inspect
();
;
20314
20315 QM_TRY(MOZ_TO_RESULT({auto tryResult1508 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId
, GetCursor().mObjectStoreId))); static_assert(std::is_empty_v
<typename decltype(tryResult1508)::ok_type>); if ((__builtin_expect
(!!(tryResult1508.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))"
, tryResult1508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20316, mozilla::dom::quota::Severity::Error); return tryResult1508
.propagateErr(); }}
20316 stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))){auto tryResult1508 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId
, GetCursor().mObjectStoreId))); static_assert(std::is_empty_v
<typename decltype(tryResult1508)::ok_type>); if ((__builtin_expect
(!!(tryResult1508.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))"
, tryResult1508.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20316, mozilla::dom::quota::Severity::Error); return tryResult1508
.propagateErr(); }}
;
20317
20318 if (usingKeyRange) {
20319 QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult1509 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std
::is_empty_v<typename decltype(tryResult1509)::ok_type>
); if ((__builtin_expect(!!(tryResult1509.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))"
, tryResult1509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20320, mozilla::dom::quota::Severity::Error); return tryResult1509
.propagateErr(); }}
20320 GetOptionalKeyRange().ref(), &*stmt))){auto tryResult1509 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std
::is_empty_v<typename decltype(tryResult1509)::ok_type>
); if ((__builtin_expect(!!(tryResult1509.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))"
, tryResult1509.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20320, mozilla::dom::quota::Severity::Error); return tryResult1509
.propagateErr(); }}
;
20321 }
20322
20323 // Now we need to make the query to get the next match.
20324 PrepareKeyConditionClauses(directionClause, queryStart);
20325
20326 return ProcessStatementSteps(&*stmt);
20327}
20328
20329nsresult OpenOpHelper<IDBCursorType::Index>::DoDatabaseWork(
20330 DatabaseConnection* aConnection) {
20331 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"
, 20331); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 20331; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20332 aConnection->AssertIsOnConnectionThread();
20333 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"
, 20333); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mObjectStoreId"
")"); do { *((volatile int*)__null) = 20333; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20334 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"
, 20334); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mIndexId"
")"); do { *((volatile int*)__null) = 20334; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20335
20336 AUTO_PROFILER_LABEL("Cursor::OpenOp::DoIndexDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20336( "Cursor::OpenOp::DoIndexDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
20337
20338 const bool usingKeyRange = GetOptionalKeyRange().isSome();
20339
20340 const auto indexTable =
20341 GetCursor().mUniqueIndex ? "unique_index_data"_ns : "index_data"_ns;
20342
20343 // The result of MakeColumnPairSelectionList is stored in a local variable,
20344 // since inlining it into the next statement causes a crash on some Mac OS X
20345 // builds (see https://bugzilla.mozilla.org/show_bug.cgi?id=1168606#c110).
20346 const auto columnPairSelectionList = MakeColumnPairSelectionList(
20347 "index_table.value"_ns, "index_table.value_locale"_ns,
20348 kColumnNameAliasSortKey, GetCursor().IsLocaleAware());
20349 const nsCString sortColumnAlias =
20350 "SELECT "_ns + columnPairSelectionList + ", "_ns;
20351
20352 const nsAutoCString queryStart = sortColumnAlias +
20353 "index_table.object_data_key, "
20354 "object_data.file_ids, "
20355 "object_data.data "
20356 "FROM "_ns +
20357 indexTable +
20358 " AS index_table "
20359 "JOIN object_data "
20360 "ON index_table.object_store_id = "
20361 "object_data.object_store_id "
20362 "AND index_table.object_data_key = "
20363 "object_data.key "
20364 "WHERE index_table.index_id = :"_ns +
20365 kStmtParamNameId;
20366
20367 const auto keyRangeClause =
20368 DatabaseOperationBase::MaybeGetBindingClauseForKeyRange(
20369 GetOptionalKeyRange(), kColumnNameAliasSortKey);
20370
20371 nsAutoCString directionClause = " ORDER BY "_ns + kColumnNameAliasSortKey;
20372
20373 switch (GetCursor().mDirection) {
20374 case IDBCursorDirection::Next:
20375 case IDBCursorDirection::Nextunique:
20376 directionClause.AppendLiteral(" ASC, index_table.object_data_key ASC");
20377 break;
20378
20379 case IDBCursorDirection::Prev:
20380 directionClause.AppendLiteral(" DESC, index_table.object_data_key DESC");
20381 break;
20382
20383 case IDBCursorDirection::Prevunique:
20384 directionClause.AppendLiteral(" DESC, index_table.object_data_key ASC");
20385 break;
20386
20387 default:
20388 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"
, 20388); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 20388; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
20389 }
20390
20391 // Note: Changing the number or order of SELECT columns in the query will
20392 // require changes to CursorOpBase::PopulateResponseFromStatement.
20393 const nsCString firstQuery = queryStart + keyRangeClause + directionClause +
20394 kOpenLimit +
20395 IntToCString(1 + GetCursor().mMaxExtraCount);
20396
20397 QM_TRY_INSPECT(const auto& stmt,auto tryResult1510 = (aConnection->BorrowCachedStatement(firstQuery
)); if ((__builtin_expect(!!(tryResult1510.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)"
, tryResult1510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20398, mozilla::dom::quota::Severity::Error); return tryResult1510
.propagateErr(); } const auto& stmt = tryResult1510.inspect
();
20398 aConnection->BorrowCachedStatement(firstQuery))auto tryResult1510 = (aConnection->BorrowCachedStatement(firstQuery
)); if ((__builtin_expect(!!(tryResult1510.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)"
, tryResult1510.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20398, mozilla::dom::quota::Severity::Error); return tryResult1510
.propagateErr(); } const auto& stmt = tryResult1510.inspect
();
;
20399
20400 QM_TRY(MOZ_TO_RESULT({auto tryResult1511 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId
, GetCursor().mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1511)::ok_type>); if ((__builtin_expect
(!!(tryResult1511.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))"
, tryResult1511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20401, mozilla::dom::quota::Severity::Error); return tryResult1511
.propagateErr(); }}
20401 stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))){auto tryResult1511 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId
, GetCursor().mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1511)::ok_type>); if ((__builtin_expect
(!!(tryResult1511.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))"
, tryResult1511.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20401, mozilla::dom::quota::Severity::Error); return tryResult1511
.propagateErr(); }}
;
20402
20403 if (usingKeyRange) {
20404 if (GetCursor().IsLocaleAware()) {
20405 QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult1512 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1512
)::ok_type>); if ((__builtin_expect(!!(tryResult1512.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))"
, tryResult1512.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20406, mozilla::dom::quota::Severity::Error); return tryResult1512
.propagateErr(); }}
20406 GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))){auto tryResult1512 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1512
)::ok_type>); if ((__builtin_expect(!!(tryResult1512.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))"
, tryResult1512.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20406, mozilla::dom::quota::Severity::Error); return tryResult1512
.propagateErr(); }}
;
20407 } else {
20408 QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult1513 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std
::is_empty_v<typename decltype(tryResult1513)::ok_type>
); if ((__builtin_expect(!!(tryResult1513.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))"
, tryResult1513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20409, mozilla::dom::quota::Severity::Error); return tryResult1513
.propagateErr(); }}
20409 GetOptionalKeyRange().ref(), &*stmt))){auto tryResult1513 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std
::is_empty_v<typename decltype(tryResult1513)::ok_type>
); if ((__builtin_expect(!!(tryResult1513.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))"
, tryResult1513.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20409, mozilla::dom::quota::Severity::Error); return tryResult1513
.propagateErr(); }}
;
20410 }
20411 }
20412
20413 // TODO: At least the last two statements are almost the same in all
20414 // DoDatabaseWork variants, consider removing this duplication.
20415
20416 // Now we need to make the query to get the next match.
20417 PrepareKeyConditionClauses(directionClause, std::move(queryStart));
20418
20419 return ProcessStatementSteps(&*stmt);
20420}
20421
20422nsresult OpenOpHelper<IDBCursorType::IndexKey>::DoDatabaseWork(
20423 DatabaseConnection* aConnection) {
20424 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"
, 20424); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 20424; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
10
Taking false branch
11
Loop condition is false. Exiting loop
20425 aConnection->AssertIsOnConnectionThread();
20426 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"
, 20426); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mObjectStoreId"
")"); do { *((volatile int*)__null) = 20426; __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
20427 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"
, 20427); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mIndexId"
")"); do { *((volatile int*)__null) = 20427; __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
20428
20429 AUTO_PROFILER_LABEL("Cursor::OpenOp::DoIndexKeyDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20429( "Cursor::OpenOp::DoIndexKeyDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
20430
20431 const bool usingKeyRange = GetOptionalKeyRange().isSome();
20432
20433 const auto table =
20434 GetCursor().mUniqueIndex ? "unique_index_data"_ns : "index_data"_ns;
18
Assuming field 'mUniqueIndex' is false
19
'?' condition is false
20435
20436 // The result of MakeColumnPairSelectionList is stored in a local variable,
20437 // since inlining it into the next statement causes a crash on some Mac OS X
20438 // builds (see https://bugzilla.mozilla.org/show_bug.cgi?id=1168606#c110).
20439 const auto columnPairSelectionList = MakeColumnPairSelectionList(
20440 "value"_ns, "value_locale"_ns, kColumnNameAliasSortKey,
20441 GetCursor().IsLocaleAware());
20442 const nsCString sortColumnAlias =
20443 "SELECT "_ns + columnPairSelectionList + ", "_ns;
20444
20445 const nsAutoCString queryStart = sortColumnAlias +
20446 "object_data_key "
20447 " FROM "_ns +
20448 table + " WHERE index_id = :"_ns +
20449 kStmtParamNameId;
20450
20451 const auto keyRangeClause =
20452 DatabaseOperationBase::MaybeGetBindingClauseForKeyRange(
20453 GetOptionalKeyRange(), kColumnNameAliasSortKey);
20454
20455 nsAutoCString directionClause = " ORDER BY "_ns + kColumnNameAliasSortKey;
20456
20457 switch (GetCursor().mDirection) {
20
Control jumps to 'case Prevunique:' at line 20467
20458 case IDBCursorDirection::Next:
20459 case IDBCursorDirection::Nextunique:
20460 directionClause.AppendLiteral(" ASC, object_data_key ASC");
20461 break;
20462
20463 case IDBCursorDirection::Prev:
20464 directionClause.AppendLiteral(" DESC, object_data_key DESC");
20465 break;
20466
20467 case IDBCursorDirection::Prevunique:
20468 directionClause.AppendLiteral(" DESC, object_data_key ASC");
20469 break;
21
Execution continues on line 20478
20470
20471 default:
20472 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"
, 20472); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 20472; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
20473 }
20474
20475 // Note: Changing the number or order of SELECT columns in the query will
20476 // require changes to CursorOpBase::PopulateResponseFromStatement.
20477 const nsCString firstQuery =
20478 queryStart + keyRangeClause + directionClause + kOpenLimit + "1"_ns;
20479
20480 QM_TRY_INSPECT(const auto& stmt,auto tryResult1514 = (aConnection->BorrowCachedStatement(firstQuery
)); if ((__builtin_expect(!!(tryResult1514.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)"
, tryResult1514.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20481, mozilla::dom::quota::Severity::Error); return tryResult1514
.propagateErr(); } const auto& stmt = tryResult1514.inspect
();
22
Taking false branch
20481 aConnection->BorrowCachedStatement(firstQuery))auto tryResult1514 = (aConnection->BorrowCachedStatement(firstQuery
)); if ((__builtin_expect(!!(tryResult1514.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)"
, tryResult1514.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20481, mozilla::dom::quota::Severity::Error); return tryResult1514
.propagateErr(); } const auto& stmt = tryResult1514.inspect
();
;
20482
20483 QM_TRY(MOZ_TO_RESULT({auto tryResult1515 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId
, GetCursor().mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1515)::ok_type>); if ((__builtin_expect
(!!(tryResult1515.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))"
, tryResult1515.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20484, mozilla::dom::quota::Severity::Error); return tryResult1515
.propagateErr(); }}
23
Taking false branch
20484 stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))){auto tryResult1515 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId
, GetCursor().mIndexId))); static_assert(std::is_empty_v<typename
decltype(tryResult1515)::ok_type>); if ((__builtin_expect
(!!(tryResult1515.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))"
, tryResult1515.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20484, mozilla::dom::quota::Severity::Error); return tryResult1515
.propagateErr(); }}
;
20485
20486 if (usingKeyRange
23.1
'usingKeyRange' is false
) {
24
Taking false branch
20487 if (GetCursor().IsLocaleAware()) {
20488 QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult1516 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1516
)::ok_type>); if ((__builtin_expect(!!(tryResult1516.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))"
, tryResult1516.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20489, mozilla::dom::quota::Severity::Error); return tryResult1516
.propagateErr(); }}
20489 GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))){auto tryResult1516 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale
))); static_assert(std::is_empty_v<typename decltype(tryResult1516
)::ok_type>); if ((__builtin_expect(!!(tryResult1516.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))"
, tryResult1516.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20489, mozilla::dom::quota::Severity::Error); return tryResult1516
.propagateErr(); }}
;
20490 } else {
20491 QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult1517 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std
::is_empty_v<typename decltype(tryResult1517)::ok_type>
); if ((__builtin_expect(!!(tryResult1517.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))"
, tryResult1517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20492, mozilla::dom::quota::Severity::Error); return tryResult1517
.propagateErr(); }}
20492 GetOptionalKeyRange().ref(), &*stmt))){auto tryResult1517 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement
( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std
::is_empty_v<typename decltype(tryResult1517)::ok_type>
); if ((__builtin_expect(!!(tryResult1517.isErr()), 0))) { mozilla
::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))"
, tryResult1517.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20492, mozilla::dom::quota::Severity::Error); return tryResult1517
.propagateErr(); }}
;
20493 }
20494 }
20495
20496 // Now we need to make the query to get the next match.
20497 PrepareKeyConditionClauses(directionClause, std::move(queryStart));
20498
20499 return ProcessStatementSteps(&*stmt);
25
Calling 'CommonOpenOpHelper::ProcessStatementSteps'
20500}
20501
20502template <IDBCursorType CursorType>
20503nsresult Cursor<CursorType>::OpenOp::DoDatabaseWork(
20504 DatabaseConnection* aConnection) {
20505 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"
, 20505); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 20505; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
1
Assuming 'aConnection' is non-null
2
Taking false branch
3
Loop condition is false. Exiting loop
20506 aConnection->AssertIsOnConnectionThread();
20507 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"
, 20507); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor" ")"
); do { *((volatile int*)__null) = 20507; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
4
Taking false branch
5
Loop condition is false. Exiting loop
20508 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"
, 20508); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries"
")"); do { *((volatile int*)__null) = 20508; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
6
Assuming the condition is true
7
Taking false branch
8
Loop condition is false. Exiting loop
20509
20510 AUTO_PROFILER_LABEL("Cursor::OpenOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20510( "Cursor::OpenOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
20511
20512 auto helper = OpenOpHelper<CursorType>{*this};
20513 const auto rv = helper.DoDatabaseWork(aConnection);
9
Calling 'OpenOpHelper::DoDatabaseWork'
20514 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"
, 20514)
) {
20515 return rv;
20516 }
20517
20518 return NS_OK;
20519}
20520
20521template <IDBCursorType CursorType>
20522nsresult Cursor<CursorType>::CursorOpBase::SendSuccessResult() {
20523 AssertIsOnOwningThread();
20524 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"
, 20524); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor" ")"
); do { *((volatile int*)__null) = 20524; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
20525 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"
, 20525); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mCurrentlyRunningOp == this"
")"); do { *((volatile int*)__null) = 20525; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20526 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"
, 20526); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.type() != CursorResponse::T__None"
")"); do { *((volatile int*)__null) = 20526; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20527
20528 if (IsActorDestroyed()) {
20529 return NS_ERROR_DOM_INDEXEDDB_ABORT_ERR;
20530 }
20531
20532 mCursor->SendResponseInternal(mResponse, mFiles);
20533
20534#ifdef DEBUG1
20535 mResponseSent = true;
20536#endif
20537 return NS_OK;
20538}
20539
20540template <IDBCursorType CursorType>
20541nsresult Cursor<CursorType>::ContinueOp::DoDatabaseWork(
20542 DatabaseConnection* aConnection) {
20543 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"
, 20543); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection"
")"); do { *((volatile int*)__null) = 20543; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20544 aConnection->AssertIsOnConnectionThread();
20545 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"
, 20545); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor" ")"
); do { *((volatile int*)__null) = 20545; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
20546 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"
, 20546); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mObjectStoreId"
")"); do { *((volatile int*)__null) = 20546; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20547 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"
, 20547); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinueQuery.IsEmpty()"
")"); do { *((volatile int*)__null) = 20547; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20548 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"
, 20548); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinueToQuery.IsEmpty()"
")"); do { *((volatile int*)__null) = 20548; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20549 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"
, 20549); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCurrentPosition.mKey.IsUnset()"
")"); do { *((volatile int*)__null) = 20549; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20550
20551 if constexpr (IsIndexCursor) {
20552 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"
, 20555); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()"
")"); do { *((volatile int*)__null) = 20555; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
20553 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"
, 20555); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()"
")"); do { *((volatile int*)__null) = 20555; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
20554 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"
, 20555); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()"
")"); do { *((volatile int*)__null) = 20555; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
20555 !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"
, 20555); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()"
")"); do { *((volatile int*)__null) = 20555; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
20556 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"
, 20556); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mIndexId"
")"); do { *((volatile int*)__null) = 20556; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20557 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"
, 20557); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCurrentPosition.mObjectStoreKey.IsUnset()"
")"); do { *((volatile int*)__null) = 20557; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20558 }
20559
20560 AUTO_PROFILER_LABEL("Cursor::ContinueOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20560( "Cursor::ContinueOp::DoDatabaseWork"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
20561
20562 // We need to pick a query based on whether or not a key was passed to the
20563 // continue function. If not we'll grab the next item in the database that
20564 // is greater than (or less than, if we're running a PREV cursor) the current
20565 // key. If a key was passed we'll grab the next item in the database that is
20566 // greater than (or less than, if we're running a PREV cursor) or equal to the
20567 // key that was specified.
20568 //
20569 // TODO: The description above is not complete, it does not take account of
20570 // ContinuePrimaryKey nor Advance.
20571 //
20572 // Note: Changing the number or order of SELECT columns in the query will
20573 // require changes to CursorOpBase::PopulateResponseFromStatement.
20574
20575 const uint32_t advanceCount =
20576 mParams.type() == CursorRequestParams::TAdvanceParams
20577 ? mParams.get_AdvanceParams().count()
20578 : 1;
20579 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"
, 20579); AnnotateMozCrashReason("MOZ_ASSERT" "(" "advanceCount > 0"
")"); do { *((volatile int*)__null) = 20579; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20580
20581 bool hasContinueKey = false;
20582 bool hasContinuePrimaryKey = false;
20583
20584 auto explicitContinueKey = Key{};
20585
20586 switch (mParams.type()) {
20587 case CursorRequestParams::TContinueParams:
20588 if (!mParams.get_ContinueParams().key().IsUnset()) {
20589 hasContinueKey = true;
20590 explicitContinueKey = mParams.get_ContinueParams().key();
20591 }
20592 break;
20593 case CursorRequestParams::TContinuePrimaryKeyParams:
20594 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"
, 20594); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mParams.get_ContinuePrimaryKeyParams().key().IsUnset()"
")"); do { *((volatile int*)__null) = 20594; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20595 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"
, 20596); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mParams.get_ContinuePrimaryKeyParams().primaryKey().IsUnset()"
")"); do { *((volatile int*)__null) = 20596; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
20596 !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"
, 20596); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mParams.get_ContinuePrimaryKeyParams().primaryKey().IsUnset()"
")"); do { *((volatile int*)__null) = 20596; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20597 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"
, 20598); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mDirection == IDBCursorDirection::Next || mCursor->mDirection == IDBCursorDirection::Prev"
")"); do { *((volatile int*)__null) = 20598; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
20598 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"
, 20598); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mDirection == IDBCursorDirection::Next || mCursor->mDirection == IDBCursorDirection::Prev"
")"); do { *((volatile int*)__null) = 20598; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20599 hasContinueKey = true;
20600 hasContinuePrimaryKey = true;
20601 explicitContinueKey = mParams.get_ContinuePrimaryKeyParams().key();
20602 break;
20603 case CursorRequestParams::TAdvanceParams:
20604 break;
20605 default:
20606 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"
, 20606); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!"
")"); do { *((volatile int*)__null) = 20606; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
;
20607 }
20608
20609 // TODO: Whether it makes sense to preload depends on the kind of the
20610 // subsequent operations, not of the current operation. We could assume that
20611 // the subsequent operations are:
20612 // - the same as the current operation (with the same parameter values)
20613 // - as above, except for Advance, where we assume the count will be 1 on the
20614 // next call
20615 // - basic operations (Advance with count 1 or Continue-without-key)
20616 //
20617 // For now, we implement the second option for now (which correspond to
20618 // !hasContinueKey).
20619 //
20620 // Based on that, we could in both cases either preload for any assumed
20621 // subsequent operations, or only for the basic operations. For now, we
20622 // preload only for an assumed basic operation. Other operations would require
20623 // more work on the client side for invalidation, and may not make any sense
20624 // at all.
20625 const uint32_t maxExtraCount = hasContinueKey ? 0 : mCursor->mMaxExtraCount;
20626
20627 QM_TRY_INSPECT(const auto& stmt,auto tryResult1518 = (aConnection->BorrowCachedStatement( mCursor
->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey
))); if ((__builtin_expect(!!(tryResult1518.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( mCursor->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey))"
, tryResult1518.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20630, mozilla::dom::quota::Severity::Error); return tryResult1518
.propagateErr(); } const auto& stmt = tryResult1518.inspect
();
20628 aConnection->BorrowCachedStatement(auto tryResult1518 = (aConnection->BorrowCachedStatement( mCursor
->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey
))); if ((__builtin_expect(!!(tryResult1518.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( mCursor->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey))"
, tryResult1518.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20630, mozilla::dom::quota::Severity::Error); return tryResult1518
.propagateErr(); } const auto& stmt = tryResult1518.inspect
();
20629 mCursor->mContinueQueries->GetContinueQuery(auto tryResult1518 = (aConnection->BorrowCachedStatement( mCursor
->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey
))); if ((__builtin_expect(!!(tryResult1518.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( mCursor->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey))"
, tryResult1518.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20630, mozilla::dom::quota::Severity::Error); return tryResult1518
.propagateErr(); } const auto& stmt = tryResult1518.inspect
();
20630 hasContinueKey, hasContinuePrimaryKey)))auto tryResult1518 = (aConnection->BorrowCachedStatement( mCursor
->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey
))); if ((__builtin_expect(!!(tryResult1518.isErr()), 0))) { mozilla
::dom::quota::HandleError("aConnection->BorrowCachedStatement( mCursor->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey))"
, tryResult1518.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20630, mozilla::dom::quota::Severity::Error); return tryResult1518
.propagateErr(); } const auto& stmt = tryResult1518.inspect
();
;
20631
20632 QM_TRY(MOZ_TO_RESULT(stmt->BindUTF8StringByName({auto tryResult1519 = (ToResult(stmt->BindUTF8StringByName
( kStmtParamNameLimit, IntToCString(advanceCount + mCursor->
mMaxExtraCount)))); static_assert(std::is_empty_v<typename
decltype(tryResult1519)::ok_type>); if ((__builtin_expect
(!!(tryResult1519.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindUTF8StringByName( kStmtParamNameLimit, IntToCString(advanceCount + mCursor->mMaxExtraCount)))"
, tryResult1519.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20634, mozilla::dom::quota::Severity::Error); return tryResult1519
.propagateErr(); }}
20633 kStmtParamNameLimit,{auto tryResult1519 = (ToResult(stmt->BindUTF8StringByName
( kStmtParamNameLimit, IntToCString(advanceCount + mCursor->
mMaxExtraCount)))); static_assert(std::is_empty_v<typename
decltype(tryResult1519)::ok_type>); if ((__builtin_expect
(!!(tryResult1519.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindUTF8StringByName( kStmtParamNameLimit, IntToCString(advanceCount + mCursor->mMaxExtraCount)))"
, tryResult1519.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20634, mozilla::dom::quota::Severity::Error); return tryResult1519
.propagateErr(); }}
20634 IntToCString(advanceCount + mCursor->mMaxExtraCount)))){auto tryResult1519 = (ToResult(stmt->BindUTF8StringByName
( kStmtParamNameLimit, IntToCString(advanceCount + mCursor->
mMaxExtraCount)))); static_assert(std::is_empty_v<typename
decltype(tryResult1519)::ok_type>); if ((__builtin_expect
(!!(tryResult1519.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindUTF8StringByName( kStmtParamNameLimit, IntToCString(advanceCount + mCursor->mMaxExtraCount)))"
, tryResult1519.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20634, mozilla::dom::quota::Severity::Error); return tryResult1519
.propagateErr(); }}
;
20635
20636 QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByName(kStmtParamNameId, mCursor->Id()))){auto tryResult1520 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId
, mCursor->Id()))); static_assert(std::is_empty_v<typename
decltype(tryResult1520)::ok_type>); if ((__builtin_expect
(!!(tryResult1520.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(stmt->BindInt64ByName(kStmtParamNameId, mCursor->Id()))"
, tryResult1520.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20636, mozilla::dom::quota::Severity::Error); return tryResult1520
.propagateErr(); }}
;
20637
20638 // Bind current key.
20639 const auto& continueKey =
20640 hasContinueKey ? explicitContinueKey
20641 : mCurrentPosition.GetSortKey(mCursor->IsLocaleAware());
20642 QM_TRY(MOZ_TO_RESULT({auto tryResult1521 = (ToResult(continueKey.BindToStatement(&
*stmt, kStmtParamNameCurrentKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1521)::ok_type>); if ((__builtin_expect
(!!(tryResult1521.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(continueKey.BindToStatement(&*stmt, kStmtParamNameCurrentKey))"
, tryResult1521.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20643, mozilla::dom::quota::Severity::Error); return tryResult1521
.propagateErr(); }}
20643 continueKey.BindToStatement(&*stmt, kStmtParamNameCurrentKey))){auto tryResult1521 = (ToResult(continueKey.BindToStatement(&
*stmt, kStmtParamNameCurrentKey))); static_assert(std::is_empty_v
<typename decltype(tryResult1521)::ok_type>); if ((__builtin_expect
(!!(tryResult1521.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(continueKey.BindToStatement(&*stmt, kStmtParamNameCurrentKey))"
, tryResult1521.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20643, mozilla::dom::quota::Severity::Error); return tryResult1521
.propagateErr(); }}
;
20644
20645 // Bind range bound if it is specified.
20646 if (!mCursor->mLocaleAwareRangeBound->IsUnset()) {
20647 QM_TRY(MOZ_TO_RESULT(mCursor->mLocaleAwareRangeBound->BindToStatement({auto tryResult1522 = (ToResult(mCursor->mLocaleAwareRangeBound
->BindToStatement( &*stmt, kStmtParamNameRangeBound)))
; static_assert(std::is_empty_v<typename decltype(tryResult1522
)::ok_type>); if ((__builtin_expect(!!(tryResult1522.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(mCursor->mLocaleAwareRangeBound->BindToStatement( &*stmt, kStmtParamNameRangeBound))"
, tryResult1522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20648, mozilla::dom::quota::Severity::Error); return tryResult1522
.propagateErr(); }}
20648 &*stmt, kStmtParamNameRangeBound))){auto tryResult1522 = (ToResult(mCursor->mLocaleAwareRangeBound
->BindToStatement( &*stmt, kStmtParamNameRangeBound)))
; static_assert(std::is_empty_v<typename decltype(tryResult1522
)::ok_type>); if ((__builtin_expect(!!(tryResult1522.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(mCursor->mLocaleAwareRangeBound->BindToStatement( &*stmt, kStmtParamNameRangeBound))"
, tryResult1522.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20648, mozilla::dom::quota::Severity::Error); return tryResult1522
.propagateErr(); }}
;
20649 }
20650
20651 // Bind object store position if duplicates are allowed and we're not
20652 // continuing to a specific key.
20653 if constexpr (IsIndexCursor) {
20654 if (!hasContinueKey && (mCursor->mDirection == IDBCursorDirection::Next ||
20655 mCursor->mDirection == IDBCursorDirection::Prev)) {
20656 QM_TRY(MOZ_TO_RESULT(mCurrentPosition.mObjectStoreKey.BindToStatement({auto tryResult1523 = (ToResult(mCurrentPosition.mObjectStoreKey
.BindToStatement( &*stmt, kStmtParamNameObjectStorePosition
))); static_assert(std::is_empty_v<typename decltype(tryResult1523
)::ok_type>); if ((__builtin_expect(!!(tryResult1523.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(mCurrentPosition.mObjectStoreKey.BindToStatement( &*stmt, kStmtParamNameObjectStorePosition))"
, tryResult1523.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20657, mozilla::dom::quota::Severity::Error); return tryResult1523
.propagateErr(); }}
20657 &*stmt, kStmtParamNameObjectStorePosition))){auto tryResult1523 = (ToResult(mCurrentPosition.mObjectStoreKey
.BindToStatement( &*stmt, kStmtParamNameObjectStorePosition
))); static_assert(std::is_empty_v<typename decltype(tryResult1523
)::ok_type>); if ((__builtin_expect(!!(tryResult1523.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(mCurrentPosition.mObjectStoreKey.BindToStatement( &*stmt, kStmtParamNameObjectStorePosition))"
, tryResult1523.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20657, mozilla::dom::quota::Severity::Error); return tryResult1523
.propagateErr(); }}
;
20658 } else if (hasContinuePrimaryKey) {
20659 QM_TRY(MOZ_TO_RESULT({auto tryResult1524 = (ToResult(mParams.get_ContinuePrimaryKeyParams
().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition
))); static_assert(std::is_empty_v<typename decltype(tryResult1524
)::ok_type>); if ((__builtin_expect(!!(tryResult1524.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(mParams.get_ContinuePrimaryKeyParams().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition))"
, tryResult1524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20661, mozilla::dom::quota::Severity::Error); return tryResult1524
.propagateErr(); }}
20660 mParams.get_ContinuePrimaryKeyParams().primaryKey().BindToStatement({auto tryResult1524 = (ToResult(mParams.get_ContinuePrimaryKeyParams
().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition
))); static_assert(std::is_empty_v<typename decltype(tryResult1524
)::ok_type>); if ((__builtin_expect(!!(tryResult1524.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(mParams.get_ContinuePrimaryKeyParams().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition))"
, tryResult1524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20661, mozilla::dom::quota::Severity::Error); return tryResult1524
.propagateErr(); }}
20661 &*stmt, kStmtParamNameObjectStorePosition))){auto tryResult1524 = (ToResult(mParams.get_ContinuePrimaryKeyParams
().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition
))); static_assert(std::is_empty_v<typename decltype(tryResult1524
)::ok_type>); if ((__builtin_expect(!!(tryResult1524.isErr
()), 0))) { mozilla::dom::quota::HandleError("ToResult(mParams.get_ContinuePrimaryKeyParams().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition))"
, tryResult1524.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20661, mozilla::dom::quota::Severity::Error); return tryResult1524
.propagateErr(); }}
;
20662 }
20663 }
20664
20665 // TODO: Why do we query the records we don't need and skip them here, rather
20666 // than using a OFFSET clause in the query?
20667 for (uint32_t index = 0; index < advanceCount; index++) {
20668 QM_TRY_INSPECT(const bool& hasResult,auto tryResult1525 = (::mozilla::ToResultInvokeMember( (&
*stmt), &::mozilla::detail::DerefedType<decltype(&
*stmt)>::ExecuteStep)); if ((__builtin_expect(!!(tryResult1525
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (&*stmt), &::mozilla::detail::DerefedType<decltype(&*stmt)>::ExecuteStep)"
, tryResult1525.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20669, mozilla::dom::quota::Severity::Error); return tryResult1525
.propagateErr(); } const bool& hasResult = tryResult1525.
inspect();
20669 MOZ_TO_RESULT_INVOKE_MEMBER(&*stmt, ExecuteStep))auto tryResult1525 = (::mozilla::ToResultInvokeMember( (&
*stmt), &::mozilla::detail::DerefedType<decltype(&
*stmt)>::ExecuteStep)); if ((__builtin_expect(!!(tryResult1525
.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (&*stmt), &::mozilla::detail::DerefedType<decltype(&*stmt)>::ExecuteStep)"
, tryResult1525.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20669, mozilla::dom::quota::Severity::Error); return tryResult1525
.propagateErr(); } const bool& hasResult = tryResult1525.
inspect();
;
20670
20671 if (!hasResult) {
20672 mResponse = void_t();
20673 return NS_OK;
20674 }
20675 }
20676
20677 Key previousKey;
20678 auto* const optPreviousKey =
20679 IsUnique(mCursor->mDirection) ? &previousKey : nullptr;
20680
20681 auto helper = CursorOpBaseHelperBase<CursorType>{*this};
20682 QM_TRY_INSPECT(const auto& responseSize, helper.PopulateResponseFromStatement(auto tryResult1526 = (helper.PopulateResponseFromStatement( &
*stmt, true, optPreviousKey)); if ((__builtin_expect(!!(tryResult1526
.isErr()), 0))) { mozilla::dom::quota::HandleError("helper.PopulateResponseFromStatement( &*stmt, true, optPreviousKey)"
, tryResult1526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20683, mozilla::dom::quota::Severity::Error); return tryResult1526
.propagateErr(); } const auto& responseSize = tryResult1526
.inspect();
20683 &*stmt, true, optPreviousKey))auto tryResult1526 = (helper.PopulateResponseFromStatement( &
*stmt, true, optPreviousKey)); if ((__builtin_expect(!!(tryResult1526
.isErr()), 0))) { mozilla::dom::quota::HandleError("helper.PopulateResponseFromStatement( &*stmt, true, optPreviousKey)"
, tryResult1526.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20683, mozilla::dom::quota::Severity::Error); return tryResult1526
.propagateErr(); } const auto& responseSize = tryResult1526
.inspect();
;
20684
20685 helper.PopulateExtraResponses(&*stmt, maxExtraCount, responseSize,
20686 "ContinueOp"_ns, optPreviousKey);
20687
20688 return NS_OK;
20689}
20690
20691Utils::Utils()
20692#ifdef DEBUG1
20693 : mActorDestroyed(false)
20694#endif
20695{
20696 AssertIsOnBackgroundThread();
20697}
20698
20699Utils::~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"
, 20699); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActorDestroyed"
")"); do { *((volatile int*)__null) = 20699; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
; }
20700
20701void Utils::ActorDestroy(ActorDestroyReason aWhy) {
20702 AssertIsOnBackgroundThread();
20703 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"
, 20703); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed"
")"); do { *((volatile int*)__null) = 20703; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20704
20705#ifdef DEBUG1
20706 mActorDestroyed = true;
20707#endif
20708}
20709
20710mozilla::ipc::IPCResult Utils::RecvDeleteMe() {
20711 AssertIsOnBackgroundThread();
20712 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"
, 20712); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed"
")"); do { *((volatile int*)__null) = 20712; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20713
20714 QM_WARNONLY_TRY(OkIf(PBackgroundIndexedDBUtilsParent::Send__delete__(this))){auto tryResult1527 = (OkIf(PBackgroundIndexedDBUtilsParent::
Send__delete__(this))); static_assert(std::is_empty_v<typename
decltype(tryResult1527)::ok_type>); if ((__builtin_expect
(!!(tryResult1527.isErr()), 0))) { mozilla::dom::quota::HandleError
("OkIf(PBackgroundIndexedDBUtilsParent::Send__delete__(this))"
, tryResult1527.unwrapErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20714, mozilla::dom::quota::Severity::Warning); }}
;
20715
20716 return IPC_OK()mozilla::ipc::IPCResult::Ok();
20717}
20718
20719mozilla::ipc::IPCResult Utils::RecvGetFileReferences(
20720 const PersistenceType& aPersistenceType, const nsACString& aOrigin,
20721 const nsAString& aDatabaseName, const int64_t& aFileId, int32_t* aRefCnt,
20722 int32_t* aDBRefCnt, bool* aResult) {
20723 AssertIsOnBackgroundThread();
20724 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"
, 20724); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aRefCnt" ")"
); do { *((volatile int*)__null) = 20724; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
20725 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"
, 20725); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDBRefCnt"
")"); do { *((volatile int*)__null) = 20725; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20726 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"
, 20726); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResult" ")"
); do { *((volatile int*)__null) = 20726; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
20727 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"
, 20727); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed"
")"); do { *((volatile int*)__null) = 20727; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20728
20729 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"
, 20729)
) {
20730 return IPC_FAIL(this, "No IndexedDatabaseManager active!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No IndexedDatabaseManager active!"
))
;
20731 }
20732
20733 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"
, 20733)
) {
20734 return IPC_FAIL(this, "No QuotaManager active!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No QuotaManager active!"
))
;
20735 }
20736
20737 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"
, 20737)
) {
20738 return IPC_FAIL(this, "IndexedDB is not in testing mode!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("IndexedDB is not in testing mode!"
))
;
20739 }
20740
20741 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"
, 20741)
) {
20742 return IPC_FAIL(this, "PersistenceType is not valid!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("PersistenceType is not valid!"
))
;
20743 }
20744
20745 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"
, 20745)
) {
20746 return IPC_FAIL(this, "Origin is empty!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Origin is empty!"
))
;
20747 }
20748
20749 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"
, 20749)
) {
20750 return IPC_FAIL(this, "DatabaseName is empty!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("DatabaseName is empty!"
))
;
20751 }
20752
20753 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"
, 20753)
) {
20754 return IPC_FAIL(this, "No FileId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No FileId!"
))
;
20755 }
20756
20757 nsresult rv =
20758 DispatchAndReturnFileReferences(aPersistenceType, aOrigin, aDatabaseName,
20759 aFileId, aRefCnt, aDBRefCnt, aResult);
20760 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"
, 20760)
) {
20761 return IPC_FAIL(this, "DispatchAndReturnFileReferences failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("DispatchAndReturnFileReferences failed!"
))
;
20762 }
20763
20764 return IPC_OK()mozilla::ipc::IPCResult::Ok();
20765}
20766
20767mozilla::ipc::IPCResult Utils::RecvDoMaintenance(
20768 DoMaintenanceResolver&& aResolver) {
20769 AssertIsOnBackgroundThread();
20770
20771 QM_TRY(MOZ_TO_RESULT(!QuotaManager::IsShuttingDown()),{auto tryResult1528 = (ToResult(!QuotaManager::IsShuttingDown
())); 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(!QuotaManager::IsShuttingDown())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20772, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(!QuotaManager::IsShuttingDown())"
, tryTempError, ResolveNSResultResponseAndReturn(aResolver));
}}
20772 ResolveNSResultResponseAndReturn(aResolver)){auto tryResult1528 = (ToResult(!QuotaManager::IsShuttingDown
())); 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(!QuotaManager::IsShuttingDown())"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20772, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "ToResult(!QuotaManager::IsShuttingDown())"
, tryTempError, ResolveNSResultResponseAndReturn(aResolver));
}}
;
20773
20774 QM_TRY(QuotaManager::EnsureCreated(),{auto tryResult1529 = (QuotaManager::EnsureCreated()); static_assert
(std::is_empty_v<typename decltype(tryResult1529)::ok_type
>); if ((__builtin_expect(!!(tryResult1529.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1529
.unwrapErr(); mozilla::dom::quota::HandleError("QuotaManager::EnsureCreated()"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20775, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "QuotaManager::EnsureCreated()"
, tryTempError, ResolveNSResultResponseAndReturn(aResolver));
}}
20775 ResolveNSResultResponseAndReturn(aResolver)){auto tryResult1529 = (QuotaManager::EnsureCreated()); static_assert
(std::is_empty_v<typename decltype(tryResult1529)::ok_type
>); if ((__builtin_expect(!!(tryResult1529.isErr()), 0))) {
auto tryTempError __attribute__((__unused__)) = tryResult1529
.unwrapErr(); mozilla::dom::quota::HandleError("QuotaManager::EnsureCreated()"
, tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20775, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "QuotaManager::EnsureCreated()"
, tryTempError, ResolveNSResultResponseAndReturn(aResolver));
}}
;
20776
20777 QuotaClient* quotaClient = QuotaClient::GetInstance();
20778 QM_TRY(MOZ_TO_RESULT(quotaClient), QM_IPC_FAIL(this)){auto tryResult1530 = (ToResult(quotaClient)); static_assert(
std::is_empty_v<typename decltype(tryResult1530)::ok_type>
); if ((__builtin_expect(!!(tryResult1530.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1530.unwrapErr
(); mozilla::dom::quota::HandleError("ToResult(quotaClient)",
tryTempError, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20778, 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))); }}
;
20779
20780 quotaClient->DoMaintenance()->Then(
20781 GetCurrentSerialEventTarget(), __func__,
20782 [self = RefPtr(this), resolver = std::move(aResolver)](
20783 const BoolPromise::ResolveOrRejectValue& aValue) {
20784 if (!self->CanSend()) {
20785 return;
20786 }
20787
20788 if (aValue.IsResolve()) {
20789 resolver(NS_OK);
20790 } else {
20791 resolver(aValue.RejectValue());
20792 }
20793 });
20794
20795 return IPC_OK()mozilla::ipc::IPCResult::Ok();
20796}
20797
20798#ifdef DEBUG1
20799
20800NS_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"
, 20800); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { *((volatile int*)__null) =
20800; __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"
, 20800); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DEBUGThreadSlower\" != nullptr"
") (" "Must specify a name" ")"); do { *((volatile int*)__null
) = 20800; __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"
, 20800); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { *((volatile int*)__null) = 20800
; __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"
, 20800); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DEBUGThreadSlower\" != nullptr"
") (" "Must specify a name" ")"); do { *((volatile int*)__null
) = 20800; __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"
, 20800); 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((sizeof(table) / sizeof(table[0])) > 1, "need at least 1 interface"
); rv = NS_TableDrivenQI(static_cast<void*>(this), aIID
, aInstancePtr, table); return rv; }
20801
20802NS_IMETHODIMPnsresult
20803DEBUGThreadSlower::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"
, 20803); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be called!"
")"); do { *((volatile int*)__null) = 20803; __attribute__((
nomerge)) ::abort(); } while (false); } while (false)
; }
20804
20805NS_IMETHODIMPnsresult
20806DEBUGThreadSlower::OnProcessNextEvent(nsIThreadInternal* /* aThread */,
20807 bool /* aMayWait */) {
20808 return NS_OK;
20809}
20810
20811NS_IMETHODIMPnsresult
20812DEBUGThreadSlower::AfterProcessNextEvent(nsIThreadInternal* /* aThread */,
20813 bool /* aEventWasProcessed */) {
20814 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"
, 20814); AnnotateMozCrashReason("MOZ_ASSERT" "(" "kDEBUGThreadSleepMS"
")"); do { *((volatile int*)__null) = 20814; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20815
20816 MOZ_ALWAYS_TRUE(PR_Sleep(PR_MillisecondsToInterval(kDEBUGThreadSleepMS)) ==do { if ((__builtin_expect(!!(PR_Sleep(PR_MillisecondsToInterval
(kDEBUGThreadSleepMS)) == PR_SUCCESS), 1))) { } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "PR_Sleep(PR_MillisecondsToInterval(kDEBUGThreadSleepMS)) == PR_SUCCESS"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20817); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "PR_Sleep(PR_MillisecondsToInterval(kDEBUGThreadSleepMS)) == PR_SUCCESS"
")"); do { *((volatile int*)__null) = 20817; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
20817 PR_SUCCESS)do { if ((__builtin_expect(!!(PR_Sleep(PR_MillisecondsToInterval
(kDEBUGThreadSleepMS)) == PR_SUCCESS), 1))) { } else { do { static_assert
( mozilla::detail::AssertionConditionType<decltype(false)>
::isValid, "invalid assertion condition"); if ((__builtin_expect
(!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure
("false" " (" "PR_Sleep(PR_MillisecondsToInterval(kDEBUGThreadSleepMS)) == PR_SUCCESS"
")", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20817); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "false"
") (" "PR_Sleep(PR_MillisecondsToInterval(kDEBUGThreadSleepMS)) == PR_SUCCESS"
")"); do { *((volatile int*)__null) = 20817; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); } } while
(false)
;
20818 return NS_OK;
20819}
20820
20821#endif // DEBUG
20822
20823nsresult FileHelper::Init() {
20824 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"
, 20824); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 20824; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20825
20826 auto fileDirectory = mFileManager->GetCheckedDirectory();
20827 if (NS_WARN_IF(!fileDirectory)NS_warn_if_impl(!fileDirectory, "!fileDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20827)
) {
20828 return NS_ERROR_FAILURE;
20829 }
20830
20831 auto journalDirectory = mFileManager->EnsureJournalDirectory();
20832 if (NS_WARN_IF(!journalDirectory)NS_warn_if_impl(!journalDirectory, "!journalDirectory", "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20832)
) {
20833 return NS_ERROR_FAILURE;
20834 }
20835
20836 DebugOnly<bool> exists;
20837 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"
, 20837); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(journalDirectory->Exists(&exists))), 1)))"
")"); do { *((volatile int*)__null) = 20837; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20838 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"
, 20838); AnnotateMozCrashReason("MOZ_ASSERT" "(" "exists" ")"
); do { *((volatile int*)__null) = 20838; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
20839
20840 DebugOnly<bool> isDirectory;
20841 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"
, 20841); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(journalDirectory->IsDirectory(&isDirectory))), 1)))"
")"); do { *((volatile int*)__null) = 20841; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20842 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"
, 20842); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory"
")"); do { *((volatile int*)__null) = 20842; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20843
20844 mFileDirectory.init(WrapNotNullUnchecked(std::move(fileDirectory)));
20845 mJournalDirectory.init(WrapNotNullUnchecked(std::move(journalDirectory)));
20846
20847 return NS_OK;
20848}
20849
20850nsCOMPtr<nsIFile> FileHelper::GetFile(const DatabaseFileInfo& aFileInfo) {
20851 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"
, 20851); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 20851; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20852
20853 return mFileManager->GetFileForId(mFileDirectory->get(), aFileInfo.Id());
20854}
20855
20856nsCOMPtr<nsIFile> FileHelper::GetJournalFile(
20857 const DatabaseFileInfo& aFileInfo) {
20858 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"
, 20858); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 20858; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20859
20860 return mFileManager->GetFileForId(mJournalDirectory->get(), aFileInfo.Id());
20861}
20862
20863nsresult FileHelper::CreateFileFromStream(nsIFile& aFile, nsIFile& aJournalFile,
20864 nsIInputStream& aInputStream,
20865 bool aCompress,
20866 const Maybe<CipherKey>& aMaybeKey) {
20867 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"
, 20867); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 20867; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
20868
20869 QM_TRY_INSPECT(const auto& exists,auto tryResult1531 = (::mozilla::ToResultInvokeMember( (aFile
), &::mozilla::detail::DerefedType<decltype(aFile)>
::Exists)); if ((__builtin_expect(!!(tryResult1531.isErr()), 0
))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::Exists)"
, tryResult1531.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20870, mozilla::dom::quota::Severity::Error); return tryResult1531
.propagateErr(); } const auto& exists = tryResult1531.inspect
();
20870 MOZ_TO_RESULT_INVOKE_MEMBER(aFile, Exists))auto tryResult1531 = (::mozilla::ToResultInvokeMember( (aFile
), &::mozilla::detail::DerefedType<decltype(aFile)>
::Exists)); if ((__builtin_expect(!!(tryResult1531.isErr()), 0
))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::Exists)"
, tryResult1531.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20870, mozilla::dom::quota::Severity::Error); return tryResult1531
.propagateErr(); } const auto& exists = tryResult1531.inspect
();
;
20871
20872 // DOM blobs that are being stored in IDB are cached by calling
20873 // IDBDatabase::GetOrCreateFileActorForBlob. So if the same DOM blob is stored
20874 // again under a different key or in a different object store, we just add
20875 // a new reference instead of creating a new copy (all such stored blobs share
20876 // the same id).
20877 // However, it can happen that CreateFileFromStream failed due to quota
20878 // exceeded error and for some reason the orphaned file couldn't be deleted
20879 // immediately. Now, if the operation is being repeated, the DOM blob is
20880 // already cached, so it has the same file id which clashes with the orphaned
20881 // file. We could do some tricks to restore previous copy loop, but it's safer
20882 // to just delete the orphaned file and start from scratch.
20883 // This corner case is partially simulated in test_file_copy_failure.js
20884 if (exists) {
20885 QM_TRY_INSPECT(const auto& isFile,auto tryResult1532 = (::mozilla::ToResultInvokeMember( (aFile
), &::mozilla::detail::DerefedType<decltype(aFile)>
::IsFile)); if ((__builtin_expect(!!(tryResult1532.isErr()), 0
))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::IsFile)"
, tryResult1532.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20886, mozilla::dom::quota::Severity::Error); return tryResult1532
.propagateErr(); } const auto& isFile = tryResult1532.inspect
();
20886 MOZ_TO_RESULT_INVOKE_MEMBER(aFile, IsFile))auto tryResult1532 = (::mozilla::ToResultInvokeMember( (aFile
), &::mozilla::detail::DerefedType<decltype(aFile)>
::IsFile)); if ((__builtin_expect(!!(tryResult1532.isErr()), 0
))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::IsFile)"
, tryResult1532.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20886, mozilla::dom::quota::Severity::Error); return tryResult1532
.propagateErr(); } const auto& isFile = tryResult1532.inspect
();
;
20887
20888 QM_TRY(OkIf(isFile), NS_ERROR_FAILURE){auto tryResult1533 = (OkIf(isFile)); 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(isFile)", 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, "OkIf(isFile)"
, tryTempError, NS_ERROR_FAILURE); }}
;
20889
20890 QM_TRY_INSPECT(const auto& journalExists,auto tryResult1534 = (::mozilla::ToResultInvokeMember( (aJournalFile
), &::mozilla::detail::DerefedType<decltype(aJournalFile
)>::Exists)); if ((__builtin_expect(!!(tryResult1534.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aJournalFile), &::mozilla::detail::DerefedType<decltype(aJournalFile)>::Exists)"
, tryResult1534.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20891, mozilla::dom::quota::Severity::Error); return tryResult1534
.propagateErr(); } const auto& journalExists = tryResult1534
.inspect();
20891 MOZ_TO_RESULT_INVOKE_MEMBER(aJournalFile, Exists))auto tryResult1534 = (::mozilla::ToResultInvokeMember( (aJournalFile
), &::mozilla::detail::DerefedType<decltype(aJournalFile
)>::Exists)); if ((__builtin_expect(!!(tryResult1534.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aJournalFile), &::mozilla::detail::DerefedType<decltype(aJournalFile)>::Exists)"
, tryResult1534.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20891, mozilla::dom::quota::Severity::Error); return tryResult1534
.propagateErr(); } const auto& journalExists = tryResult1534
.inspect();
;
20892
20893 QM_TRY(OkIf(journalExists), NS_ERROR_FAILURE){auto tryResult1535 = (OkIf(journalExists)); 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(journalExists)", 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, "OkIf(journalExists)"
, tryTempError, NS_ERROR_FAILURE); }}
;
20894
20895 QM_TRY_INSPECT(const auto& journalIsFile,auto tryResult1536 = (::mozilla::ToResultInvokeMember( (aJournalFile
), &::mozilla::detail::DerefedType<decltype(aJournalFile
)>::IsFile)); if ((__builtin_expect(!!(tryResult1536.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aJournalFile), &::mozilla::detail::DerefedType<decltype(aJournalFile)>::IsFile)"
, tryResult1536.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20896, mozilla::dom::quota::Severity::Error); return tryResult1536
.propagateErr(); } const auto& journalIsFile = tryResult1536
.inspect();
20896 MOZ_TO_RESULT_INVOKE_MEMBER(aJournalFile, IsFile))auto tryResult1536 = (::mozilla::ToResultInvokeMember( (aJournalFile
), &::mozilla::detail::DerefedType<decltype(aJournalFile
)>::IsFile)); if ((__builtin_expect(!!(tryResult1536.isErr
()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aJournalFile), &::mozilla::detail::DerefedType<decltype(aJournalFile)>::IsFile)"
, tryResult1536.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20896, mozilla::dom::quota::Severity::Error); return tryResult1536
.propagateErr(); } const auto& journalIsFile = tryResult1536
.inspect();
;
20897
20898 QM_TRY(OkIf(journalIsFile), NS_ERROR_FAILURE){auto tryResult1537 = (OkIf(journalIsFile)); static_assert(std
::is_empty_v<typename decltype(tryResult1537)::ok_type>
); if ((__builtin_expect(!!(tryResult1537.isErr()), 0))) { auto
tryTempError __attribute__((__unused__)) = tryResult1537.unwrapErr
(); mozilla::dom::quota::HandleError("OkIf(journalIsFile)", tryTempError
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20898, mozilla::dom::quota::Severity::Error); constexpr const
auto& func __attribute__((__unused__)) = __func__; return
mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(journalIsFile)"
, tryTempError, NS_ERROR_FAILURE); }}
;
20899
20900 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"
, 20900, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr
, "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20900); } while (0)
;
20901
20902 QM_TRY(MOZ_TO_RESULT(mFileManager->SyncDeleteFile(aFile, aJournalFile))){auto tryResult1538 = (ToResult(mFileManager->SyncDeleteFile
(aFile, aJournalFile))); static_assert(std::is_empty_v<typename
decltype(tryResult1538)::ok_type>); if ((__builtin_expect
(!!(tryResult1538.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(mFileManager->SyncDeleteFile(aFile, aJournalFile))"
, tryResult1538.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20902, mozilla::dom::quota::Severity::Error); return tryResult1538
.propagateErr(); }}
;
20903 }
20904
20905 // Create a journal file first.
20906 QM_TRY(MOZ_TO_RESULT(aJournalFile.Create(nsIFile::NORMAL_FILE_TYPE, 0644))){auto tryResult1539 = (ToResult(aJournalFile.Create(nsIFile::
NORMAL_FILE_TYPE, 0644))); static_assert(std::is_empty_v<typename
decltype(tryResult1539)::ok_type>); if ((__builtin_expect
(!!(tryResult1539.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(aJournalFile.Create(nsIFile::NORMAL_FILE_TYPE, 0644))"
, tryResult1539.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20906, mozilla::dom::quota::Severity::Error); return tryResult1539
.propagateErr(); }}
;
20907
20908 // Now try to copy the stream.
20909 QM_TRY_UNWRAP(nsCOMPtr<nsIOutputStream> fileOutputStream,auto tryResult1540 = (CreateFileOutputStream(mFileManager->
Type(), mFileManager->OriginMetadata(), Client::IDB, &
aFile)); if ((__builtin_expect(!!(tryResult1540.isErr()), 0))
) { mozilla::dom::quota::HandleError("CreateFileOutputStream(mFileManager->Type(), mFileManager->OriginMetadata(), Client::IDB, &aFile)"
, tryResult1540.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20912, mozilla::dom::quota::Severity::Error); return tryResult1540
.propagateErr(); } nsCOMPtr<nsIOutputStream> fileOutputStream
= tryResult1540.unwrap();
20910 CreateFileOutputStream(mFileManager->Type(),auto tryResult1540 = (CreateFileOutputStream(mFileManager->
Type(), mFileManager->OriginMetadata(), Client::IDB, &
aFile)); if ((__builtin_expect(!!(tryResult1540.isErr()), 0))
) { mozilla::dom::quota::HandleError("CreateFileOutputStream(mFileManager->Type(), mFileManager->OriginMetadata(), Client::IDB, &aFile)"
, tryResult1540.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20912, mozilla::dom::quota::Severity::Error); return tryResult1540
.propagateErr(); } nsCOMPtr<nsIOutputStream> fileOutputStream
= tryResult1540.unwrap();
20911 mFileManager->OriginMetadata(),auto tryResult1540 = (CreateFileOutputStream(mFileManager->
Type(), mFileManager->OriginMetadata(), Client::IDB, &
aFile)); if ((__builtin_expect(!!(tryResult1540.isErr()), 0))
) { mozilla::dom::quota::HandleError("CreateFileOutputStream(mFileManager->Type(), mFileManager->OriginMetadata(), Client::IDB, &aFile)"
, tryResult1540.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20912, mozilla::dom::quota::Severity::Error); return tryResult1540
.propagateErr(); } nsCOMPtr<nsIOutputStream> fileOutputStream
= tryResult1540.unwrap();
20912 Client::IDB, &aFile))auto tryResult1540 = (CreateFileOutputStream(mFileManager->
Type(), mFileManager->OriginMetadata(), Client::IDB, &
aFile)); if ((__builtin_expect(!!(tryResult1540.isErr()), 0))
) { mozilla::dom::quota::HandleError("CreateFileOutputStream(mFileManager->Type(), mFileManager->OriginMetadata(), Client::IDB, &aFile)"
, tryResult1540.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20912, mozilla::dom::quota::Severity::Error); return tryResult1540
.propagateErr(); } nsCOMPtr<nsIOutputStream> fileOutputStream
= tryResult1540.unwrap();
;
20913
20914 AutoTArray<char, kFileCopyBufferSize> buffer;
20915 const auto actualOutputStream =
20916 [aCompress, &aMaybeKey, &buffer,
20917 baseOutputStream =
20918 std::move(fileOutputStream)]() mutable -> nsCOMPtr<nsIOutputStream> {
20919 if (aMaybeKey) {
20920 baseOutputStream =
20921 MakeRefPtr<EncryptingOutputStream<IndexedDBCipherStrategy>>(
20922 std::move(baseOutputStream), kEncryptedStreamBlockSize,
20923 *aMaybeKey);
20924 }
20925
20926 if (aCompress) {
20927 auto snappyOutputStream =
20928 MakeRefPtr<SnappyCompressOutputStream>(baseOutputStream);
20929
20930 buffer.SetLength(snappyOutputStream->BlockSize());
20931
20932 return snappyOutputStream;
20933 }
20934
20935 buffer.SetLength(kFileCopyBufferSize);
20936 return std::move(baseOutputStream);
20937 }();
20938
20939 QM_TRY(MOZ_TO_RESULT(SyncCopy(aInputStream, *actualOutputStream,{auto tryResult1541 = (ToResult(SyncCopy(aInputStream, *actualOutputStream
, buffer.Elements(), buffer.Length()))); static_assert(std::is_empty_v
<typename decltype(tryResult1541)::ok_type>); if ((__builtin_expect
(!!(tryResult1541.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SyncCopy(aInputStream, *actualOutputStream, buffer.Elements(), buffer.Length()))"
, tryResult1541.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20940, mozilla::dom::quota::Severity::Error); return tryResult1541
.propagateErr(); }}
20940 buffer.Elements(), buffer.Length()))){auto tryResult1541 = (ToResult(SyncCopy(aInputStream, *actualOutputStream
, buffer.Elements(), buffer.Length()))); static_assert(std::is_empty_v
<typename decltype(tryResult1541)::ok_type>); if ((__builtin_expect
(!!(tryResult1541.isErr()), 0))) { mozilla::dom::quota::HandleError
("ToResult(SyncCopy(aInputStream, *actualOutputStream, buffer.Elements(), buffer.Length()))"
, tryResult1541.inspectErr(), "/var/lib/jenkins/workspace/firefox-scan-build/dom/indexedDB/ActorsParent.cpp"
, 20940, mozilla::dom::quota::Severity::Error); return tryResult1541
.propagateErr(); }}
;
20941
20942 return NS_OK;
20943}
20944
20945class FileHelper::ReadCallback final : public nsIInputStreamCallback {
20946 public:
20947 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:
20948
20949 ReadCallback()
20950 : mMutex("ReadCallback::mMutex"),
20951 mCondVar(mMutex, "ReadCallback::mCondVar"),
20952 mInputAvailable(false) {}
20953
20954 NS_IMETHODvirtual nsresult
20955 OnInputStreamReady(nsIAsyncInputStream* aStream) override {
20956 mozilla::MutexAutoLock autolock(mMutex);
20957
20958 mInputAvailable = true;
20959 mCondVar.Notify();
20960
20961 return NS_OK;
20962 }
20963
20964 nsresult AsyncWait(nsIAsyncInputStream* aStream, uint32_t aBufferSize,
20965 nsIEventTarget* aTarget) {
20966 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"
, 20966); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aStream" ")"
); do { *((volatile int*)__null) = 20966; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
20967 mozilla::MutexAutoLock autolock(mMutex);
20968
20969 nsresult rv = aStream->AsyncWait(this, 0, aBufferSize, aTarget);
20970 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"
, 20970)
) {
20971 return rv;
20972 }
20973
20974 mInputAvailable = false;
20975 while (!mInputAvailable) {
20976 mCondVar.Wait();
20977 }
20978
20979 return NS_OK;
20980 }
20981
20982 private:
20983 ~ReadCallback() = default;
20984
20985 mozilla::Mutex mMutex MOZ_UNANNOTATED;
20986 mozilla::CondVar mCondVar;
20987 bool mInputAvailable;
20988};
20989
20990NS_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"
, 20990); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0"
") (" "illegal refcnt" ")"); do { *((volatile int*)__null) =
20990; __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"
, 20990); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"FileHelper::ReadCallback\" != nullptr"
") (" "Must specify a name" ")"); do { *((volatile int*)__null
) = 20990; __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; }
;
20991NS_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"
, 20991); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0"
") (" "dup release" ")"); do { *((volatile int*)__null) = 20991
; __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"
, 20991); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"FileHelper::ReadCallback\" != nullptr"
") (" "Must specify a name" ")"); do { *((volatile int*)__null
) = 20991; __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; }
;
20992
20993NS_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"
, 20993); MOZ_PretendNoReturn(); } } while (0); nsISupports* foundInterface
;
20994 NS_INTERFACE_MAP_ENTRY(nsIInputStreamCallback)if (aIID.Equals(mozilla::detail::kImplementedIID<std::remove_reference_t
<decltype(*this)>, nsIInputStreamCallback>)) foundInterface
= static_cast<nsIInputStreamCallback*>(this); else
20995 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
20996NS_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"
, 20996); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aIID.Equals((nsISupports::COMTypeInfo<nsISupports, void>::kIID))"
")"); do { *((volatile int*)__null) = 20996; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false); status
= NS_NOINTERFACE; } else { (foundInterface)->AddRef(); status
= NS_OK; } *aInstancePtr = foundInterface; return status; }
20997
20998nsresult FileHelper::SyncRead(nsIInputStream& aInputStream, char* const aBuffer,
20999 const uint32_t aBufferSize,
21000 uint32_t* const aRead) {
21001 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"
, 21001); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 21001; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21002
21003 // Let's try to read, directly.
21004 nsresult rv = aInputStream.Read(aBuffer, aBufferSize, aRead);
21005 if (NS_SUCCEEDED(rv)((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) || rv != NS_BASE_STREAM_WOULD_BLOCK) {
21006 return rv;
21007 }
21008
21009 // We need to proceed async.
21010 nsCOMPtr<nsIAsyncInputStream> asyncStream = do_QueryInterface(&aInputStream);
21011 if (!asyncStream) {
21012 return rv;
21013 }
21014
21015 if (!mReadCallback) {
21016 mReadCallback.init(MakeNotNull<RefPtr<ReadCallback>>());
21017 }
21018
21019 // We just need any thread with an event loop for receiving the
21020 // OnInputStreamReady callback. Let's use the I/O thread.
21021 nsCOMPtr<nsIEventTarget> target =
21022 do_GetService(NS_STREAMTRANSPORTSERVICE_CONTRACTID"@mozilla.org/network/stream-transport-service;1");
21023 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"
, 21023); AnnotateMozCrashReason("MOZ_ASSERT" "(" "target" ")"
); do { *((volatile int*)__null) = 21023; __attribute__((nomerge
)) ::abort(); } while (false); } } while (false)
;
21024
21025 rv = (*mReadCallback)->AsyncWait(asyncStream, aBufferSize, target);
21026 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"
, 21026)
) {
21027 return rv;
21028 }
21029
21030 return SyncRead(aInputStream, aBuffer, aBufferSize, aRead);
21031}
21032
21033nsresult FileHelper::SyncCopy(nsIInputStream& aInputStream,
21034 nsIOutputStream& aOutputStream,
21035 char* const aBuffer, const uint32_t aBufferSize) {
21036 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"
, 21036); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()"
")"); do { *((volatile int*)__null) = 21036; __attribute__((
nomerge)) ::abort(); } while (false); } } while (false)
;
21037
21038 AUTO_PROFILER_LABEL("FileHelper::SyncCopy", DOM)mozilla::AutoProfilerLabel raiiObject21038( "FileHelper::SyncCopy"
, nullptr, JS::ProfilingCategoryPair::DOM)
;
21039
21040 nsresult rv;
21041
21042 do {
21043 uint32_t numRead;
21044 rv = SyncRead(aInputStream, aBuffer, aBufferSize, &numRead);
21045 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"
, 21045)
) {
21046 break;
21047 }
21048
21049 if (!numRead) {
21050 break;
21051 }
21052
21053 uint32_t numWrite;
21054 rv = aOutputStream.Write(aBuffer, numRead, &numWrite);
21055 if (rv == NS_ERROR_FILE_NO_DEVICE_SPACE) {
21056 rv = NS_ERROR_DOM_INDEXEDDB_QUOTA_ERR;
21057 }
21058 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"
, 21058)
) {
21059 break;
21060 }
21061
21062 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"
, 21062)
) {
21063 rv = NS_ERROR_FAILURE;
21064 break;
21065 }
21066 } while (true);
21067
21068 if (NS_SUCCEEDED(rv)((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) {
21069 rv = aOutputStream.Flush();
21070 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"
, 21070)
) {
21071 return rv;
21072 }
21073 }
21074
21075 nsresult rv2 = aOutputStream.Close();
21076 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"
, 21076)
) {
21077 return NS_SUCCEEDED(rv)((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) ? rv2 : rv;
21078 }
21079
21080 return rv;
21081}
21082
21083} // namespace dom::indexedDB
21084} // namespace mozilla
21085
21086#undef IDB_MOBILE
21087#undef IDB_DEBUG_LOG